summaryrefslogtreecommitdiff
path: root/nix-dependencies/dependencies.nix
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-26 15:46:09 +0200
committerKlaus T. Aehlig <aehlig@linta.de>2024-06-27 12:05:35 +0200
commitc6b35f8f2e83621b4e53ab999e5b5bf146a73aa0 (patch)
tree2c607815866fdb7887dc5486255d2a7729f23578 /nix-dependencies/dependencies.nix
parentd5e14989a76f346789622fce27e3c63c217792cb (diff)
downloadhello-nix-c6b35f8f2e83621b4e53ab999e5b5bf146a73aa0.tar.gz
Add minimal example using cargo
... including a test (for which we add python3 as test dependency).
Diffstat (limited to 'nix-dependencies/dependencies.nix')
-rw-r--r--nix-dependencies/dependencies.nix7
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