Skip to content

Commit

Permalink
fix: wrap arguebuf with propagated build inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Nov 17, 2024
1 parent 531e8d7 commit db5ff8a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@
};
link-arguebase = pkgs.writeShellScriptBin "link-arguebase" ''
mkdir -p data
rm -f data/arguebase
ln -sf ${config.packages.arguebase} data/arguebase
ln -snf ${config.packages.arguebase} data/arguebase
'';
arguebuf = pkgs.poetry2nix.mkPoetryApplication {
inherit python propagatedBuildInputs;
Expand All @@ -88,6 +87,11 @@
${lib.getExe config.packages.link-arguebase}
PATH="${lib.makeBinPath propagatedBuildInputs}:$PATH"
'';
nativeBuildInputs = with pkgs; [ makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/arguebuf" \
--prefix PATH : ${lib.makeBinPath propagatedBuildInputs}
'';
nativeCheckInputs = with python.pkgs; [
pytestCheckHook
pytest-cov-stub
Expand Down

0 comments on commit db5ff8a

Please sign in to comment.