summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/krebs-ci/default.nix
blob: f5b302b52d8a5921b696be7c6f75cdda68b9101f (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
{ stdenv, coreutils,makeWrapper, cac, cacpanel, gnumake, gnused, jq, openssh, ... }:

stdenv.mkDerivation rec {
  name = "krebs-ci-0.1.0";

  src = ./notes;

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

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

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