2015-12-22 15:30:23 +00:00
|
|
|
{ stdenv, coreutils,makeWrapper, cac, cacpanel, gnumake, gnused, jq, openssh, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-12-23 10:18:00 +00:00
|
|
|
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
|
|
|
|
cac
|
|
|
|
cacpanel
|
|
|
|
gnumake
|
|
|
|
gnused
|
|
|
|
jq
|
|
|
|
openssh
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin
|
2015-12-23 10:18:00 +00:00
|
|
|
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} \
|
2016-01-29 15:00:46 +00:00
|
|
|
--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 ];
|
|
|
|
};
|
|
|
|
}
|