21 lines
572 B
Nix
21 lines
572 B
Nix
{
|
|
description = "An experimental sandboxing tool for linux apps";
|
|
|
|
inputs.nixpkgs.url = github:NixOS/nixpkgs;
|
|
|
|
outputs = { self, nixpkgs }: {
|
|
packages.x86_64-linux.default =
|
|
with import nixpkgs { system = "x86_64-linux"; };
|
|
nimPackages.buildNimPackage {
|
|
name = "bwbox";
|
|
src = self;
|
|
nativeBuildInputs = [pkgs.makeWrapper];
|
|
postInstall = ''
|
|
wrapProgram $out/bin/bwbox \
|
|
--prefix PATH ':' ${pkgs.bubblewrap}/bin \
|
|
--prefix PATH ':' ${pkgs.xdg-dbus-proxy}/bin
|
|
'';
|
|
};
|
|
};
|
|
}
|