nixos-config/pkgs/bwrap-helper/default.nix
Simon Bruder 73f4c7080b
bwrap-helper: Do not filter dbus socket
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.
2021-01-09 12:53:34 +01:00

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;
}