2012-09-19 10:48:27 +01:00
|
|
|
{stdenv, fetchurl, utillinux}:
|
2011-01-06 10:43:32 +00:00
|
|
|
|
2012-09-19 10:48:27 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fakeroot-1.18.4";
|
2011-01-06 10:43:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-09-19 10:48:27 +01:00
|
|
|
url = https://launchpad.net/ubuntu/+archive/primary/+files/fakeroot_1.18.4.orig.tar.bz2;
|
|
|
|
sha256 = "18mydrz49n7ic7147pikkpdb96x00s9wisdk6hrc75ll7vx9wd8a";
|
2011-01-06 10:43:32 +00:00
|
|
|
};
|
|
|
|
|
2012-09-19 10:48:27 +01:00
|
|
|
buildInputs = [ utillinux /* provides getopt */ ];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|