nixpkgs/pkgs/tools/graphics/icoutils/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.2 KiB
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchurl, libpng, perl, perlPackages, makeWrapper }:
stdenv.mkDerivation rec {
pname = "icoutils";
version = "0.32.3";
src = fetchurl {
url = "mirror://savannah/icoutils/icoutils-${version}.tar.bz2";
icoutils: 0.32.2 -> 0.32.3 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/icoutils/versions. These checks were done: - built on NixOS - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/extresso -h` got 0 exit code - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/extresso --help` got 0 exit code - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/extresso --version` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/genresscript -h` got 0 exit code - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/genresscript --help` got 0 exit code - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/genresscript help` got 0 exit code - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/genresscript -V` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/genresscript -v` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/genresscript --version` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/genresscript version` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/genresscript help` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/icotool --help` got 0 exit code - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/icotool --version` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/icotool --help` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/wrestool --help` got 0 exit code - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/wrestool --version` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/wrestool --help` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/.genresscript-wrapped -h` got 0 exit code - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/.genresscript-wrapped --help` got 0 exit code - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/.genresscript-wrapped help` got 0 exit code - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/.genresscript-wrapped -V` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/.genresscript-wrapped -v` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/.genresscript-wrapped --version` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/.genresscript-wrapped version` and found version 0.32.3 - ran `/nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3/bin/.genresscript-wrapped help` and found version 0.32.3 - found 0.32.3 with grep in /nix/store/9h7cpd3qsaklbxsqvw7s4r9vl07f6pj3-icoutils-0.32.3 - directory tree listing: https://gist.github.com/b0d187c96c8551d0d9c33805a2e38645
2018-03-31 16:02:44 +01:00
sha256 = "1q66cksms4l62y0wizb8vfavhmf7kyfgcfkynil3n99s0hny1aqp";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ libpng perl ];
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";
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 09:19:50 +00:00
license = lib.licenses.gpl3Plus;
platforms = with lib.platforms; linux ++ darwin;
};
}