2015-10-20 13:40:16 +01:00
|
|
|
{ stdenv, fetchurl, utillinux, libcap }:
|
2011-01-06 10:43:32 +00:00
|
|
|
|
2012-09-19 10:48:27 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-10-20 13:40:16 +01:00
|
|
|
version = "1.20.2";
|
|
|
|
name = "fakeroot-${version}";
|
2011-01-06 10:43:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-10-20 13:40:16 +01:00
|
|
|
url = "http://http.debian.net/debian/pool/main/f/fakeroot/fakeroot_${version}.orig.tar.bz2";
|
|
|
|
sha256 = "0313xb2j6a4wihrw9gfd4rnyqw7zzv6wf3rfh2gglgnv356ic2kw";
|
2011-01-06 10:43:32 +00:00
|
|
|
};
|
|
|
|
|
2015-10-20 13:40:16 +01:00
|
|
|
buildInputs = [ utillinux /* provides getopt */ libcap ];
|
2012-09-19 10:48:27 +01:00
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
for prog in getopt; do
|
|
|
|
sed -i "s@getopt@$(type -p getopt)@g" ${name}/scripts/fakeroot.in
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2011-01-06 10:43:32 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://fakeroot.alioth.debian.org/;
|
|
|
|
description = "Give a fake root environment through LD_PRELOAD";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-01-06 10:43:32 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2011-01-06 10:51:10 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2011-01-06 10:43:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|