about summary refs log tree commit diff
path: root/pkgs/by-name/pd/pdk/package.nix
blob: 20d99e034d6026d7ae978a5dc06362f6c2dbaa68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib,
  bundlerApp,
  bundlerUpdateScript,
  makeWrapper,
  gnumake
}:

bundlerApp {
  pname = "pdk";
  gemdir = ./.;
  exes = [ "pdk" ];

  nativeBuildInputs = [ makeWrapper ];

  postBuild = ''
    wrapProgram $out/bin/pdk --prefix PATH : ${lib.makeBinPath [ gnumake ]}
  '';

  passthru.updateScript = bundlerUpdateScript "pdk";

  meta = with lib; {
    description = "Puppet Development Kit";
    homepage    = "https://github.com/puppetlabs/pdk";
    license     = licenses.asl20;
    maintainers = with maintainers; [ netali ];
  };
}