Commit 4d043e49 authored by Markus Kowalewski's avatar Markus Kowalewski
Browse files

saunafs: fix postInstall

link to mount tool would have not been created
in case of static linking.
parent ce56e504
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -70,9 +70,11 @@ stdenv.mkDerivation (finalAttrs: {
    (lib.cmakeBool "ENABLE_JEMALLOC" true)
  ];

  postInstall = lib.optionalString (!stdenv.hostPlatform.isStatic) ''
  postInstall =
    lib.optionalString (!stdenv.hostPlatform.isStatic) ''
      rm $out/lib/*.a

    ''
    + ''
      ln -s $out/bin/sfsmount $out/bin/mount.saunafs
    '';