added template
This commit is contained in:
parent
f5e72e1ec9
commit
a42a2087d9
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
description = "ECP5 toolchain template project";
|
description = "LiteX overlay to provide those packages";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
@ -62,6 +62,10 @@
|
||||||
packages = forAllSystems (
|
packages = forAllSystems (
|
||||||
pkgs: builtins.mapAttrs (name: value: pkgs.python3Packages.callPackage value { }) litex-pkgs
|
pkgs: builtins.mapAttrs (name: value: pkgs.python3Packages.callPackage value { }) litex-pkgs
|
||||||
);
|
);
|
||||||
|
templates.default = {
|
||||||
|
path = ./templates/default;
|
||||||
|
description = "basic template to get started with an ecp5";
|
||||||
|
};
|
||||||
|
|
||||||
# example, not really something you should import unless you want everything.
|
# example, not really something you should import unless you want everything.
|
||||||
devShells = forAllSystems (pkgs: {
|
devShells = forAllSystems (pkgs: {
|
||||||
|
|
|
@ -3,20 +3,12 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
litex-overlay.url = "git+https://git.saji.dev/saji/litex-overlay";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ nixpkgs, ... }:
|
inputs@{ nixpkgs, litex-overlay ... }:
|
||||||
let
|
let
|
||||||
# litex-overlay = final: prev: {
|
|
||||||
# pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
|
|
||||||
# (python-final: python-prev: {
|
|
||||||
# litex = python-final.callPackage (import ./litex.nix) { };
|
|
||||||
# # can add more packages here!
|
|
||||||
# })
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
litex-overlay = import ./litex;
|
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
|
@ -32,7 +24,7 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
overlays = [
|
overlays = [
|
||||||
litex-overlay
|
litex-overlay.overlays.default
|
||||||
]; # patches, version pins, new pkgs here.
|
]; # patches, version pins, new pkgs here.
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue