From 4d043e49bddbc5c1f6cc96de6fdc185eca2ce7dc Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Tue, 14 Oct 2025 10:38:55 +0200 Subject: [PATCH] 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;