diff options
author | Stanisław Pitucha <git@viraptor.info> | 2023-03-24 22:02:48 +1100 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-03-24 20:30:11 -0300 |
commit | 8e09dec9eefee49d4cedc8be7b1ac01862b9ca67 (patch) | |
tree | 99a65e032af50ffe2ea8131fd30de5b0b3fdbafd | |
parent | cbb3c7139fb7994f98ce399d355126b9620ecd23 (diff) | |
download | nixpkgs-8e09dec9eefee49d4cedc8be7b1ac01862b9ca67.tar nixpkgs-8e09dec9eefee49d4cedc8be7b1ac01862b9ca67.tar.gz nixpkgs-8e09dec9eefee49d4cedc8be7b1ac01862b9ca67.tar.bz2 nixpkgs-8e09dec9eefee49d4cedc8be7b1ac01862b9ca67.tar.lz nixpkgs-8e09dec9eefee49d4cedc8be7b1ac01862b9ca67.tar.xz nixpkgs-8e09dec9eefee49d4cedc8be7b1ac01862b9ca67.tar.zst nixpkgs-8e09dec9eefee49d4cedc8be7b1ac01862b9ca67.zip |
librep: fix darwin build
Functions coming from ctype.h get inlines, but are not static when compiling this with clang. This causes duplicates when linking. Force an older gnu standard to prevent the issue.
-rw-r--r-- | pkgs/development/libraries/librep/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/librep/default.nix b/pkgs/development/libraries/librep/default.nix index 3a17d0279dc..e67d47d4502 100644 --- a/pkgs/development/libraries/librep/default.nix +++ b/pkgs/development/libraries/librep/default.nix @@ -31,6 +31,9 @@ stdenv.mkDerivation rec { readline ]; + # ensure libsystem/ctype functions don't get duplicated when using clang + configureFlags = lib.optionals stdenv.isDarwin [ "CFLAGS=-std=gnu89" ]; + setupHook = ./setup-hook.sh; meta = with lib;{ @@ -44,7 +47,6 @@ stdenv.mkDerivation rec { license = licenses.gpl2Plus; maintainers = [ maintainers.AndersonTorres ]; platforms = platforms.unix; - broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/librep.x86_64-darwin }; } # TODO: investigate fetchFromGithub |