42 lines
901 B
Nix
42 lines
901 B
Nix
{ stdenv, coreutils,makeWrapper, cac-api, cac-cert, cac-panel, 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
|
|
cac-panel
|
|
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} \
|
|
--set REQUESTS_CA_BUNDLE ${cac-cert} \
|
|
--set SSL_CERT_FILE ${cac-cert}
|
|
'';
|
|
meta = with stdenv.lib; {
|
|
homepage = http://krebsco.de;
|
|
description = "Krebs CI Scripts";
|
|
license = licenses.wtfpl;
|
|
maintainers = [ maintainers.makefu ];
|
|
};
|
|
}
|