2009-04-20 14:49:35 +02:00
|
|
|
{stdenv, fetchurl, perl, XMLSimple}:
|
2007-03-05 19:52:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-12-02 13:27:55 +01:00
|
|
|
name = "icon-naming-utils-0.8.7";
|
2009-04-23 01:04:18 +02:00
|
|
|
|
2007-03-05 19:52:31 +01:00
|
|
|
src = fetchurl {
|
2008-12-02 13:27:55 +01:00
|
|
|
url = http://tango.freedesktop.org/releases/icon-naming-utils-0.8.7.tar.gz;
|
|
|
|
sha256 = "1lj0lffdg7fjfinhrn0vsq1kj010dxlxlix4jfc969j6l3k9rd0w";
|
2007-03-05 19:52:31 +01:00
|
|
|
};
|
2009-04-23 13:59:43 +02:00
|
|
|
|
2009-04-20 14:49:35 +02:00
|
|
|
buildInputs = [perl XMLSimple];
|
2009-04-23 01:04:18 +02:00
|
|
|
|
2007-03-05 19:52:31 +01:00
|
|
|
postInstall = "
|
|
|
|
# Add XML::Simple to the runtime search path.
|
|
|
|
substituteInPlace $out/libexec/icon-name-mapping \\
|
2009-04-23 13:59:43 +02:00
|
|
|
--replace '/bin/perl' '/bin/perl -I${XMLSimple}/lib/perl5/site_perl';
|
2007-03-05 19:52:31 +01:00
|
|
|
ensureDir $out/lib
|
|
|
|
ln -s $out/share/pkgconfig $out/lib/pkgconfig # WTF?
|
|
|
|
";
|
|
|
|
}
|