From c84307e3a3d2e9131c611c21640f52fcd522c3d3 Mon Sep 17 00:00:00 2001 From: Zexin Yuan Date: Sat, 25 Oct 2025 13:59:28 +0800 Subject: [PATCH] feather-tk: build shared libs --- pkgs/by-name/fe/feather-tk/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/fe/feather-tk/package.nix b/pkgs/by-name/fe/feather-tk/package.nix index 4168898f019c..18dca96dc0b2 100644 --- a/pkgs/by-name/fe/feather-tk/package.nix +++ b/pkgs/by-name/fe/feather-tk/package.nix @@ -21,6 +21,7 @@ enablePython ? false, enableTests ? false, enableExamples ? false, + enableShared ? !stdenv.hostPlatform.isStatic, }: stdenv.mkDerivation (finalAttrs: { @@ -31,7 +32,6 @@ stdenv.mkDerivation (finalAttrs: { owner = "darbyjohnston"; repo = "feather-tk"; tag = finalAttrs.version; - fetchSubmodules = true; hash = "sha256-hcV99y14o3YFUtKDLEKaR7MxBB3pBdd3sferrYvtvYw="; }; @@ -63,6 +63,7 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ (lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release") + (lib.cmakeBool "BUILD_SHARED_LIBS" enableShared) (lib.cmakeBool "feather_tk_UI_LIB" true) (lib.cmakeFeature "feather_tk_API" "GL_4_1") (lib.cmakeBool "feather_tk_nfd" enableNFD)