Add nix-shell configuration
This commit is contained in:
parent
ee101beccc
commit
c40abaa5bc
|
|
@ -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
|
||||
'';
|
||||
}
|
||||
Loading…
Reference in New Issue