2021-08-29 22:59:43 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, python3Packages }:
|
2019-10-09 12:44:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "boxfort";
|
2022-07-17 08:49:58 +00:00
|
|
|
version = "0.1.4";
|
2019-10-09 12:44:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Snaipe";
|
|
|
|
repo = "BoxFort";
|
2022-07-17 08:49:58 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "jmtWTOkOlqVZ7tFya3IrQjr714Y8TzAVY5Cq+RzDuRs=";
|
2019-10-09 12:44:24 +00:00
|
|
|
};
|
|
|
|
|
2019-11-08 11:09:13 +00:00
|
|
|
nativeBuildInputs = [ meson ninja ];
|
2019-10-09 12:44:24 +00:00
|
|
|
|
2019-11-08 11:09:13 +00:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ci/isdir.py
|
|
|
|
'';
|
2019-10-09 12:44:24 +00:00
|
|
|
|
2021-08-29 22:59:43 +00:00
|
|
|
checkInputs = with python3Packages; [ cram ];
|
2019-10-09 12:44:24 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-10-09 12:44:24 +00:00
|
|
|
description = "Convenient & cross-platform sandboxing C library";
|
|
|
|
homepage = "https://github.com/Snaipe/BoxFort";
|
|
|
|
license = licenses.mit;
|
2019-11-08 11:09:13 +00:00
|
|
|
maintainers = with maintainers; [ thesola10 Yumasi ];
|
2019-10-09 12:44:24 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|