summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/test/infest-cac-centos7/default.nix
blob: ebea5ae1cbd116c166a11a5a8eb8391b14e87deb (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
{ stdenv, coreutils,makeWrapper, cac-api, cacpanel, gnumake, gnused, jq, openssh, ... }:

stdenv.mkDerivation rec {
  name = "${shortname}-${version}";
  shortname = "infest-cac-centos7";
  version = "0.2.0";

  src = ./notes;

  phases = [
    "installPhase"
  ];
  buildInputs = [ makeWrapper ];

  path = stdenv.lib.makeSearchPath "bin" [
    coreutils
    cac-api
    cacpanel
    gnumake
    gnused
    jq
    openssh
  ];

  installPhase =
    ''
      mkdir -p $out/bin
      cp ${src} $out/bin/${shortname}
      chmod +x $out/bin/${shortname}
      wrapProgram $out/bin/${shortname} \
              --prefix PATH : ${path}
    '';
  meta = with stdenv.lib; {
    homepage = http://krebsco.de;
    description = "Krebs CI Scripts";
    license = licenses.wtfpl;
    maintainers = [ maintainers.makefu ];
  };
}