From 07c0b329855aa0c3b72aae7195ff0f4a106c3583 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 20 Jan 2026 21:20:14 +0000 Subject: [PATCH] sptk: 4.2 -> 4.4, fix install failure for dangling symlinks Without the change the build fails as https://hydra.nixos.org/build/318191976: ERROR: noBrokenSymlinks: the symlink /nix/store/h8v4y5s72czz0hd701jmf6kjj7bq81w4-sptk-4.2/bin/gspecgram points to /build directory: /build/source/src/draw/gspecgram.py Changes: - https://github.com/sp-nitech/SPTK/releases/tag/v4.3 - https://github.com/sp-nitech/SPTK/releases/tag/v4.4 --- pkgs/by-name/sp/sptk/package.nix | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/sp/sptk/package.nix b/pkgs/by-name/sp/sptk/package.nix index 5d8759c8e106..360550ac3cf8 100644 --- a/pkgs/by-name/sp/sptk/package.nix +++ b/pkgs/by-name/sp/sptk/package.nix @@ -4,26 +4,26 @@ cmake, fetchFromGitHub, fetchpatch, + python3, }: stdenv.mkDerivation rec { pname = "sptk"; - version = "4.2"; + version = "4.4"; src = fetchFromGitHub { owner = "sp-nitech"; repo = "SPTK"; rev = "v${version}"; - hash = "sha256-lIyOcN2AR3ilUZ9stpicjbwlredbwgGPwmMICxZEijU="; + hash = "sha256-QdaXIFsFXL9/CtUJlOaUKOTmG/nm6ibBEsVfzW9pT/U="; }; patches = [ - # Fix gcc-13 build failure: - # https://github.com/sp-nitech/SPTK/pull/57 + # fix dangling symlinks: https://github.com/sp-nitech/SPTK/pull/90 (fetchpatch { - name = "gcc-13.patch"; - url = "https://github.com/sp-nitech/SPTK/commit/060bc2ad7a753c1f9f9114a70d4c4337b91cb7e0.patch"; - hash = "sha256-QfzpIS63LZyTHAaMGUZh974XLRNZLQG3om7ZJJ4RlgE="; + name = "fix-dangling.patch"; + url = "https://github.com/sp-nitech/SPTK/commit/8798c94d19e930c0947a7d1d0bc9e59a02aab567.patch"; + hash = "sha256-G7yyJ0uiVzcP6wQVwiDpWVZOJmOpKZRfNyoETt3xam4="; }) ]; @@ -31,6 +31,14 @@ stdenv.mkDerivation rec { cmake ]; + buildInputs = [ + (python3.withPackages (ps: [ + ps.numpy + ps.plotly + ps.scipy + ])) + ]; + doCheck = true; meta = {