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