mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
33 lines
921 B
Nix
33 lines
921 B
Nix
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper, ruby }:
|
|
let
|
|
rubyEnv = bundlerEnv {
|
|
inherit ruby;
|
|
name = "terraspace";
|
|
gemdir = ./.;
|
|
};
|
|
in stdenv.mkDerivation {
|
|
pname = "terraspace";
|
|
version = (import ./gemset.nix).terraspace.version;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
makeWrapper ${rubyEnv}/bin/terraspace $out/bin/terraspace
|
|
wrapProgram $out/bin/terraspace \
|
|
--prefix PATH : ${lib.makeBinPath [ rubyEnv.ruby ]}
|
|
'';
|
|
|
|
passthru.updateScript = bundlerUpdateScript "terraspace";
|
|
|
|
meta = with lib; {
|
|
description = "Terraform framework that provides an organized structure, and keeps your code DRY";
|
|
homepage = "https://github.com/boltops-tools/terraspace";
|
|
license = licenses.asl20;
|
|
platforms = ruby.meta.platforms;
|
|
maintainers = with maintainers; [ mislavzanic ];
|
|
};
|
|
}
|