about summary refs log tree commit diff
path: root/pkgs/development/libraries/boxfort/default.nix
blob: 855f86a3c36f959e69413f29663832eaff53d124 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, stdenv, fetchFromGitHub, meson, ninja, python3Packages }:

stdenv.mkDerivation rec {
  pname = "boxfort";
  version = "0.1.4";

  src = fetchFromGitHub {
    owner = "Snaipe";
    repo = "BoxFort";
    rev = "v${version}";
    sha256 = "jmtWTOkOlqVZ7tFya3IrQjr714Y8TzAVY5Cq+RzDuRs=";
  };

  nativeBuildInputs = [ meson ninja ];

  preConfigure = ''
    patchShebangs ci/isdir.py
  '';

  nativeCheckInputs = with python3Packages; [ cram ];

  doCheck = true;

  outputs = [ "dev" "out" ];

  meta = with lib; {
    description = "Convenient & cross-platform sandboxing C library";
    homepage = "https://github.com/Snaipe/BoxFort";
    license = licenses.mit;
    maintainers = with maintainers; [ thesola10 Yumasi ];
    platforms = platforms.unix;
  };
}