From 8714f77b8b05385b108b0175543d32c3bf59155e Mon Sep 17 00:00:00 2001 From: Lucas Franceschino Date: Sat, 14 May 2022 18:11:23 +0200 Subject: [PATCH 1/2] ploticus: fix --- pkgs/tools/graphics/ploticus/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/graphics/ploticus/default.nix b/pkgs/tools/graphics/ploticus/default.nix index 50b7aad48a0..89b1cb220a1 100644 --- a/pkgs/tools/graphics/ploticus/default.nix +++ b/pkgs/tools/graphics/ploticus/default.nix @@ -4,6 +4,7 @@ , zlib , libX11 , libpng +, libjpeg , gd , freetype }: @@ -36,6 +37,7 @@ stdenv.mkDerivation rec { libpng gd freetype + libjpeg ]; hardeningDisable = [ "format" ]; From aa8e4e5a0eecad855b8a6b4de168231dd2b54339 Mon Sep 17 00:00:00 2001 From: Lucas Franceschino Date: Sun, 15 May 2022 11:04:03 +0200 Subject: [PATCH 2/2] ploticus: add Darwin support thanks @risicle --- pkgs/tools/graphics/ploticus/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/graphics/ploticus/default.nix b/pkgs/tools/graphics/ploticus/default.nix index 89b1cb220a1..f315dc9a63c 100644 --- a/pkgs/tools/graphics/ploticus/default.nix +++ b/pkgs/tools/graphics/ploticus/default.nix @@ -45,6 +45,7 @@ stdenv.mkDerivation rec { preBuild = '' cd src ''; + makeFlags = [ "CC=cc" ]; preInstall = '' mkdir -p "$out/bin" @@ -74,6 +75,6 @@ stdenv.mkDerivation rec { license = licenses.gpl2Plus; maintainers = with maintainers; [ pSub ]; homepage = "http://ploticus.sourceforge.net/"; - platforms = with platforms; linux; + platforms = with platforms; linux ++ darwin; }; }