nixpkgs-suyu/pkgs/development/tools/misc/icon-naming-utils/default.nix
Marc Weber fd3148dd5e new version icon-naming-utils-0.8.2
svn path=/nixpkgs/trunk/; revision=13551
2008-12-02 12:27:55 +00:00

17 lines
598 B
Nix

{stdenv, fetchurl, perl, perlXMLSimple}:
stdenv.mkDerivation {
name = "icon-naming-utils-0.8.7";
src = fetchurl {
url = http://tango.freedesktop.org/releases/icon-naming-utils-0.8.7.tar.gz;
sha256 = "1lj0lffdg7fjfinhrn0vsq1kj010dxlxlix4jfc969j6l3k9rd0w";
};
buildInputs = [perl perlXMLSimple];
postInstall = "
# Add XML::Simple to the runtime search path.
substituteInPlace $out/libexec/icon-name-mapping \\
--replace '/bin/perl' '/bin/perl -I${perlXMLSimple}/lib/site_perl';
ensureDir $out/lib
ln -s $out/share/pkgconfig $out/lib/pkgconfig # WTF?
";
}