Simon Bruder
73f4c7080b
This is not ideal security-wise, but the only way to protect my sanity from whatever steam and some of my games try to do with the dbus socket.
27 lines
491 B
Nix
27 lines
491 B
Nix
{ bubblewrap, lib, makeWrapper, python3, stdenvNoCC }:
|
|
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;
|
|
}
|