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

32 lines
687 B
Nix
Raw Normal View History

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