diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-06-27 12:25:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-27 12:25:35 +0200 |
commit | 05b2d6fc51146fe07340a58bc87fbbd99e788143 (patch) | |
tree | 2c607815866fdb7887dc5486255d2a7729f23578 /nix-dependencies | |
parent | 7dc9a7b9107b2607e9870d7fc92fb2d40505f7ef (diff) | |
parent | c6b35f8f2e83621b4e53ab999e5b5bf146a73aa0 (diff) | |
download | hello-nix-05b2d6fc51146fe07340a58bc87fbbd99e788143.tar.gz |
Merge pull request #3 from aehlig/cargo-example
Add example on how to use cargo
Diffstat (limited to 'nix-dependencies')
-rw-r--r-- | nix-dependencies/dependencies.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nix-dependencies/dependencies.nix b/nix-dependencies/dependencies.nix index a328ddd..10a1b3e 100644 --- a/nix-dependencies/dependencies.nix +++ b/nix-dependencies/dependencies.nix @@ -7,10 +7,12 @@ , clang , fmt , rustc +, busybox # for tests , gnugrep , unixtools +, python3 }: stdenv.mkDerivation rec { @@ -42,10 +44,11 @@ stdenv.mkDerivation rec { GRPC_PLUGIN=${grpc}/bin/grpc_cpp_plugin \ ) \ shell=$(jo PATH=$(jo -a ${coreutils}/bin)) \ - test=$(jo PATH=$(jo -a ${gnugrep}/bin ${unixtools.xxd}/bin)) \ + test=$(jo PATH=$(jo -a ${gnugrep}/bin ${unixtools.xxd}/bin ${python3}/bin)) \ PKGCONFIG=$(jo pkg-config=${pkg-config}/bin/pkg-config \ PKG_CONFIG_PATH=$(jo -a $PKG_CONFIG_PATH)) \ - RUST=$(jo PATH=$(jo -a ${rustc}/bin ${clang}/bin ${coreutils}/bin /bin)) \ + RUST=$(jo PATH=$(jo -a ${rustc}/bin ${clang}/bin ${coreutils}/bin \ + ${busybox}/bin)) \ ) > config.json cat config.json jo "just files"=$(jo config=$(jo -a $(jo root=system path=$out/share/config.json))) > rc.json |