saunafs: fix postInstall
link to mount tool would have not been created in case of static linking.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user