Add nix-shell configuration

This commit is contained in:
Marco Massarelli 2023-10-19 10:37:54 -04:00
parent ee101beccc
commit c40abaa5bc
1 changed files with 18 additions and 0 deletions

18
shell.nix Normal file
View File

@ -0,0 +1,18 @@
{ pkgs ? import <nixpkgs> {}
, board ? ""
}:
with pkgs;
let
freerouting = callPackage ./freerouting {};
in
mkShell {
name = "freerouting-nix";
buildInputs = [
freerouting
gtk3
xvfb_run
];
shellHook = ''
xvfb-run -a freerouting -de ergogen/output/pcbs/${board}.dsn -dr freerouting/freerouting.rules -do -de ergogen/output/pcbs/${board}.ses -mp 35 -dct 1 -da
'';
}