Commit 9c45d115 authored by aucub's avatar aucub
Browse files

saber: 0.25.1 -> 0.25.2

parent 6e9c9cba
Loading
Loading
Loading
Loading
+27 −9
Original line number Diff line number Diff line
@@ -6,28 +6,38 @@
  libunwind,
  orc,
  webkitgtk_4_1,
  autoPatchelfHook,
  xorg,
}:
flutter.buildFlutterApplication rec {
  pname = "saber";
  version = "0.25.1";
  version = "0.25.2";

  src = fetchFromGitHub {
    owner = "saber-notes";
    repo = "saber";
    rev = "v${version}";
    hash = "sha256-vpL4Pp1nR6JlANCvo1u/o8yyzSQqtOjUF7Zr34ZitWU=";
    rev = "refs/tags/v${version}";
    hash = "sha256-ExnqXpaGDlnuhBUTUjVpc5gEto2Uaqdq9P/AnVDuIBw=";
  };

  gitHashes.json2yaml = "sha256-Vb0Bt11OHGX5+lDf8KqYZEGoXleGi5iHXVS2k7CEmDw=";
  gitHashes = {
    receive_sharing_intent = "sha256-ppKPBL2ZOx2MeuLY6Q8aiVGsektK+Mqtwyxps0aNtwk=";
    json2yaml = "sha256-Vb0Bt11OHGX5+lDf8KqYZEGoXleGi5iHXVS2k7CEmDw=";
  };

  pubspecLock = lib.importJSON ./pubspec.lock.json;

  nativeBuildInputs = [
    autoPatchelfHook
  ];

  buildInputs = [
    gst_all_1.gstreamer.dev
    gst_all_1.gst-plugins-base.dev
    libunwind.dev
    orc.dev
    gst_all_1.gstreamer
    gst_all_1.gst-plugins-base
    libunwind
    orc
    webkitgtk_4_1
    xorg.libXmu
  ];

  postInstall = ''
@@ -35,12 +45,20 @@ flutter.buildFlutterApplication rec {
    install -Dm0644 ./assets/icon/icon.svg $out/share/icons/hicolor/scalable/apps/com.adilhanney.saber.svg
  '';

  preFixup = ''
    # Remove libpdfrx.so's reference to the /build/ directory
    patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" $out/app/${pname}/lib/lib*.so
  '';

  meta = {
    description = "The cross-platform open-source app built for handwriting";
    homepage = "https://github.com/saber-notes/saber";
    mainProgram = "saber";
    license = with lib.licenses; [ gpl3Plus ];
    maintainers = with lib.maintainers; [ aucub ];
    platforms = lib.platforms.linux;
    platforms = [
      "aarch64-linux"
      "x86_64-linux"
    ];
  };
}
+149 −78

File changed.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ let
            "mime_guess-2.0.4" = "sha256-KSw0YUTGqNEWY9pMvQplUGajJgoP2BRwVX6qZPpB2rI=";
          };
        };
        _0_9_0-dev_3 = _0_8_22;
        _0_8_24 = _0_8_22;
        _0_8_21 = _0_8_22;
        _0_8_20 = _0_8_22;