nixpkgs-suyu/pkgs/tools/graphics/icoutils/default.nix

33 lines
954 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libpng, perl, perlPackages, makeWrapper }:
stdenv.mkDerivation rec {
2017-01-11 15:17:22 +01:00
name = "icoutils-0.31.1";
src = fetchurl {
url = "mirror://savannah/icoutils/${name}.tar.bz2";
2017-01-11 15:17:22 +01:00
sha256 = "14rhd7p7v0rvxsfnrgxf5l4rl6n52h2aq09583glqpgjg0y9vqi6";
};
buildInputs = [ makeWrapper libpng perl ];
propagatedBuildInputs = [ perlPackages.LWP ];
patchPhase = ''
patchShebangs extresso/extresso
patchShebangs extresso/extresso.in
patchShebangs extresso/genresscript
patchShebangs extresso/genresscript.in
'';
preFixup = ''
wrapProgram $out/bin/extresso --prefix PERL5LIB : $PERL5LIB
wrapProgram $out/bin/genresscript --prefix PERL5LIB : $PERL5LIB
'';
meta = {
homepage = http://www.nongnu.org/icoutils/;
description = "Set of programs to deal with Microsoft Windows(R) icon and cursor files";
license = stdenv.lib.licenses.gpl3Plus;
platforms = with stdenv.lib.platforms; linux;
};
}