2014-08-18 00:18:20 +02:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="firejail";
|
2015-05-10 11:07:06 +02:00
|
|
|
version="0.9.26";
|
2014-08-18 00:18:20 +02:00
|
|
|
name="${baseName}-${version}";
|
2015-05-10 11:07:06 +02:00
|
|
|
hash="12n0kj95hfkzv4jir7j9x0mdpg20bq0fgifjsz1dbsmqi2cspdlq";
|
2015-07-12 19:46:03 +02:00
|
|
|
url="mirror://sourceforge/firejail/firejail/firejail-0.9.26-rc2.tar.bz2";
|
2015-05-10 11:07:06 +02:00
|
|
|
sha256="12n0kj95hfkzv4jir7j9x0mdpg20bq0fgifjsz1dbsmqi2cspdlq";
|
2014-08-18 00:18:20 +02:00
|
|
|
};
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2014-11-02 20:59:32 +01:00
|
|
|
preBuild = ''
|
|
|
|
sed -e "s@/etc/@$out/etc/@g" -i Makefile
|
|
|
|
'';
|
|
|
|
|
2014-08-18 00:18:20 +02:00
|
|
|
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/";
|
|
|
|
};
|
|
|
|
}
|