diff options
author | Zhaofeng Li <hello@zhaofeng.li> | 2023-01-18 15:13:15 -0700 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2023-01-19 13:50:01 +1000 |
commit | d450afc911598812d54cbac7e384a2bf4724f9ce (patch) | |
tree | f47fca8d97122b65720fbcc4bd81c5601491d4f2 /pkgs/development/compilers/rust | |
parent | 3a7055a4329ff2056bf73d1fb009a1a4150c14aa (diff) | |
download | nixlib-d450afc911598812d54cbac7e384a2bf4724f9ce.tar nixlib-d450afc911598812d54cbac7e384a2bf4724f9ce.tar.gz nixlib-d450afc911598812d54cbac7e384a2bf4724f9ce.tar.bz2 nixlib-d450afc911598812d54cbac7e384a2bf4724f9ce.tar.lz nixlib-d450afc911598812d54cbac7e384a2bf4724f9ce.tar.xz nixlib-d450afc911598812d54cbac7e384a2bf4724f9ce.tar.zst nixlib-d450afc911598812d54cbac7e384a2bf4724f9ce.zip |
cargo-auditable-cargo-wrapper: Use writeShellScriptBin instead of writeShellApplication
This is to prevent pulling in GHC for such a simple wrapper script.
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix b/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix index 3afa59739a37..b50097d5e66b 100644 --- a/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix +++ b/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix @@ -1,12 +1,9 @@ -{ lib, writeShellApplication, cargo, cargo-auditable }: +{ lib, writeShellScriptBin, cargo, cargo-auditable }: -(writeShellApplication { - name = "cargo"; - runtimeInputs = [ cargo cargo-auditable ]; - text = '' - CARGO_AUDITABLE_IGNORE_UNSUPPORTED=1 cargo auditable "$@" - ''; -}) // { +(writeShellScriptBin "cargo" '' + export PATH="${lib.makeBinPath [ cargo cargo-auditable ]}:$PATH" + CARGO_AUDITABLE_IGNORE_UNSUPPORTED=1 exec cargo auditable "$@" +'') // { meta = cargo-auditable.meta // { mainProgram = "cargo"; }; |