From ce56e50445339087ab04d2c71b6f185ca5a48603 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Mon, 13 Oct 2025 23:05:27 +0200 Subject: [PATCH 1/2] saunafs: 5.1.2 -> 5.3.0 --- pkgs/by-name/sa/saunafs/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sa/saunafs/package.nix b/pkgs/by-name/sa/saunafs/package.nix index 6137211a8f8a..3635e4a13766 100644 --- a/pkgs/by-name/sa/saunafs/package.nix +++ b/pkgs/by-name/sa/saunafs/package.nix @@ -18,17 +18,18 @@ judy, prometheus-cpp, libz, + gtest, }: stdenv.mkDerivation (finalAttrs: { pname = "saunafs"; - version = "5.1.2"; + version = "5.3.0"; src = fetchFromGitHub { owner = "leil-io"; repo = "saunafs"; rev = "v${finalAttrs.version}"; - hash = "sha256-56PlUeXHqNhKYokKWqLCeaP3FZBdefhQFQQoP8YytQQ="; + hash = "sha256-pT12m50q6unqx9IzRHRs8WE7ygVJW8bi0IKUHu8bGCs="; }; patches = [ @@ -59,6 +60,7 @@ stdenv.mkDerivation (finalAttrs: { judy prometheus-cpp libz + gtest ]; cmakeFlags = [ From 4d043e49bddbc5c1f6cc96de6fdc185eca2ce7dc Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Tue, 14 Oct 2025 10:38:55 +0200 Subject: [PATCH 2/2] saunafs: fix postInstall link to mount tool would have not been created in case of static linking. --- pkgs/by-name/sa/saunafs/package.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/sa/saunafs/package.nix b/pkgs/by-name/sa/saunafs/package.nix index 3635e4a13766..e4fbf89cdffe 100644 --- a/pkgs/by-name/sa/saunafs/package.nix +++ b/pkgs/by-name/sa/saunafs/package.nix @@ -70,11 +70,13 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "ENABLE_JEMALLOC" true) ]; - postInstall = lib.optionalString (!stdenv.hostPlatform.isStatic) '' - rm $out/lib/*.a - - ln -s $out/bin/sfsmount $out/bin/mount.saunafs - ''; + postInstall = + lib.optionalString (!stdenv.hostPlatform.isStatic) '' + rm $out/lib/*.a + '' + + '' + ln -s $out/bin/sfsmount $out/bin/mount.saunafs + ''; passthru.tests = nixosTests.saunafs;