nixpkgs/pkgs/tools/admin/bubblewrap/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
977 B
Nix
Raw Normal View History

2022-03-08 06:46:35 +00:00
{ lib
, stdenv
, fetchFromGitHub
, docbook_xsl
, libxslt
, meson
, ninja
, pkg-config
, bash-completion
, libcap
, libselinux
}:
2017-07-27 18:04:56 +00:00
stdenv.mkDerivation rec {
pname = "bubblewrap";
version = "0.7.0";
2017-07-27 18:04:56 +00:00
2022-03-08 06:46:35 +00:00
src = fetchFromGitHub {
owner = "containers";
repo = "bubblewrap";
rev = "v${version}";
hash = "sha256-ddxEtBw6JcSsZCN5uKyuBMVkWwSoThfxrcvHZGZzFr4=";
2017-07-27 18:04:56 +00:00
};
2022-03-08 06:46:35 +00:00
postPatch = ''
substituteInPlace tests/libtest.sh \
--replace "/var/tmp" "$TMPDIR"
'';
nativeBuildInputs = [
docbook_xsl
libxslt
meson
ninja
pkg-config
];
buildInputs = [
bash-completion
libcap
libselinux
];
# incompatible with Nix sandbox
doCheck = false;
2017-07-27 18:04:56 +00:00
meta = with lib; {
2017-07-27 18:04:56 +00:00
description = "Unprivileged sandboxing tool";
homepage = "https://github.com/containers/bubblewrap";
2017-07-27 18:04:56 +00:00
license = licenses.lgpl2Plus;
2022-03-08 06:46:35 +00:00
maintainers = with maintainers; [ dotlambda ];
platforms = platforms.linux;
mainProgram = "bwrap";
2017-07-27 18:04:56 +00:00
};
}