python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / sa / saber / package.nix
blob59b51e036d954625214940c8e2a26f73c05d4b9d
2   lib,
3   fetchFromGitHub,
4   flutter,
5   gst_all_1,
6   libunwind,
7   orc,
8   webkitgtk_4_1,
9   autoPatchelfHook,
10   xorg,
12 flutter.buildFlutterApplication rec {
13   pname = "saber";
14   version = "0.25.2";
16   src = fetchFromGitHub {
17     owner = "saber-notes";
18     repo = "saber";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-ExnqXpaGDlnuhBUTUjVpc5gEto2Uaqdq9P/AnVDuIBw=";
21   };
23   gitHashes = {
24     receive_sharing_intent = "sha256-ppKPBL2ZOx2MeuLY6Q8aiVGsektK+Mqtwyxps0aNtwk=";
25     json2yaml = "sha256-Vb0Bt11OHGX5+lDf8KqYZEGoXleGi5iHXVS2k7CEmDw=";
26   };
28   pubspecLock = lib.importJSON ./pubspec.lock.json;
30   nativeBuildInputs = [
31     autoPatchelfHook
32   ];
34   buildInputs = [
35     gst_all_1.gstreamer
36     gst_all_1.gst-plugins-base
37     libunwind
38     orc
39     webkitgtk_4_1
40     xorg.libXmu
41   ];
43   postInstall = ''
44     install -Dm0644 ./flatpak/com.adilhanney.saber.desktop $out/share/applications/com.adilhanney.saber.desktop
45     install -Dm0644 ./assets/icon/icon.svg $out/share/icons/hicolor/scalable/apps/com.adilhanney.saber.svg
46   '';
48   preFixup = ''
49     # Remove libpdfrx.so's reference to the /build/ directory
50     patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" $out/app/${pname}/lib/lib*.so
51   '';
53   meta = {
54     description = "The cross-platform open-source app built for handwriting";
55     homepage = "https://github.com/saber-notes/saber";
56     mainProgram = "saber";
57     license = with lib.licenses; [ gpl3Plus ];
58     maintainers = with lib.maintainers; [ aucub ];
59     platforms = [
60       "aarch64-linux"
61       "x86_64-linux"
62     ];
63   };