From e65cf1d265210738a9b3c0b811fbfeffa0741c39 Mon Sep 17 00:00:00 2001 From: "Klaus T. Aehlig" Date: Tue, 25 Jun 2024 17:59:39 +0200 Subject: Import rust rules and add a minimal example Note that the PATH for rust targets also has to include that for the C compiler and hence also coreutils, as the rust compiler calls out to `cc`. --- nix-dependencies/dependencies.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nix-dependencies/dependencies.nix') 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 -- cgit v1.2.3