mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-23 00:32:12 +03:00
dc294b034e
- renamed to Arion - minor changes - readme WIP
27 lines
565 B
Nix
27 lines
565 B
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
let
|
|
inherit (pkgs) lib stdenv;
|
|
|
|
arion = 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 [pkgs.jq pkgs.coreutils]} \
|
|
--subst-var-by nix_dir $out/share/arion/nix \
|
|
;
|
|
chmod a+x $out/bin/arion
|
|
'';
|
|
};
|
|
|
|
in
|
|
{
|
|
inherit arion;
|
|
}
|