2016-02-22 13:40:29 +00:00
|
|
|
{ stdenv, coreutils, makeWrapper,
|
|
|
|
cac-api, cac-cert, cac-panel, gnumake, gnused, jq, openssh, sshpass,
|
|
|
|
... }:
|
2015-12-22 15:30:23 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
2016-02-04 00:55:59 +00:00
|
|
|
|
2015-12-22 15:30:23 +00:00
|
|
|
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
|
2016-02-22 13:40:29 +00:00
|
|
|
sshpass
|
2015-12-22 15:30:23 +00:00
|
|
|
];
|
|
|
|
|
2016-02-04 00:55:59 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${src} $out/bin/${shortname}
|
|
|
|
chmod +x $out/bin/${shortname}
|
|
|
|
wrapProgram $out/bin/${shortname} \
|
|
|
|
--prefix PATH : ${path} \
|
|
|
|
--set REQUESTS_CA_BUNDLE ${cac-cert} \
|
|
|
|
--set SSL_CERT_FILE ${cac-cert}
|
|
|
|
'';
|
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 ];
|
|
|
|
};
|
|
|
|
}
|