2021-01-09 12:53:34 +01:00
|
|
|
{ bubblewrap, lib, makeWrapper, python3, stdenvNoCC }:
|
2021-01-07 17:09:22 +01:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
name = "bwrap-helper";
|
|
|
|
|
|
|
|
src = ./bwrap-helper.py;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bubblewrap
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
|
|
install -D $src $out/bin/bwrap-helper
|
|
|
|
'';
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/bwrap-helper --prefix PATH : ${lib.makeBinPath buildInputs}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta.license = lib.licenses.mit;
|
|
|
|
}
|