Skip to content

Commit

Permalink
screw it it's not like this is an orthodox package
Browse files Browse the repository at this point in the history
  • Loading branch information
donn committed Oct 20, 2024
1 parent 5eb008b commit e5ec8a9
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ in
]
++ lib.lists.optional (!stdenv.isDarwin) [Dispatch];

propagatedBuildInputs = [
pyenv
yosys
verilog
quaigh
];

nativeCheckInputs = with python3.pkgs; [
pytest
];
Expand All @@ -69,9 +62,8 @@ in
doCheck = true;

faultEnv = ''
export PATH=${pyenv}/bin:${quaigh}/bin:${yosys}/bin:${verilog}/bin:$PATH
export PYTHONPATH=${pyenv}/${pyenv.sitePackages}
export PATH=${verilog}/bin:$PATH
export PATH=${yosys}/bin:$PATH
export PYTHON_LIBRARY=${pyenv}/lib/lib${pyenv.libPrefix}${swiftPackages.stdenv.hostPlatform.extensions.sharedLibrary}
export FAULT_IVL_BASE=${verilog}/lib/ivl
'';
Expand All @@ -95,10 +87,11 @@ in
fixupPhase = ''
runHook preFixup
wrapProgram $out/bin/fault\
--prefix PYTHONPATH : ${pyenv}/${pyenv.sitePackages}\
--prefix PATH : ${pyenv}/bin\
--prefix PATH : ${verilog}/bin\
--prefix PATH : ${quaigh}/bin\
--prefix PATH : ${yosys}/bin\
--prefix PYTHONPATH : ${pyenv}/${pyenv.sitePackages}\
--set PYTHON_LIBRARY ${pyenv}/lib/lib${pyenv.libPrefix}${swiftPackages.stdenv.hostPlatform.extensions.sharedLibrary}\
--set FAULT_IVL_BASE ${verilog}/lib/ivl
runHook postFixup
Expand Down

0 comments on commit e5ec8a9

Please sign in to comment.