From 34133d5425f4adbf4e9337d3c2b0695e654a5082 Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Fri, 25 Sep 2020 04:57:19 +0700 Subject: [PATCH] st: enable build on darwin (#98668) --- pkgs/applications/misc/st/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/misc/st/default.nix b/pkgs/applications/misc/st/default.nix index a772629a7aaa..5d496dedc2e0 100644 --- a/pkgs/applications/misc/st/default.nix +++ b/pkgs/applications/misc/st/default.nix @@ -15,6 +15,9 @@ stdenv.mkDerivation rec { inherit patches; configFile = optionalString (conf!=null) (writeText "config.def.h" conf); + patchPhase = optionalString stdenv.isDarwin '' + substituteInPlace config.mk --replace "-lrt" "" + ''; postPatch = optionalString (conf!=null) "cp ${configFile} config.def.h"; nativeBuildInputs = [ pkgconfig ncurses ];