base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / bu / bubblewrap / package.nix
blobe4a028cb59002f6ee8ba6148c7a94f99aa1fca26
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , docbook_xsl
5 , libxslt
6 , meson
7 , ninja
8 , pkg-config
9 , bash-completion
10 , libcap
11 , libselinux
14 stdenv.mkDerivation rec {
15   pname = "bubblewrap";
16   version = "0.11.0";
18   src = fetchFromGitHub {
19     owner = "containers";
20     repo = "bubblewrap";
21     rev = "v${version}";
22     hash = "sha256-8IDMLQPeO576N1lizVudXUmTV6hNOiowjzRpEWBsZ+U=";
23   };
25   postPatch = ''
26     substituteInPlace tests/libtest.sh \
27       --replace "/var/tmp" "$TMPDIR"
28   '';
30   nativeBuildInputs = [
31     docbook_xsl
32     libxslt
33     meson
34     ninja
35     pkg-config
36   ];
38   buildInputs = [
39     bash-completion
40     libcap
41     libselinux
42   ];
44   # incompatible with Nix sandbox
45   doCheck = false;
47   meta = with lib; {
48     changelog = "https://github.com/containers/bubblewrap/releases/tag/${src.rev}";
49     description = "Unprivileged sandboxing tool";
50     homepage = "https://github.com/containers/bubblewrap";
51     license = licenses.lgpl2Plus;
52     maintainers = with maintainers; [ dotlambda ];
53     platforms = platforms.linux;
54     mainProgram = "bwrap";
55   };