From e5ec8a9c59ca51738c6ca17c84eeb507b86a69ab Mon Sep 17 00:00:00 2001 From: Mohamed Gaber Date: Sun, 20 Oct 2024 18:24:52 +0300 Subject: [PATCH] screw it it's not like this is an orthodox package --- default.nix | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/default.nix b/default.nix index a7d2a54..b32977d 100644 --- a/default.nix +++ b/default.nix @@ -45,13 +45,6 @@ in ] ++ lib.lists.optional (!stdenv.isDarwin) [Dispatch]; - propagatedBuildInputs = [ - pyenv - yosys - verilog - quaigh - ]; - nativeCheckInputs = with python3.pkgs; [ pytest ]; @@ -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 ''; @@ -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