nixpkgs/pkgs/tools/system/r10k/default.nix

32 lines
687 B
Nix
Raw Normal View History

2016-10-03 17:50:16 +00:00
{ stdenv, lib, bundlerEnv, makeWrapper, git, gnutar, gzip, ruby }:
2016-09-30 16:28:11 +00:00
stdenv.mkDerivation rec {
name = "r10k-${version}";
version = "2.4.3";
env = bundlerEnv {
name = "${name}-gems";
2017-01-17 23:09:22 +00:00
gemdir = ./.;
2016-09-30 16:28:11 +00:00
inherit ruby;
};
phases = ["installPhase"];
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${env}/bin/r10k $out/bin/r10k \
2016-10-03 17:50:16 +00:00
--set PATH ${stdenv.lib.makeBinPath [ git gnutar gzip ]}
2016-09-30 16:28:11 +00:00
'';
meta = with lib; {
description = "Puppet environment and module deployment";
homepage = https://github.com/puppetlabs/r10k;
2016-10-03 17:50:16 +00:00
license = licenses.asl20;
2016-09-30 16:28:11 +00:00
maintainers = with maintainers; [ zimbatm ];
};
}