2012-09-19 13:48:27 +04:00
|
|
|
{stdenv, fetchurl, utillinux}:
|
2011-01-06 13:43:32 +03:00
|
|
|
|
2012-09-19 13:48:27 +04:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fakeroot-1.18.4";
|
2011-01-06 13:43:32 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-09-19 13:48:27 +04:00
|
|
|
url = https://launchpad.net/ubuntu/+archive/primary/+files/fakeroot_1.18.4.orig.tar.bz2;
|
|
|
|
sha256 = "18mydrz49n7ic7147pikkpdb96x00s9wisdk6hrc75ll7vx9wd8a";
|
2011-01-06 13:43:32 +03:00
|
|
|
};
|
|
|
|
|
2012-09-19 13:48:27 +04: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 13:43:32 +03:00
|
|
|
meta = {
|
|
|
|
homepage = http://fakeroot.alioth.debian.org/;
|
|
|
|
description = "Give a fake root environment through LD_PRELOAD";
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-01-06 13:43:32 +03:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2011-01-06 13:51:10 +03:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2011-01-06 13:43:32 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|