From 5e9ee3e380f7934f420021eaf3a212524ee21461 Mon Sep 17 00:00:00 2001 From: Tobias Mayer Date: Sat, 23 Mar 2024 16:53:46 +0100 Subject: [PATCH] xxhash: pkgConfigModules, drop flags * add the `libxxhash` pkg-config module name * `BUILD_SHARED_LIBS` is handled by `pkgsStatic` automatically. --- pkgs/development/libraries/xxHash/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/xxHash/default.nix b/pkgs/development/libraries/xxHash/default.nix index c78fc302afe4..f7461c878c23 100644 --- a/pkgs/development/libraries/xxHash/default.nix +++ b/pkgs/development/libraries/xxHash/default.nix @@ -22,10 +22,6 @@ stdenv.mkDerivation rec { # Using unofficial CMake build script to install CMake module files. cmakeDir = "../cmake_unofficial"; - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}" - ]; - meta = with lib; { description = "Extremely fast hash algorithm"; longDescription = '' @@ -40,5 +36,8 @@ stdenv.mkDerivation rec { mainProgram = "xxhsum"; maintainers = with maintainers; [ orivej ]; platforms = platforms.all; + pkgConfigModules = [ + "libxxhash" + ]; }; }