nixos-config/pkgs/bwrap-helper/default.nix

27 lines
491 B
Nix
Raw Permalink Normal View History

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