mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 09:31:01 +00:00
32 lines
687 B
Nix
32 lines
687 B
Nix
{ stdenv, lib, bundlerEnv, makeWrapper, git, gnutar, gzip, ruby }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "r10k-${version}";
|
|
|
|
version = "2.4.3";
|
|
|
|
env = bundlerEnv {
|
|
name = "${name}-gems";
|
|
|
|
gemdir = ./.;
|
|
inherit ruby;
|
|
};
|
|
|
|
phases = ["installPhase"];
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
makeWrapper ${env}/bin/r10k $out/bin/r10k \
|
|
--set PATH ${stdenv.lib.makeBinPath [ git gnutar gzip ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Puppet environment and module deployment";
|
|
homepage = https://github.com/puppetlabs/r10k;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
};
|
|
}
|