diff options
author | toonn | 2024-07-29 13:30:49 +0200 |
---|---|---|
committer | toonn | 2024-07-29 13:30:49 +0200 |
commit | 6b69b647e0f4d2caafe7a2e7dc4b052d2a70bd41 (patch) | |
tree | 01c5a088cdce8a937ca585156fa5a05c900d449d /pkgs/by-name/xe | |
parent | 9eec19ff11befdecda4c3c74f939e99b8f6ed1b2 (diff) |
xeve: Link libm into shared library
Diffstat (limited to 'pkgs/by-name/xe')
-rw-r--r-- | pkgs/by-name/xe/xeve/package.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/by-name/xe/xeve/package.nix b/pkgs/by-name/xe/xeve/package.nix index f8d44b4a2f1d..0788061df416 100644 --- a/pkgs/by-name/xe/xeve/package.nix +++ b/pkgs/by-name/xe/xeve/package.nix @@ -1,6 +1,7 @@ { lib, fetchFromGitHub, + fetchpatch2, gitUpdater, stdenv, cmake, @@ -17,6 +18,13 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-8jXntm/yFme9ZPImdW54jAr11hEsU1K+N5/7RLmITPs="; }; + patches = lib.optionals (!lib.versionOlder "0.5.0" finalAttrs.version) [ + (fetchpatch2 { + url = "https://github.com/mpeg5/xeve/commit/954ed6e0494cd2438fd15c717c0146e88e582b33.patch?full_index=1"; + hash = "sha256-//NtOUm1fqPFvOM955N6gF+QgmOdmuVunwx/3s/G/J8="; + }) + ]; + postPatch = '' echo v$version > version.txt ''; @@ -27,8 +35,6 @@ stdenv.mkDerivation (finalAttrs: { ln $dev/include/xeve/* $dev/include/ ''; - env.NIX_CFLAGS_COMPILE = toString [ "-lm" ]; - outputs = [ "out" "lib" |