ed0c4a69f0
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
49 lines
847 B
Nix
49 lines
847 B
Nix
{ 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 ];
|
|
};
|
|
}
|