From: Las Safin Date: Sat, 25 Sep 2021 11:57:13 +0000 (+0000) Subject: Get further building for versa ecp5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57914c8469f5fd227fe226e72d60df957a210d4f;p=soc.git Get further building for versa ecp5 --- diff --git a/flake.lock b/flake.lock index b88daca0..c69ffb0b 100644 --- a/flake.lock +++ b/flake.lock @@ -16,6 +16,22 @@ "url": "https://git.libre-soc.org/git/c4m-jtag.git" } }, + "migen": { + "flake": false, + "locked": { + "lastModified": 1631614362, + "narHash": "sha256-BgYf4e7O/rbS5P1ZpDlcgCEUh2h2vK3FyHADdzyaMg0=", + "owner": "m-labs", + "repo": "migen", + "rev": "7bc4eb1387b39159a74c1dbd1b820728e0bfbbaa", + "type": "github" + }, + "original": { + "owner": "m-labs", + "repo": "migen", + "type": "github" + } + }, "nix-litex": { "flake": false, "locked": { @@ -84,6 +100,7 @@ "root": { "inputs": { "c4m-jtag": "c4m-jtag", + "migen": "migen", "nix-litex": "nix-litex", "nixpkgs": "nixpkgs", "nmigen": "nmigen", diff --git a/flake.nix b/flake.nix index 22e64705..54ddb1a8 100644 --- a/flake.nix +++ b/flake.nix @@ -10,10 +10,12 @@ inputs.nmigen.flake = false; inputs.nmigen-soc.url = "git+https://git.libre-soc.org/git/nmigen-soc.git"; inputs.nmigen-soc.flake = false; + inputs.migen.url = "github:m-labs/migen"; + inputs.migen.flake = false; inputs.nix-litex.url = "git+https://git.sr.ht/~lschuermann/nix-litex?ref=main"; inputs.nix-litex.flake = false; - outputs = { self, nixpkgs, c4m-jtag, nmigen, nmigen-soc, nix-litex }: + outputs = { self, nixpkgs, c4m-jtag, nmigen, nmigen-soc, nix-litex, migen }: let getv = x: builtins.substring 0 8 x.lastModifiedDate; @@ -33,7 +35,7 @@ in { overlay = final: prev: { - python3Packages = prev.python3Packages.override { + python37Packages = prev.python37Packages.override { overrides = lib.composeExtensions (litex final).pythonOverlay (pfinal: pprev: { libresoc-ieee754fpu = pfinal.callPackage ./nix/ieee754fpu.nix {}; libresoc-openpower-isa = pfinal.callPackage ./nix/openpower-isa.nix {}; @@ -52,22 +54,26 @@ nmigen = pprev.nmigen.overrideAttrs (_: { src = nmigen; }); + + migen = pprev.migen.overrideAttrs (_: { + src = migen; + }); }); }; - libresoc-pre-litex = final.callPackage (import ./nix/pre-litex.nix { version = getv self; }) {}; - libresoc-ls180 = final.callPackage (import ./nix/ls180.nix { version = getv self; }) {}; - libresoc-ecp5 = final.callPackage (import ./nix/ecp5.nix { version = getv self; }) {}; + libresoc-pre-litex = final.callPackage (import ./nix/pre-litex.nix { version = getv self; }) { python3Packages = final.python37Packages; }; + libresoc-ls180 = final.callPackage (import ./nix/ls180.nix { version = getv self; }) { python3Packages = final.python37Packages; }; + libresoc-ecp5 = final.callPackage (import ./nix/ecp5.nix { version = getv self; }) { python3Packages = final.python37Packages; }; libresoc-pinmux = final.callPackage (import ./nix/pinmux.nix { version = getv self; }) {}; }; packages = forAllSystems (system: { - soc = nixpkgsFor.${system}.python3Packages.libresoc-soc; + soc = nixpkgsFor.${system}.python37Packages.libresoc-soc; pre-litex = nixpkgsFor.${system}.libresoc-pre-litex; pinmux = nixpkgsFor.${system}.libresoc-pinmux; ls180 = nixpkgsFor.${system}.libresoc-ls180; ecp5 = nixpkgsFor.${system}.libresoc-ecp5; - openpower-isa = nixpkgsFor.${system}.python3Packages.libresoc-openpower-isa; + openpower-isa = nixpkgsFor.${system}.python37Packages.libresoc-openpower-isa; debugNixpkgs = nixpkgsFor.${system}; });