summaryrefslogtreecommitdiff
path: root/nix-dependencies/dependencies.nix
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-27 17:30:33 +0200
committerGitHub <noreply@github.com>2024-06-27 17:30:33 +0200
commitf46b8e21e0013eeb04a2944dc85be327a896ffe7 (patch)
tree8997065bb29dcdd09fbe8f131680f2377c063e70 /nix-dependencies/dependencies.nix
parent05b2d6fc51146fe07340a58bc87fbbd99e788143 (diff)
parent3c54e850a32e4250c36bee3f118df977c3e8773d (diff)
downloadhello-nix-f46b8e21e0013eeb04a2944dc85be327a896ffe7.tar.gz
Merge pull request #4 from aehlig/simplify-cargo-import
Simplify cargo import
Diffstat (limited to 'nix-dependencies/dependencies.nix')
-rw-r--r--nix-dependencies/dependencies.nix11
1 files changed, 10 insertions, 1 deletions
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 <<EOF
+ #!${bash}/bin/bash
+ exec just-mr --rc $out/share/rc.json "\$@"
+ EOF
'';
installPhase = ''
- mkdir -p $out/share
+ mkdir -p $out/share $out/bin
cp config.json $out/share
cp rc.json $out/share
+ cp withRc-just-mr $out/bin
+ chmod 555 $out/bin/withRc-just-mr
'';
}