mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Add Firejail cheap-sandbox-building package
This commit is contained in:
parent
f06419e1a8
commit
fba7d7c4b8
37
pkgs/os-specific/linux/firejail/default.nix
Normal file
37
pkgs/os-specific/linux/firejail/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{stdenv, fetchurl}:
|
||||
let
|
||||
s = # Generated upstream information
|
||||
rec {
|
||||
baseName="firejail";
|
||||
version="0.9.8.1";
|
||||
name="${baseName}-${version}";
|
||||
hash="0wjanz42k301zdwv06ylnzqrabxy424j0k9dh4i4aqhvihvxr83x";
|
||||
url="mirror://sourceforge/project/firejail/firejail/firejail-0.9.8.1.tar.bz2";
|
||||
sha256="0wjanz42k301zdwv06ylnzqrabxy424j0k9dh4i4aqhvihvxr83x";
|
||||
};
|
||||
buildInputs = [
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit (s) name version;
|
||||
inherit buildInputs;
|
||||
src = fetchurl {
|
||||
inherit (s) url sha256;
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
sed -e 's@/bin/bash@${stdenv.shell}@g' -i $( grep -lr /bin/bash .)
|
||||
sed -e '/void fs_var_run(/achar *vrcs = get_link("/var/run/current-system")\;' -i ./src/firejail/fs_var.c
|
||||
sed -e '/ \/run/iif(vrcs!=NULL){symlink(vrcs, "/var/run/current-system")\;free(vrcs)\;}' -i ./src/firejail/fs_var.c
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (s) version;
|
||||
description = ''Namespace-based sandboxing tool for Linux'';
|
||||
license = stdenv.lib.licenses.gpl2Plus ;
|
||||
maintainers = [stdenv.lib.maintainers.raskin];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
homepage = "http://l3net.wordpress.com/projects/firejail/";
|
||||
downloadPage = "http://sourceforge.net/projects/firejail/files/firejail/";
|
||||
};
|
||||
}
|
3
pkgs/os-specific/linux/firejail/default.upstream
Normal file
3
pkgs/os-specific/linux/firejail/default.upstream
Normal file
@ -0,0 +1,3 @@
|
||||
url http://sourceforge.net/projects/firejail/files/firejail/
|
||||
version_link '[.]tar[.][a-z0-9]+/download$'
|
||||
SF_redirect
|
@ -7218,6 +7218,8 @@ let
|
||||
|
||||
fbterm = callPackage ../os-specific/linux/fbterm { };
|
||||
|
||||
firejail = callPackage ../os-specific/linux/firejail {};
|
||||
|
||||
fuse = callPackage ../os-specific/linux/fuse { };
|
||||
|
||||
fxload = callPackage ../os-specific/linux/fxload { };
|
||||
|
Loading…
Reference in New Issue
Block a user