From 75322a3817a66dec05c677768b4b47b9359e1d71 Mon Sep 17 00:00:00 2001 From: Tristan Gosselin-Hane Date: Mon, 15 Nov 2021 01:58:37 -0500 Subject: [PATCH 1/2] pngcheck: enable building on darwin --- pkgs/tools/graphics/pngcheck/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/graphics/pngcheck/default.nix b/pkgs/tools/graphics/pngcheck/default.nix index 266b85c54c54..1d4379b7f8f2 100644 --- a/pkgs/tools/graphics/pngcheck/default.nix +++ b/pkgs/tools/graphics/pngcheck/default.nix @@ -11,6 +11,10 @@ stdenv.mkDerivation rec { hardeningDisable = [ "format" ]; + postPatch = lib.optionalString stdenv.isDarwin '' + substituteInPlace Makefile.unx --replace "gcc" "clang" + ''; + makefile = "Makefile.unx"; makeFlags = [ "ZPATH=${zlib.static}/lib" ]; @@ -21,10 +25,10 @@ stdenv.mkDerivation rec { cp pngcheck $out/bin/pngcheck ''; - meta = { + meta = with lib; { homepage = "http://pmt.sourceforge.net/pngcrush"; description = "Verifies the integrity of PNG, JNG and MNG files"; - license = lib.licenses.free; - platforms = with lib.platforms; linux; + license = licenses.free; + platforms = with platforms; [ unix ]; }; } From d4fbff9d649a45ae847ff4016cae62d4a21c5d3a Mon Sep 17 00:00:00 2001 From: Tristan Gosselin-Hane Date: Mon, 15 Nov 2021 01:59:06 -0500 Subject: [PATCH 2/2] pngcheck: take ownership --- pkgs/tools/graphics/pngcheck/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/graphics/pngcheck/default.nix b/pkgs/tools/graphics/pngcheck/default.nix index 1d4379b7f8f2..a4680dff6f64 100644 --- a/pkgs/tools/graphics/pngcheck/default.nix +++ b/pkgs/tools/graphics/pngcheck/default.nix @@ -30,5 +30,6 @@ stdenv.mkDerivation rec { description = "Verifies the integrity of PNG, JNG and MNG files"; license = licenses.free; platforms = with platforms; [ unix ]; + maintainers = with maintainers; [ starcraft66 ]; }; }