2022-03-08 07:46:35 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, docbook_xsl
|
|
|
|
, libxslt
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, bash-completion
|
|
|
|
, libcap
|
|
|
|
, libselinux
|
|
|
|
}:
|
2017-07-27 20:04:56 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "bubblewrap";
|
2022-05-12 00:59:57 +02:00
|
|
|
version = "0.6.2";
|
2017-07-27 20:04:56 +02:00
|
|
|
|
2022-03-08 07:46:35 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
|
|
|
repo = "bubblewrap";
|
|
|
|
rev = "v${version}";
|
2022-05-12 00:59:57 +02:00
|
|
|
hash = "sha256-J+VFla3sWO+DfB2IxxrKzbiG+KWFJr9caf8sTHyWXY4=";
|
2017-07-27 20:04:56 +02:00
|
|
|
};
|
|
|
|
|
2022-03-08 07:46:35 +01: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 20:04:56 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-07-27 20:04:56 +02:00
|
|
|
description = "Unprivileged sandboxing tool";
|
2020-03-30 15:47:15 +02:00
|
|
|
homepage = "https://github.com/containers/bubblewrap";
|
2017-07-27 20:04:56 +02:00
|
|
|
license = licenses.lgpl2Plus;
|
2022-03-08 07:46:35 +01:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
platforms = platforms.linux;
|
2017-07-27 20:04:56 +02:00
|
|
|
};
|
|
|
|
}
|