2023-11-21 18:45:27 +00:00
|
|
|
{ lib, stdenv, fetchurl, libpng, fetchpatch }:
|
2012-01-04 09:29:52 +00:00
|
|
|
|
2021-08-12 18:41:54 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pngtoico";
|
|
|
|
version = "1.0";
|
2012-01-04 09:29:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-12 18:41:54 +00:00
|
|
|
url = "mirror://kernel/software/graphics/pngtoico/pngtoico-${version}.tar.gz";
|
2012-01-04 09:29:52 +00:00
|
|
|
sha256 = "1xb4aa57sjvgqfp01br3dm72hf7q0gb2ad144s1ifrs09215fgph";
|
|
|
|
};
|
|
|
|
|
2023-11-21 18:45:27 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/pngtoico/files/pngtoico-1.0.1-libpng15.patch";
|
|
|
|
hash = "sha256-MeRV4FL37Wq7aFRnjbxPokcBKmPM+h94cnFJmdvHAt0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2012-01-04 09:29:52 +00:00
|
|
|
configurePhase = ''
|
|
|
|
sed -i s,/usr/local,$out, Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libpng ];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.kernel.org/pub/software/graphics/pngtoico/";
|
2012-01-04 09:29:52 +00:00
|
|
|
description = "Small utility to convert a set of PNG images to Microsoft ICO format";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = with lib.platforms; linux;
|
2023-11-23 02:51:17 +00:00
|
|
|
mainProgram = "pngtoico";
|
2012-01-04 09:29:52 +00:00
|
|
|
};
|
|
|
|
}
|