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 {
|
2020-10-27 00:29:36 +00:00
|
|
|
version = "unstable-2019-10-09";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "boxfort";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Snaipe";
|
|
|
|
repo = "BoxFort";
|
2020-10-27 00:29:36 +00:00
|
|
|
rev = "356f047db08b7344ea7980576b705e65b9fc8772";
|
|
|
|
sha256 = "1p0llz7n0p5gzpvqszmra9p88vnr0j88sp5ixhgbfz89bswg62ss";
|
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;
|
2021-12-06 16:07:01 +00:00
|
|
|
# Upstream currently broken for macOS https://cirrus-ci.com/build/5624937369042944
|
|
|
|
broken = stdenv.targetPlatform.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|