Diff: https://github.com/containers/bubblewrap/compare/v0.11.1...v0.11.2 Changelog: https://github.com/containers/bubblewrap/releases/tag/v0.11.2
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
docbook_xsl,
|
|
libxslt,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
bash-completion,
|
|
libcap,
|
|
libselinux,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "bubblewrap";
|
|
version = "0.11.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = "bubblewrap";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-MUjJMhJ8Q9sYQyGqA7zfMutYjMSZNmEHXs2H3WN4mbE=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
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;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/containers/bubblewrap/releases/tag/${finalAttrs.src.rev}";
|
|
description = "Unprivileged sandboxing tool";
|
|
homepage = "https://github.com/containers/bubblewrap";
|
|
license = lib.licenses.lgpl2Plus;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "bwrap";
|
|
};
|
|
})
|