stockholm/krebs/5pkgs/test/infest-cac-centos7/default.nix

42 lines
960 B
Nix
Raw Normal View History

2016-02-04 00:59:40 +00:00
{ stdenv, coreutils,makeWrapper, cac-api, cac-panel, gnumake, gnused, jq, openssh, ... }:
2015-12-22 15:30:23 +00:00
stdenv.mkDerivation rec {
name = "${shortname}-${version}";
shortname = "infest-cac-centos7";
version = "0.2.0";
2015-12-22 15:30:23 +00:00
src = ./notes;
phases = [
"installPhase"
];
buildInputs = [ makeWrapper ];
path = stdenv.lib.makeSearchPath "bin" [
coreutils
2016-02-03 18:39:00 +00:00
cac-api
2016-02-04 00:59:40 +00:00
cac-panel
2015-12-22 15:30:23 +00:00
gnumake
gnused
jq
openssh
];
installPhase =
''
mkdir -p $out/bin
cp ${src} $out/bin/${shortname}
chmod +x $out/bin/${shortname}
wrapProgram $out/bin/${shortname} \
2016-01-18 16:22:14 +00:00
--prefix PATH : ${path} \
--set SSL_CERT_FILE ${./panel.cloudatcost.com.crt} \
--set REQUESTS_CA_BUNDLE ${./panel.cloudatcost.com.crt}
2015-12-22 15:30:23 +00:00
'';
meta = with stdenv.lib; {
homepage = http://krebsco.de;
description = "Krebs CI Scripts";
license = licenses.wtfpl;
maintainers = [ maintainers.makefu ];
};
}