12 flutter.buildFlutterApplication rec {
16 src = fetchFromGitHub {
17 owner = "saber-notes";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-ExnqXpaGDlnuhBUTUjVpc5gEto2Uaqdq9P/AnVDuIBw=";
24 receive_sharing_intent = "sha256-ppKPBL2ZOx2MeuLY6Q8aiVGsektK+Mqtwyxps0aNtwk=";
25 json2yaml = "sha256-Vb0Bt11OHGX5+lDf8KqYZEGoXleGi5iHXVS2k7CEmDw=";
28 pubspecLock = lib.importJSON ./pubspec.lock.json;
36 gst_all_1.gst-plugins-base
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
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
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 ];