forked from Ravenslofty/74xx-liberty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
40 lines (36 loc) · 1.27 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs, ... } @ inputs:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system: let
pkgs = nixpkgs.legacyPackages.${system};
in rec {
packages = flake-utils.lib.flattenTree {
vpr = import ./nix/vpr.nix { inherit pkgs; };
freerouting = pkgs.callPackage ./nix/freerouting.nix { };
};
#defaultPackage = packages.hello;
devShells.default = pkgs.mkShell rec {
buildInputs = (with pkgs; [
ghdl yosys
gnumake
(python3.withPackages (p: with p; [
skidl
# disable kinet2pcb because we need our vendored version with fixes
#(p.callPackage ./nix/kinet2pcb.nix { hierplace = p.callPackage ./nix/hierplace.nix {}; })
kicad
]))
kicad
]) ++ (with packages; [
vpr
freerouting
]);
KICAD7_SYMBOL_DIR = "${pkgs.kicad.libraries.symbols}/share/kicad/symbols";
KICAD7_FOOTPRINT_DIR = "${pkgs.kicad.libraries.footprints}/share/kicad/footprints";
KICAD_SYMBOL_DIR = KICAD7_SYMBOL_DIR;
KICAD_FOOTPRINT_DIR = KICAD7_FOOTPRINT_DIR;
};
});
}