diff options
author | fpi | 2024-03-29 13:42:50 +0100 |
---|---|---|
committer | fpi | 2024-03-29 14:27:46 +0100 |
commit | dea1f83cc2710dcdbe32ca24f3d02d80b60032d5 (patch) | |
tree | c1e8c45f9c0b8e3863b5f60c4c0e28411312e4ae | |
parent | Add cicsim (diff) |
Add netgen
-rw-r--r-- | flake.lock | 17 | ||||
-rw-r--r-- | flake.nix | 21 |
2 files changed, 37 insertions, 1 deletions
@@ -128,6 +128,22 @@ "type": "github" } }, + "netgen": { + "flake": false, + "locked": { + "lastModified": 1709605569, + "narHash": "sha256-ANyKOJpmeNI47MkUolqx9k3sGfiWTqYg0zi9JqTDLSI=", + "ref": "refs/heads/master", + "rev": "035fef5c724b32d86ffd66361212db9719eac54a", + "revCount": 559, + "type": "git", + "url": "git://opencircuitdesign.com/netgen" + }, + "original": { + "type": "git", + "url": "git://opencircuitdesign.com/netgen" + } + }, "nixpkgs": { "locked": { "lastModified": 1711523803, @@ -174,6 +190,7 @@ "root": { "inputs": { "cicsim": "cicsim", + "netgen": "netgen", "nixpkgs": "nixpkgs", "open_pdks": "open_pdks" } @@ -8,18 +8,36 @@ url = "github:fpiper/open_pdks-flake"; inputs.nixpkgs.follows = "nixpkgs"; }; + netgen = { + url = "git://opencircuitdesign.com/netgen"; + flake = false; + }; cicsim = { url = "github:wulffern/cicsim"; flake = false; }; }; - outputs = { self, nixpkgs, open_pdks, cicsim }: + outputs = { self, nixpkgs, open_pdks, netgen, cicsim }: let pkgs = import nixpkgs { system = "x86_64-linux"; }; in { + packages.x86_64-linux.netgen = + let pkgs = import nixpkgs { + system = "x86_64-linux"; + }; + in pkgs.stdenv.mkDerivation rec { + name = "netgen"; + src = netgen; + buildInputs = [ pkgs.tk pkgs.tcl pkgs.python3 ]; + configureFlags = [ + "--with-tcl=${pkgs.tcl}" + "--with-tk=${pkgs.tk}" + ]; + enableParallelBuildung = true; + }; packages.x86_64-linux.cicsim = let pkgs = import nixpkgs { system = "x86_64-linux"; @@ -61,6 +79,7 @@ export PDK_ROOT="${open_pdks.outputs.packages.x86_64-linux.open_pdks}/pdk" ''; packages = [ + self.packages.x86_64-linux.netgen pkgs.ngspice pkgs.magic-vlsi pkgs.xschem |