2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libpng, perl, perlPackages, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "icoutils";
|
|
|
|
version = "0.32.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-18 13:19:15 +00:00
|
|
|
url = "mirror://savannah/icoutils/icoutils-${version}.tar.bz2";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1q66cksms4l62y0wizb8vfavhmf7kyfgcfkynil3n99s0hny1aqp";
|
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ libpng perl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ perlPackages.LWP ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
# Fixes a build failure on aarch64-darwin. Define for all Darwin targets for when x86_64-darwin
|
|
|
|
# upgrades to a newer SDK.
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DTARGET_OS_IPHONE=0";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2020-04-24 23:36:52 +00: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://www.nongnu.org/icoutils/";
|
|
|
|
description = "Set of programs to deal with Microsoft Windows(R) icon and cursor files";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = with lib.platforms; linux ++ darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|