1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 02:24:27 +00:00
nixpkgs/pkgs/tools/system/r10k/default.nix

32 lines
687 B
Nix
Raw Normal View History

2016-10-03 18:50:16 +01:00
{ stdenv, lib, bundlerEnv, makeWrapper, git, gnutar, gzip, ruby }:
2016-09-30 17:28:11 +01: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 17:28:11 +01:00
inherit ruby;
};
phases = ["installPhase"];
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${env}/bin/r10k $out/bin/r10k \
2016-10-03 18:50:16 +01:00
--set PATH ${stdenv.lib.makeBinPath [ git gnutar gzip ]}
2016-09-30 17:28:11 +01:00
'';
meta = with lib; {
description = "Puppet environment and module deployment";
homepage = https://github.com/puppetlabs/r10k;
2016-10-03 18:50:16 +01:00
license = licenses.asl20;
2016-09-30 17:28:11 +01:00
maintainers = with maintainers; [ zimbatm ];
};
}