summary refs log tree commit diff
path: root/pkgs/development/tools/misc/icon-naming-utils/default.nix
blob: 5fd0fe8be2f290e6d83d1a2a396b7966e2a7744b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{stdenv, fetchurl, perl, XMLSimple, librsvg}:

stdenv.mkDerivation rec {
  name = "icon-naming-utils-0.8.90";

  src = fetchurl {
    url = "http://tango.freedesktop.org/releases/${name}.tar.gz";
    sha256 = "071fj2jm5kydlz02ic5sylhmw6h2p3cgrm3gwdfabinqkqcv4jh4";
  };

  buildInputs = [perl XMLSimple librsvg];

  postInstall =
    ''
      # Add XML::Simple to the runtime search path.
      substituteInPlace $out/libexec/icon-name-mapping \
          --replace '/bin/perl' '/bin/perl -I${XMLSimple}/lib/perl5/site_perl'
    '';

  meta = with stdenv.lib; {
    homepage = http://tango.freedesktop.org/Standard_Icon_Naming_Specification;
    platforms = with platforms; linux ++ darwin;
    license = licenses.gpl2;
  };
}