summaryrefslogtreecommitdiff
path: root/nix-dependencies
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-26 09:00:43 +0200
committerGitHub <noreply@github.com>2024-06-26 09:00:43 +0200
commit7dc9a7b9107b2607e9870d7fc92fb2d40505f7ef (patch)
tree3b1bfe9958b324b5bd0768b48bfa76aaaa3eecc7 /nix-dependencies
parentafcdb1184799526f20954e475af990254d772cd4 (diff)
parente65cf1d265210738a9b3c0b811fbfeffa0741c39 (diff)
downloadhello-nix-7dc9a7b9107b2607e9870d7fc92fb2d40505f7ef.tar.gz
Merge pull request #2 from aehlig/import-rules
Import rust rules and add a minimal example
Diffstat (limited to 'nix-dependencies')
-rw-r--r--nix-dependencies/dependencies.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nix-dependencies/dependencies.nix b/nix-dependencies/dependencies.nix
index 99280cc..a328ddd 100644
--- a/nix-dependencies/dependencies.nix
+++ b/nix-dependencies/dependencies.nix
@@ -6,6 +6,7 @@
, grpc
, clang
, fmt
+, rustc
# for tests
, gnugrep
@@ -44,6 +45,7 @@ stdenv.mkDerivation rec {
test=$(jo PATH=$(jo -a ${gnugrep}/bin ${unixtools.xxd}/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)) \
) > config.json
cat config.json
jo "just files"=$(jo config=$(jo -a $(jo root=system path=$out/share/config.json))) > rc.json