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