From 496b2b06384d11c3755c3689f5c56efd9f4a9dd6 Mon Sep 17 00:00:00 2001 From: Maximilian Marx Date: Wed, 12 Jun 2024 14:53:10 +0200 Subject: [PATCH] Bump trident --- nix/pkgs/trident/default.nix | 11 +++++---- .../trident/patches/trident-cstdint.patch | 24 +++++++++++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 nix/pkgs/trident/patches/trident-cstdint.patch diff --git a/nix/pkgs/trident/default.nix b/nix/pkgs/trident/default.nix index 9e5d4754a..4557763d7 100644 --- a/nix/pkgs/trident/default.nix +++ b/nix/pkgs/trident/default.nix @@ -13,12 +13,12 @@ }: stdenv.mkDerivation { pname = "trident"; - version = "unstable-2022-11-25"; + version = "unstable-2023-07-19"; src = pkgs.fetchFromGitHub { owner = "karmaresearch"; repo = "trident"; - rev = "6665f4465451478119721337f65b128f868f2362"; - sha256 = "kcITwU1dVbB/sov7ZzkknSczLtTxWD9HfyFSIOOx9ak="; + rev = "621ed49c648c811d5f69617833539f419766d3be"; + hash = "sha256-J/8xlMjC99EOg/Os7/859hnnRr0Z+W8G68FQ2L4iwiE="; }; buildInputs = [zlib sparsehash lz4]; @@ -32,7 +32,10 @@ stdenv.mkDerivation { "-DKOGNAC_INC=${kognac}/share/include" ]; # this patch forces CMake to prefer our provided lz4 library. - patches = [./patches/trident-lz4.patch]; + patches = [ + ./patches/trident-lz4.patch + ./patches/trident-cstdint.patch + ]; installPhase = '' runHook preInstall diff --git a/nix/pkgs/trident/patches/trident-cstdint.patch b/nix/pkgs/trident/patches/trident-cstdint.patch new file mode 100644 index 000000000..38d9e43bd --- /dev/null +++ b/nix/pkgs/trident/patches/trident-cstdint.patch @@ -0,0 +1,24 @@ +From 4ee17b81f510c72156737896f8f1c15620dd97ca Mon Sep 17 00:00:00 2001 +From: Maximilian Marx +Date: Wed, 12 Jun 2024 14:57:18 +0200 +Subject: [PATCH 2/2] Fix missing include + +--- + include/trident/utils/fft.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/trident/utils/fft.h b/include/trident/utils/fft.h +index 3919904..bdd9861 100644 +--- a/include/trident/utils/fft.h ++++ b/include/trident/utils/fft.h +@@ -2,6 +2,7 @@ + #define _FFT_H + + #include ++#include + typedef struct Complex { + + public: +-- +2.44.1 +