summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfpi2024-03-29 13:42:50 +0100
committerfpi2024-03-29 14:27:46 +0100
commitdea1f83cc2710dcdbe32ca24f3d02d80b60032d5 (patch)
treec1e8c45f9c0b8e3863b5f60c4c0e28411312e4ae
parentAdd cicsim (diff)
Add netgen
-rw-r--r--flake.lock17
-rw-r--r--flake.nix21
2 files changed, 37 insertions, 1 deletions
diff --git a/flake.lock b/flake.lock
index 2d3b53b..2f69647 100644
--- a/flake.lock
+++ b/flake.lock
@@ -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"
}
diff --git a/flake.nix b/flake.nix
index c18b158..a7b03be 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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