2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, libpng, perl, perlPackages, makeWrapper }:
|
2012-01-04 09:42:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 19:41:54 +01:00
|
|
|
pname = "icoutils";
|
|
|
|
version = "0.32.3";
|
2012-01-04 09:42:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-12 19:41:54 +01:00
|
|
|
url = "mirror://savannah/icoutils/icoutils-${version}.tar.bz2";
|
2018-03-31 16:02:44 +01:00
|
|
|
sha256 = "1q66cksms4l62y0wizb8vfavhmf7kyfgcfkynil3n99s0hny1aqp";
|
2012-01-04 09:42:38 +00:00
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ libpng perl ];
|
2016-07-05 16:47:34 +01:00
|
|
|
propagatedBuildInputs = [ perlPackages.LWP ];
|
|
|
|
|
2022-02-24 03:58:34 +00:00
|
|
|
# Fixes a build failure on aarch64-darwin. Define for all Darwin targets for when x86_64-darwin
|
|
|
|
# upgrades to a newer SDK.
|
|
|
|
NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-DTARGET_OS_IPHONE=0";
|
|
|
|
|
2016-07-05 16:47:34 +01:00
|
|
|
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
|
|
|
|
'';
|
2012-01-04 09:42:38 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.nongnu.org/icoutils/";
|
2016-07-05 16:47:34 +01:00
|
|
|
description = "Set of programs to deal with Microsoft Windows(R) icon and cursor files";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = with lib.platforms; linux ++ darwin;
|
2012-01-04 09:42:38 +00:00
|
|
|
};
|
|
|
|
}
|