2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, docbook_xsl
|
|
|
|
, libxslt
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, bash-completion
|
|
|
|
, libcap
|
|
|
|
, libselinux
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bubblewrap";
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "0.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
|
|
|
repo = "bubblewrap";
|
|
|
|
rev = "v${version}";
|
2023-03-08 16:32:21 +00:00
|
|
|
hash = "sha256-UiZfp1bX/Eul5x31oBln5P9KMT2oFwawQqDs9udZUxY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +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;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-03-08 16:32:21 +00:00
|
|
|
changelog = "https://github.com/containers/bubblewrap/releases/tag/${src.rev}";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Unprivileged sandboxing tool";
|
|
|
|
homepage = "https://github.com/containers/bubblewrap";
|
|
|
|
license = licenses.lgpl2Plus;
|
2022-03-30 09:31:56 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
platforms = platforms.linux;
|
2022-11-21 17:40:18 +00:00
|
|
|
mainProgram = "bwrap";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|