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

46 lines
942 B
Nix
Raw Normal View History

{ 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 {
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 ];
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
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}
'';
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 ];
};
}