nixpkgs/pkgs/tools/system/fakeroot/default.nix

29 lines
797 B
Nix
Raw Normal View History

2015-10-20 14:40:16 +02:00
{ stdenv, fetchurl, utillinux, libcap }:
stdenv.mkDerivation rec {
2015-10-20 14:40:16 +02:00
version = "1.20.2";
name = "fakeroot-${version}";
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";
};
2015-10-20 14:40:16 +02:00
buildInputs = [ utillinux /* provides getopt */ libcap ];
postUnpack = ''
for prog in getopt; do
sed -i "s@getopt@$(type -p getopt)@g" ${name}/scripts/fakeroot.in
done
'';
meta = {
homepage = http://fakeroot.alioth.debian.org/;
description = "Give a fake root environment through LD_PRELOAD";
license = stdenv.lib.licenses.gpl2Plus;
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}