Skip to content

Commit

Permalink
pkgsStatic.slang: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssais committed Apr 30, 2022
1 parent c3dabb4 commit 7724952
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/development/libraries/slang/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7724952

Please sign in to comment.