From 653c1f69c3737a26fbe314fb9f6adc3f43e136b1 Mon Sep 17 00:00:00 2001 From: zimward <96021122+zimward@users.noreply.github.com> Date: Thu, 2 Jan 2025 18:52:13 +0900 Subject: [PATCH] splitcode: add update script; 0.30.0 -> 0.31.2 --- pkgs/by-name/sp/splitcode/add-stdint.patch | 12 ------------ pkgs/by-name/sp/splitcode/package.nix | 15 ++++++++++----- 2 files changed, 10 insertions(+), 17 deletions(-) delete mode 100644 pkgs/by-name/sp/splitcode/add-stdint.patch diff --git a/pkgs/by-name/sp/splitcode/add-stdint.patch b/pkgs/by-name/sp/splitcode/add-stdint.patch deleted file mode 100644 index e502856b5596..000000000000 --- a/pkgs/by-name/sp/splitcode/add-stdint.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/src/SplitCode.h b/src/SplitCode.h -index 45c199c..fb05250 100644 ---- a/src/SplitCode.h -+++ b/src/SplitCode.h -@@ -18,6 +18,7 @@ - #include - #include - #include -+#include - - #if defined(_MSVC_LANG) - #define SPLITCODE_CPP_VERSION _MSVC_LANG diff --git a/pkgs/by-name/sp/splitcode/package.nix b/pkgs/by-name/sp/splitcode/package.nix index a63a9b43681a..5e59f7c88be9 100644 --- a/pkgs/by-name/sp/splitcode/package.nix +++ b/pkgs/by-name/sp/splitcode/package.nix @@ -5,9 +5,10 @@ cmake, libcxx, zlib, + nix-update-script, }: let - version = "0.30.0"; + version = "0.31.2"; in stdenv.mkDerivation { pname = "splitcode"; @@ -16,12 +17,10 @@ stdenv.mkDerivation { src = fetchFromGitHub { owner = "pachterlab"; repo = "splitcode"; - rev = "v${version}"; - hash = "sha256-g38pJFP9uA2P5ktogAPXKgPtsEJn5vtnK5HClqqezmg="; + tag = "v${version}"; + hash = "sha256-fIx8EXdhkIkWmb86HKlUPSgsKvbGcrKsuNMWo8kU+Aw="; }; - patches = [ ./add-stdint.patch ]; - nativeBuildInputs = [ cmake ]; buildInputs = [ @@ -36,6 +35,8 @@ stdenv.mkDerivation { bash ./func_tests/runtests.sh ''; + passthru.updateScript = nix-update-script { }; + meta = { description = "Tool for flexible, efficient parsing, interpreting, and editing of technical sequences in sequencing reads"; homepage = "https://github.com/pachterlab/splitcode"; @@ -43,5 +44,9 @@ stdenv.mkDerivation { platforms = lib.platforms.all; maintainers = with lib.maintainers; [ zimward ]; mainProgram = "splitcode"; + badPlatforms = [ + # Test hangs indefinitely. See https://github.com/pachterlab/splitcode/issues/31 + "aarch64-linux" + ]; }; }