2021-06-01 23:35:56 +00:00
|
|
|
{ lib, makeWrapper, stdenv
|
|
|
|
, cac-api, cac-cert, cac-panel, coreutils, gnumake, gnused, jq, openssh, proot, 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";
|
2016-03-10 14:23:36 +00:00
|
|
|
version = "0.2.7";
|
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 ];
|
|
|
|
|
2021-06-01 23:35:56 +00:00
|
|
|
path = lib.makeSearchPath "bin" [
|
2015-12-22 15:30:23 +00:00
|
|
|
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
|
2016-03-10 08:09:47 +00:00
|
|
|
proot
|
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}
|
|
|
|
'';
|
2021-06-01 23:35:56 +00:00
|
|
|
meta = with lib; {
|
2015-12-22 15:30:23 +00:00
|
|
|
homepage = http://krebsco.de;
|
2016-03-10 08:09:47 +00:00
|
|
|
description = "infest a CaC box with stockholm";
|
2015-12-22 15:30:23 +00:00
|
|
|
license = licenses.wtfpl;
|
|
|
|
maintainers = [ maintainers.makefu ];
|
|
|
|
};
|
|
|
|
}
|