From 363dc695f6bd0765dfb3fdc2fdc5f04522e58cc4 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Tue, 21 Nov 2023 19:45:27 +0100 Subject: [PATCH] pngtoico: use up-to-date libpng --- pkgs/tools/graphics/pngtoico/default.nix | 9 ++++++++- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/graphics/pngtoico/default.nix b/pkgs/tools/graphics/pngtoico/default.nix index 7abf94f0a3e1..dae0802427fc 100644 --- a/pkgs/tools/graphics/pngtoico/default.nix +++ b/pkgs/tools/graphics/pngtoico/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, libpng }: +{ lib, stdenv, fetchurl, libpng, fetchpatch }: stdenv.mkDerivation rec { pname = "pngtoico"; @@ -9,6 +9,13 @@ stdenv.mkDerivation rec { sha256 = "1xb4aa57sjvgqfp01br3dm72hf7q0gb2ad144s1ifrs09215fgph"; }; + 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="; + }) + ]; + configurePhase = '' sed -i s,/usr/local,$out, Makefile ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0962ec1f04f1..149c6e3ecca4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12201,9 +12201,7 @@ with pkgs; pngoptimizer = callPackage ../tools/graphics/pngoptimizer { }; - pngtoico = callPackage ../tools/graphics/pngtoico { - libpng = libpng12; - }; + pngtoico = callPackage ../tools/graphics/pngtoico { }; pngpaste = callPackage ../os-specific/darwin/pngpaste { inherit (darwin.apple_sdk.frameworks) AppKit Cocoa;