11 lines
421 B
Nix
11 lines
421 B
Nix
{ runCommand, lib, makeWrapper, west, remarshal, nix-prefetch-git, jq, git }:
|
|
|
|
runCommand "update-manifest" {
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
} ''
|
|
mkdir -p $out/bin $out/libexec
|
|
cp ${./update-manifest.sh} $out/libexec/update-manifest.sh
|
|
makeWrapper $out/libexec/update-manifest.sh $out/bin/update-manifest \
|
|
--set PATH ${lib.makeBinPath [ west remarshal nix-prefetch-git jq git ]}
|
|
patchShebangs $out
|
|
''
|