3
0
Fork 0
forked from mirrors/nixpkgs

isolate: init at 1.10

This commit is contained in:
Vir Chaudhury 2023-03-04 19:30:01 +08:00
parent 863e647ecd
commit 84c3cb1008
No known key found for this signature in database
GPG key ID: 25B242ED74B61B15
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, stdenv
, fetchFromGitHub
, asciidoc
, libcap
, installShellFiles
}:
stdenv.mkDerivation rec {
pname = "isolate";
version = "1.10";
src = fetchFromGitHub {
owner = "ioi";
repo = "isolate";
rev = "v${version}";
hash = "sha256-fuv9HOw0XkRBRjwAp4b6LpoB5p7a+yo66AcT3B0yQUw=";
};
nativeBuildInputs = [
asciidoc
installShellFiles
];
buildInputs = [
libcap.dev
];
buildFlags = [
"isolate"
"isolate.1"
];
installPhase = ''
runHook preInstall
install -Dm755 ./isolate $out/bin/isolate
installManPage isolate.1
runHook postInstall
'';
meta = {
description = "Sandbox for securely executing untrusted programs";
homepage = "https://github.com/ioi/isolate";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ virchau13 ];
};
}

View file

@ -39695,4 +39695,6 @@ with pkgs;
duden = callPackage ../applications/misc/duden { };
zf = callPackage ../tools/misc/zf { };
isolate = callPackage ../tools/security/isolate { };
}