mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-23 17:53:55 +03:00
19 lines
483 B
Nix
19 lines
483 B
Nix
|
{ stdenv, lib, jq, coreutils }:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
name = "arion";
|
||
|
src = ./src;
|
||
|
unpackPhase = "";
|
||
|
buildPhase = "";
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin $out/share/arion
|
||
|
cp -a nix $out/share/arion/
|
||
|
cp -a arion-image $out/share/arion/
|
||
|
substitute arion $out/bin/arion \
|
||
|
--subst-var-by path ${lib.makeBinPath [jq coreutils]} \
|
||
|
--subst-var-by nix_dir $out/share/arion/nix \
|
||
|
;
|
||
|
chmod a+x $out/bin/arion
|
||
|
'';
|
||
|
}
|