1 { lib, stdenv, fetchurl, libpng, fetchpatch }:
3 stdenv.mkDerivation rec {
8 url = "mirror://kernel/software/graphics/pngtoico/pngtoico-${version}.tar.gz";
9 sha256 = "1xb4aa57sjvgqfp01br3dm72hf7q0gb2ad144s1ifrs09215fgph";
14 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/pngtoico/files/pngtoico-1.0.1-libpng15.patch";
15 hash = "sha256-MeRV4FL37Wq7aFRnjbxPokcBKmPM+h94cnFJmdvHAt0=";
20 sed -i s,/usr/local,$out, Makefile
23 buildInputs = [ libpng ];
26 homepage = "https://www.kernel.org/pub/software/graphics/pngtoico/";
27 description = "Small utility to convert a set of PNG images to Microsoft ICO format";
28 license = lib.licenses.gpl2Plus;
29 platforms = with lib.platforms; linux;
30 mainProgram = "pngtoico";