2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, libpng, openjpeg }:
|
2012-03-30 02:36:38 +01:00
|
|
|
|
2012-10-07 23:22:30 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-11-17 21:08:59 +00:00
|
|
|
pname = "libicns";
|
|
|
|
version = "0.8.1";
|
2012-03-30 02:36:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-11-17 21:08:59 +00:00
|
|
|
url = "mirror://sourceforge/icns/${pname}-${version}.tar.gz";
|
2012-10-07 23:22:30 +01:00
|
|
|
sha256 = "1hjm8lwap7bjyyxsyi94fh5817xzqhk4kb5y0b7mb6675xw10prk";
|
2012-03-30 02:36:38 +01:00
|
|
|
};
|
|
|
|
|
2019-11-17 21:08:59 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/libi/libicns/0.8.1-3.1/debian/patches/support-libopenjp2.patch";
|
|
|
|
sha256 = "0ss298lyzvydxvaxsadi6kbbjpwykd86jw3za76brcsg2dpssgas";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ libpng openjpeg ];
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${openjpeg.dev}/include/${openjpeg.incDir}" ];
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-10-17 19:45:44 +01:00
|
|
|
description = "Library for manipulation of the Mac OS icns resource format";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://icns.sourceforge.io";
|
2018-10-17 19:45:44 +01:00
|
|
|
license = with licenses; [ gpl2 lgpl2 lgpl21 ];
|
|
|
|
platforms = platforms.unix;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2012-03-30 02:36:38 +01:00
|
|
|
}
|