saunafs: fix postInstall

link to mount tool would have not been created
in case of static linking.
This commit is contained in:
Markus Kowalewski
2025-11-19 13:14:14 +01:00
parent ce56e50445
commit 4d043e49bd
+7 -5
View File
@@ -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;