Unverified Commit 564feec5 authored by Markus Kowalewski's avatar Markus Kowalewski Committed by GitHub
Browse files

saunafs: 5.1.2 -> 5.3.0 (#451796)

parents c7dc3acf 4d043e49
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -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 = [
@@ -68,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
    '';