2016-02-14 13:49:27 +00:00
|
|
|
{stdenv, fetchurl, which}:
|
2014-08-17 22:18:20 +00:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="firejail";
|
2017-02-01 18:24:35 +00:00
|
|
|
version="0.9.44.8";
|
2014-08-17 22:18:20 +00:00
|
|
|
name="${baseName}-${version}";
|
2017-02-01 18:24:35 +00:00
|
|
|
hash="0w87n5qzvylbjipaf45sw65gg4rpqcbi32zw9cs1jbfvf4bikzmr";
|
|
|
|
url="https://netix.dl.sourceforge.net/project/firejail/firejail/firejail-0.9.44.8.tar.xz";
|
|
|
|
sha256="0w87n5qzvylbjipaf45sw65gg4rpqcbi32zw9cs1jbfvf4bikzmr";
|
2014-08-17 22:18:20 +00:00
|
|
|
};
|
|
|
|
buildInputs = [
|
2016-02-14 13:49:27 +00:00
|
|
|
which
|
2014-08-17 22:18:20 +00:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
2016-08-10 17:34:58 +00:00
|
|
|
name = "${s.name}.tar.bz2";
|
2014-08-17 22:18:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -e 's@/bin/bash@${stdenv.shell}@g' -i $( grep -lr /bin/bash .)
|
2016-02-14 13:49:27 +00:00
|
|
|
sed -e "s@/bin/cp@$(which cp)@g" -i $( grep -lr /bin/cp .)
|
2014-08-17 22:18:20 +00:00
|
|
|
'';
|
|
|
|
|
2014-11-02 19:59:32 +00:00
|
|
|
preBuild = ''
|
|
|
|
sed -e "s@/etc/@$out/etc/@g" -i Makefile
|
|
|
|
'';
|
|
|
|
|
2014-08-17 22:18:20 +00: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/";
|
|
|
|
};
|
|
|
|
}
|