From bdb22bce904bd19b073799da7325d3722b183ca6 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 30 Apr 2022 19:48:47 +0000 Subject: [PATCH] pkgsStatic.slang: fix build --- pkgs/development/libraries/slang/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/slang/default.nix b/pkgs/development/libraries/slang/default.nix index a3db5ce0d3be..fe32076858a9 100644 --- a/pkgs/development/libraries/slang/default.nix +++ b/pkgs/development/libraries/slang/default.nix @@ -44,6 +44,13 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ ncurses ]; + buildFlags = lib.optional stdenv.hostPlatform.isStatic "static"; + installTargets = lib.optional stdenv.hostPlatform.isStatic "install-static"; + + preBuild = '' + makeFlagsArray+=(AR_CR="${stdenv.cc.targetPrefix}ar cr") + ''; + # slang 2.3.2 does not support parallel building enableParallelBuilding = false;