From 866e07a8baa21707ec73109b6e502af4fe4c41bf Mon Sep 17 00:00:00 2001 From: "Klaus T. Aehlig" Date: Thu, 27 Jun 2024 16:30:53 +0200 Subject: nix-shell: also add a wrapper script besides the alias ... as aliases are not honored in `nix-shell --run`. In this way, we can add an outer script running all the tests in the correct environment. --- nix-dependencies/dependencies.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'nix-dependencies/dependencies.nix') diff --git a/nix-dependencies/dependencies.nix b/nix-dependencies/dependencies.nix index 10a1b3e..2e73468 100644 --- a/nix-dependencies/dependencies.nix +++ b/nix-dependencies/dependencies.nix @@ -1,5 +1,6 @@ { stdenv , jo +, bash , pkg-config , coreutils , protobuf_25 @@ -25,6 +26,7 @@ stdenv.mkDerivation rec { protobuf_25 grpc jo + bash ]; buildInputs = [ @@ -52,12 +54,19 @@ stdenv.mkDerivation rec { ) > config.json cat config.json jo "just files"=$(jo config=$(jo -a $(jo root=system path=$out/share/config.json))) > rc.json + + cat > withRc-just-mr <