saber: init at 0.25.2 (#354119)
This commit is contained in:
commit
2867f69e5c
@ -2,60 +2,34 @@
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
flutter,
|
||||
stdenv,
|
||||
fetchzip,
|
||||
}:
|
||||
let
|
||||
pname = "butterfly";
|
||||
version = "2.2.1";
|
||||
version = "2.2.2";
|
||||
src = fetchFromGitHub {
|
||||
owner = "LinwoodDev";
|
||||
repo = "Butterfly";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-TV7C0v3y9G44Df/x1ST8D0c0QqNBuuhzPBMKUyf/iwo=";
|
||||
};
|
||||
pdfium-binaries = fetchzip {
|
||||
url = "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/5200/pdfium-linux-x64.tgz";
|
||||
hash = "sha256-AJop6gKjF/DPgItuPQsWpgngxiqVNeqBbhHZz3aQ1n0=";
|
||||
stripRoot = false;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-tq2pBvGHDdZoi2EMgBIgNgsg3Ovh2PLCvET98oB+7Sw=";
|
||||
};
|
||||
in
|
||||
flutter.buildFlutterApplication {
|
||||
inherit pname version src;
|
||||
pname = "butterfly";
|
||||
inherit version src;
|
||||
|
||||
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||||
|
||||
sourceRoot = "${src.name}/app";
|
||||
|
||||
customSourceBuilders = {
|
||||
printing =
|
||||
{ version, src, ... }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "printing";
|
||||
inherit version src;
|
||||
inherit (src) passthru;
|
||||
patches = [ ./printing.patch ];
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir $out
|
||||
cp -a ./* $out/
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
env.PDFIUM_DIR = "${pdfium-binaries}";
|
||||
|
||||
gitHashes = {
|
||||
dart_leap = "sha256-eEyUqdVToybQoDwdmz47H0f3/5zRdJzmPv1d/5mTOgA=";
|
||||
lw_file_system = "sha256-CPBwaDTK57SKcaD4IzjIL4cWixEDK9sv3zCDeNfFpw0=";
|
||||
lw_file_system = "sha256-qglyQu/Qu4F0z//hhVmCMHKuh9GclBKLC8G+qKFhd24=";
|
||||
flutter_secure_storage_web = "sha256-ULYXcFjz9gKMjw1Q1KAmX2J7EcE8CbW0MN/EnwmaoQY=";
|
||||
networker = "sha256-8ol5YRim4dLpgR30DXbgHzq+VDk1sPLIi+AxUtwOls8=";
|
||||
networker = "sha256-1b8soPRbHOGAb2wpsfw/uETnAlaCJZyLmynVRDX9Y8s=";
|
||||
lw_file_system_api = "sha256-OOLbqKLvgHUJf3LiiQoHJS6kngnWtHPhswM69sX5fwE=";
|
||||
lw_sysapi = "sha256-9hCAYB5tqYKQPHGa7+Zma6fE8Ei08RvyL9d65FMuI+I=";
|
||||
flex_color_scheme = "sha256-MYEiiltevfz0gDag3yS/ZjeVaJyl1JMS8zvgI0k4Y0k=";
|
||||
material_leap = "sha256-pQ+OvecHaav5QI+Hf7+DDcXYM3JMwogseMzce1ULveY=";
|
||||
networker_socket = "sha256-+h5FXqPhB6VJ269WPoqKk+/1cE+p7UbLvDwnXrJh+CE=";
|
||||
material_leap = "sha256-eEwyu7qn3oMQl5q7Mbunxwwhnk5EuM3mNqnZUcZIpFw=";
|
||||
networker_socket = "sha256-8LRyo5HzreUMGh5j39vL+Gqzxp4MN/jhHYpDxbFV0Ao=";
|
||||
perfect_freehand = "sha256-dMJ8CyhoQWbBRvUQyzPc7vdAhCzcAl1X7CcaT3u6dWo=";
|
||||
};
|
||||
|
||||
@ -70,13 +44,11 @@ flutter.buildFlutterApplication {
|
||||
license = with lib.licenses; [
|
||||
agpl3Plus
|
||||
cc-by-sa-40
|
||||
asl20 # pdfium-binaries
|
||||
];
|
||||
maintainers = with lib.maintainers; [ aucub ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
sourceProvenance = with lib.sourceTypes; [
|
||||
fromSource
|
||||
binaryNativeCode # pdfium-binaries
|
||||
platforms = [
|
||||
"aarch64-linux"
|
||||
"x86_64-linux"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@ -213,7 +213,7 @@
|
||||
"relative": true
|
||||
},
|
||||
"source": "path",
|
||||
"version": "2.2.1"
|
||||
"version": "2.2.2"
|
||||
},
|
||||
"camera": {
|
||||
"dependency": "direct main",
|
||||
@ -239,11 +239,11 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "camera_avfoundation",
|
||||
"sha256": "0d04cec8715b59fb6dc60eefb47e69024f51233c570e475b886dc9290568bca7",
|
||||
"sha256": "2e4c568f70e406ccb87376bc06b53d2f5bebaab71e2fbcc1a950e31449381bcf",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "0.9.17+4"
|
||||
"version": "0.9.17+5"
|
||||
},
|
||||
"camera_platform_interface": {
|
||||
"dependency": "transitive",
|
||||
@ -269,11 +269,11 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "camera_windows",
|
||||
"sha256": "12df8bf0a8b49acd65dc07768fb2cdc9552ab46c2242de88fb208776d8d334da",
|
||||
"sha256": "1f6d1b90048267d69c629deae94ed11a5db76c32afe21b9b58d2a7f1f89cf94d",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "0.2.5"
|
||||
"version": "0.2.6"
|
||||
},
|
||||
"characters": {
|
||||
"dependency": "transitive",
|
||||
@ -309,11 +309,11 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "code_builder",
|
||||
"sha256": "f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37",
|
||||
"sha256": "0ec10bf4a89e4c613960bf1e8b42c64127021740fb21640c29c909826a5eea3e",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "4.10.0"
|
||||
"version": "4.10.1"
|
||||
},
|
||||
"collection": {
|
||||
"dependency": "direct main",
|
||||
@ -329,11 +329,11 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "connectivity_plus",
|
||||
"sha256": "2056db5241f96cdc0126bd94459fc4cdc13876753768fc7a31c425e50a7177d0",
|
||||
"sha256": "876849631b0c7dc20f8b471a2a03142841b482438e3b707955464f5ffca3e4c3",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "6.0.5"
|
||||
"version": "6.1.0"
|
||||
},
|
||||
"connectivity_plus_platform_interface": {
|
||||
"dependency": "transitive",
|
||||
@ -379,11 +379,11 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "csslib",
|
||||
"sha256": "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb",
|
||||
"sha256": "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "1.0.0"
|
||||
"version": "1.0.2"
|
||||
},
|
||||
"dart_leap": {
|
||||
"dependency": "transitive",
|
||||
@ -400,11 +400,11 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "dart_mappable",
|
||||
"sha256": "47269caf2060533c29b823ff7fa9706502355ffcb61e7f2a374e3a0fb2f2c3f0",
|
||||
"sha256": "f69a961ae8589724ebb542e588f228ae844c5f78028899cbe2cc718977c1b382",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "4.2.2"
|
||||
"version": "4.3.0"
|
||||
},
|
||||
"dart_style": {
|
||||
"dependency": "transitive",
|
||||
@ -430,11 +430,11 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "device_info_plus",
|
||||
"sha256": "a7fd703482b391a87d60b6061d04dfdeab07826b96f9abd8f5ed98068acc0074",
|
||||
"sha256": "f545ffbadee826f26f2e1a0f0cbd667ae9a6011cc0f77c0f8f00a969655e6e95",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "10.1.2"
|
||||
"version": "11.1.1"
|
||||
},
|
||||
"device_info_plus_platform_interface": {
|
||||
"dependency": "transitive",
|
||||
@ -520,11 +520,11 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "file_selector_android",
|
||||
"sha256": "00aafa9ae05a8663d0b4f17abd2a02316911ca0f46f9b9dacb9578b324d99590",
|
||||
"sha256": "ec439df07c4999faad319ce8ad9e971795c2f1d7132ad5a793b9370a863c6128",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "0.5.1+9"
|
||||
"version": "0.5.1+10"
|
||||
},
|
||||
"file_selector_ios": {
|
||||
"dependency": "transitive",
|
||||
@ -600,11 +600,11 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "flex_color_scheme",
|
||||
"sha256": "12f3023b5302181b7adff092bc97c7f18674d3f32d757544e00f35fb35a3f295",
|
||||
"sha256": "03fd5e68eff346a042026577f54be0cd4507e565cd86390b12c0aca1c5d6cb0b",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "8.0.0-dev.1"
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"flex_seed_scheme": {
|
||||
"dependency": "transitive",
|
||||
@ -668,11 +668,11 @@
|
||||
"dependency": "direct dev",
|
||||
"description": {
|
||||
"name": "flutter_native_splash",
|
||||
"sha256": "aa06fec78de2190f3db4319dd60fdc8d12b2626e93ef9828633928c2dcaea840",
|
||||
"sha256": "ee5c9bd2b74ea8676442fd4ab876b5d41681df49276488854d6c81a5377c0ef1",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "2.4.1"
|
||||
"version": "2.4.2"
|
||||
},
|
||||
"flutter_plugin_android_lifecycle": {
|
||||
"dependency": "transitive",
|
||||
@ -749,11 +749,11 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "flutter_svg",
|
||||
"sha256": "7b4ca6cf3304575fe9c8ec64813c8d02ee41d2afe60bcfe0678bcb5375d596a2",
|
||||
"sha256": "578bd8c508144fdaffd4f77b8ef2d8c523602275cd697cc3db284dbd762ef4ce",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "2.0.10+1"
|
||||
"version": "2.0.14"
|
||||
},
|
||||
"flutter_test": {
|
||||
"dependency": "direct dev",
|
||||
@ -817,11 +817,11 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "go_router",
|
||||
"sha256": "6f1b756f6e863259a99135ff3c95026c3cdca17d10ebef2bba2261a25ddc8bbc",
|
||||
"sha256": "ce89c5a993ca5eea74535f798478502c30a625ecb10a1de4d7fef5cd1bcac2a4",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "14.3.0"
|
||||
"version": "14.4.1"
|
||||
},
|
||||
"graphs": {
|
||||
"dependency": "transitive",
|
||||
@ -837,11 +837,11 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "html",
|
||||
"sha256": "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a",
|
||||
"sha256": "1fc58edeaec4307368c60d59b7e15b9d658b57d7f3125098b6294153c75337ec",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "0.15.4"
|
||||
"version": "0.15.5"
|
||||
},
|
||||
"http": {
|
||||
"dependency": "direct main",
|
||||
@ -1023,9 +1023,9 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"path": "packages/lw_file_system",
|
||||
"ref": "49102e314ceeef0c532213411b5e233fb5732726",
|
||||
"resolved-ref": "49102e314ceeef0c532213411b5e233fb5732726",
|
||||
"url": "https://github.com/LinwoodDev/dart_pkgs.git"
|
||||
"ref": "1173f5e3f737e99fe6f6e13f6a28633fe9e7c6e4",
|
||||
"resolved-ref": "1173f5e3f737e99fe6f6e13f6a28633fe9e7c6e4",
|
||||
"url": "https://github.com/LinwoodDev/dart_pkgs"
|
||||
},
|
||||
"source": "git",
|
||||
"version": "1.0.0"
|
||||
@ -1047,7 +1047,7 @@
|
||||
"path": "packages/lw_sysapi",
|
||||
"ref": "21808e89bb6239f0b39367d0c00b0b14f5273992",
|
||||
"resolved-ref": "21808e89bb6239f0b39367d0c00b0b14f5273992",
|
||||
"url": "https://github.com/LinwoodDev/dart_pkgs.git"
|
||||
"url": "https://github.com/LinwoodDev/dart_pkgs"
|
||||
},
|
||||
"source": "git",
|
||||
"version": "0.0.1"
|
||||
@ -1096,9 +1096,9 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"path": "packages/material_leap",
|
||||
"ref": "1771b732aaad508053729cd2a14e10a4e426e397",
|
||||
"resolved-ref": "1771b732aaad508053729cd2a14e10a4e426e397",
|
||||
"url": "https://github.com/LinwoodDev/dart_pkgs.git"
|
||||
"ref": "b01f6a3bf0e4e72a9c6e312d31bfa2f1d235d899",
|
||||
"resolved-ref": "b01f6a3bf0e4e72a9c6e312d31bfa2f1d235d899",
|
||||
"url": "https://github.com/LinwoodDev/dart_pkgs"
|
||||
},
|
||||
"source": "git",
|
||||
"version": "0.0.1"
|
||||
@ -1137,9 +1137,9 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"path": "packages/networker/networker",
|
||||
"ref": "6617b9bbfb481ef59b1a6921f1676bb90d73ecf9",
|
||||
"resolved-ref": "6617b9bbfb481ef59b1a6921f1676bb90d73ecf9",
|
||||
"url": "https://github.com/LinwoodDev/dart_pkgs.git"
|
||||
"ref": "071e02761bf55a47bcde0cdc2a711b8ff5fbbb18",
|
||||
"resolved-ref": "071e02761bf55a47bcde0cdc2a711b8ff5fbbb18",
|
||||
"url": "https://github.com/LinwoodDev/dart_pkgs"
|
||||
},
|
||||
"source": "git",
|
||||
"version": "1.0.0"
|
||||
@ -1148,9 +1148,9 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"path": "packages/networker/networker_socket",
|
||||
"ref": "fce8dc67ec282861bf629e32c404c52921f54bbd",
|
||||
"resolved-ref": "fce8dc67ec282861bf629e32c404c52921f54bbd",
|
||||
"url": "https://github.com/LinwoodDev/dart_pkgs.git"
|
||||
"ref": "9085d42cf75c3d3edc8edb9ef22697dbbe2bf38c",
|
||||
"resolved-ref": "9085d42cf75c3d3edc8edb9ef22697dbbe2bf38c",
|
||||
"url": "https://github.com/LinwoodDev/dart_pkgs"
|
||||
},
|
||||
"source": "git",
|
||||
"version": "1.0.0"
|
||||
@ -1189,11 +1189,11 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "package_info_plus",
|
||||
"sha256": "894f37107424311bdae3e476552229476777b8752c5a2a2369c0cb9a2d5442ef",
|
||||
"sha256": "da8d9ac8c4b1df253d1a328b7bf01ae77ef132833479ab40763334db13b91cce",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "8.0.3"
|
||||
"version": "8.1.1"
|
||||
},
|
||||
"package_info_plus_platform_interface": {
|
||||
"dependency": "transitive",
|
||||
@ -1219,21 +1219,21 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "path_parsing",
|
||||
"sha256": "e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf",
|
||||
"sha256": "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "1.0.1"
|
||||
"version": "1.1.0"
|
||||
},
|
||||
"path_provider": {
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "path_provider",
|
||||
"sha256": "fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378",
|
||||
"sha256": "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "2.1.4"
|
||||
"version": "2.1.5"
|
||||
},
|
||||
"path_provider_android": {
|
||||
"dependency": "transitive",
|
||||
@ -1390,11 +1390,11 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "printing",
|
||||
"sha256": "b576764370c920b510cedf3eac7dc199d6d4af34336d608e97546392c0113362",
|
||||
"sha256": "b535d177fc6e8f8908e19b0ff5c1d4a87e3c4d0bf675e05aa2562af1b7853906",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "5.13.3"
|
||||
"version": "5.13.4"
|
||||
},
|
||||
"process": {
|
||||
"dependency": "transitive",
|
||||
@ -1480,31 +1480,71 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "screen_retriever",
|
||||
"sha256": "6ee02c8a1158e6dae7ca430da79436e3b1c9563c8cf02f524af997c201ac2b90",
|
||||
"sha256": "570dbc8e4f70bac451e0efc9c9bb19fa2d6799a11e6ef04f946d7886d2e23d0c",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "0.1.9"
|
||||
"version": "0.2.0"
|
||||
},
|
||||
"screen_retriever_linux": {
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "screen_retriever_linux",
|
||||
"sha256": "f7f8120c92ef0784e58491ab664d01efda79a922b025ff286e29aa123ea3dd18",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "0.2.0"
|
||||
},
|
||||
"screen_retriever_macos": {
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "screen_retriever_macos",
|
||||
"sha256": "71f956e65c97315dd661d71f828708bd97b6d358e776f1a30d5aa7d22d78a149",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "0.2.0"
|
||||
},
|
||||
"screen_retriever_platform_interface": {
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "screen_retriever_platform_interface",
|
||||
"sha256": "ee197f4581ff0d5608587819af40490748e1e39e648d7680ecf95c05197240c0",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "0.2.0"
|
||||
},
|
||||
"screen_retriever_windows": {
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "screen_retriever_windows",
|
||||
"sha256": "449ee257f03ca98a57288ee526a301a430a344a161f9202b4fcc38576716fe13",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "0.2.0"
|
||||
},
|
||||
"sembast": {
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "sembast",
|
||||
"sha256": "dc42f8384edc2bc0c11c90856fa62630ad2a75d8a37c786e000517bd8298682d",
|
||||
"sha256": "61f893e50fe2fa7d14529d275d45ac31871d7ad2ae3a745f9aa3afc0b447d75b",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "3.7.5"
|
||||
"version": "3.7.5+2"
|
||||
},
|
||||
"share_plus": {
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "share_plus",
|
||||
"sha256": "fec12c3c39f01e4df1ec6ad92b6e85503c5ca64ffd6e28d18c9ffe53fcc4cb11",
|
||||
"sha256": "9c9bafd4060728d7cdb2464c341743adbd79d327cb067ec7afb64583540b47c8",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "10.0.3"
|
||||
"version": "10.1.2"
|
||||
},
|
||||
"share_plus_platform_interface": {
|
||||
"dependency": "transitive",
|
||||
@ -1520,11 +1560,11 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "shared_preferences",
|
||||
"sha256": "746e5369a43170c25816cc472ee016d3a66bc13fcf430c0bc41ad7b4b2922051",
|
||||
"sha256": "95f9997ca1fb9799d494d0cb2a780fd7be075818d59f00c43832ed112b158a82",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "2.3.2"
|
||||
"version": "2.3.3"
|
||||
},
|
||||
"shared_preferences_android": {
|
||||
"dependency": "transitive",
|
||||
@ -1706,11 +1746,11 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "super_native_extensions",
|
||||
"sha256": "6a7cfb7d212da7023b86fb99c736081e9c2cd982265d15dc5fe6381a32dbc875",
|
||||
"sha256": "a433bba8186cd6b707560c42535bf284804665231c00bca86faf1aa4968b7637",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "0.8.22"
|
||||
"version": "0.8.24"
|
||||
},
|
||||
"sync_http": {
|
||||
"dependency": "transitive",
|
||||
@ -1776,11 +1816,11 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "typed_data",
|
||||
"sha256": "facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c",
|
||||
"sha256": "f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "1.3.2"
|
||||
"version": "1.4.0"
|
||||
},
|
||||
"universal_io": {
|
||||
"dependency": "transitive",
|
||||
@ -1806,11 +1846,11 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "url_launcher_android",
|
||||
"sha256": "8fc3bae0b68c02c47c5c86fa8bfa74471d42687b0eded01b78de87872db745e2",
|
||||
"sha256": "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "6.3.12"
|
||||
"version": "6.3.14"
|
||||
},
|
||||
"url_launcher_ios": {
|
||||
"dependency": "transitive",
|
||||
@ -1866,11 +1906,11 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "url_launcher_windows",
|
||||
"sha256": "49c10f879746271804767cb45551ec5592cdab00ee105c06dddde1a98f73b185",
|
||||
"sha256": "44cf3aabcedde30f2dba119a9dea3b0f2672fbe6fa96e85536251d678216b3c4",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "3.1.2"
|
||||
"version": "3.1.3"
|
||||
},
|
||||
"uuid": {
|
||||
"dependency": "transitive",
|
||||
@ -1886,31 +1926,31 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "vector_graphics",
|
||||
"sha256": "32c3c684e02f9bc0afb0ae0aa653337a2fe022e8ab064bcd7ffda27a74e288e3",
|
||||
"sha256": "773c9522d66d523e1c7b25dfb95cc91c26a1e17b107039cfe147285e92de7878",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "1.1.11+1"
|
||||
"version": "1.1.14"
|
||||
},
|
||||
"vector_graphics_codec": {
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "vector_graphics_codec",
|
||||
"sha256": "c86987475f162fadff579e7320c7ddda04cd2fdeffbe1129227a85d9ac9e03da",
|
||||
"sha256": "2430b973a4ca3c4dbc9999b62b8c719a160100dcbae5c819bae0cacce32c9cdb",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "1.1.11+1"
|
||||
"version": "1.1.12"
|
||||
},
|
||||
"vector_graphics_compiler": {
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "vector_graphics_compiler",
|
||||
"sha256": "12faff3f73b1741a36ca7e31b292ddeb629af819ca9efe9953b70bd63fc8cd81",
|
||||
"sha256": "ab9ff38fc771e9ee1139320adbe3d18a60327370c218c60752068ebee4b49ab1",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "1.1.11+1"
|
||||
"version": "1.1.15"
|
||||
},
|
||||
"vector_math": {
|
||||
"dependency": "transitive",
|
||||
@ -1986,11 +2026,11 @@
|
||||
"dependency": "transitive",
|
||||
"description": {
|
||||
"name": "win32",
|
||||
"sha256": "e5c39a90447e7c81cfec14b041cdbd0d0916bd9ebbc7fe02ab69568be703b9bd",
|
||||
"sha256": "84ba388638ed7a8cb3445a320c8273136ab2631cd5f2c57888335504ddab1bc2",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "5.6.0"
|
||||
"version": "5.8.0"
|
||||
},
|
||||
"win32_registry": {
|
||||
"dependency": "transitive",
|
||||
@ -2006,11 +2046,11 @@
|
||||
"dependency": "direct main",
|
||||
"description": {
|
||||
"name": "window_manager",
|
||||
"sha256": "ab8b2a7f97543d3db2b506c9d875e637149d48ee0c6a5cb5f5fd6e0dac463792",
|
||||
"sha256": "732896e1416297c63c9e3fb95aea72d0355f61390263982a47fd519169dc5059",
|
||||
"url": "https://pub.dev"
|
||||
},
|
||||
"source": "hosted",
|
||||
"version": "0.4.2"
|
||||
"version": "0.4.3"
|
||||
},
|
||||
"xdg_directories": {
|
||||
"dependency": "transitive",
|
||||
@ -2045,6 +2085,6 @@
|
||||
},
|
||||
"sdks": {
|
||||
"dart": ">=3.5.0 <4.0.0",
|
||||
"flutter": ">=3.24.3"
|
||||
"flutter": ">=3.24.4"
|
||||
}
|
||||
}
|
||||
|
59
pkgs/by-name/pd/pdfium-binaries/package.nix
Normal file
59
pkgs/by-name/pd/pdfium-binaries/package.nix
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
lib,
|
||||
fetchzip,
|
||||
stdenv,
|
||||
}:
|
||||
let
|
||||
version = "6721";
|
||||
src =
|
||||
let
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
selectSystem = attrs: attrs.${system};
|
||||
suffix = selectSystem {
|
||||
x86_64-linux = "linux-x64";
|
||||
aarch64-linux = "linux-arm64";
|
||||
x86_64-darwin = "mac-x64";
|
||||
aarch64-darwin = "mac-arm64";
|
||||
};
|
||||
hash = selectSystem {
|
||||
x86_64-linux = "sha256-SHCYdw3X8Uy9CgT8SN90FKdPKIk6VZFjIb6NYfOgoCo=";
|
||||
aarch64-linux = "sha256-RqyzxQ2RnBuoFBAxJVC8x/XDpJJWdJ45dJXV/Yzh7pM=";
|
||||
x86_64-darwin = "sha256-7XuBlG2pUtSN5kdcTTLbijEHHX5IU5kTj1aW8ZHHS2M=";
|
||||
aarch64-darwin = "sha256-ZNsQkay8ZF2RQ6dKJ24GawIthjFgB5TUa08LNKpZv1A=";
|
||||
};
|
||||
in
|
||||
fetchzip {
|
||||
url = "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F${version}/pdfium-${suffix}.tgz";
|
||||
inherit hash;
|
||||
stripRoot = false;
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "pdfium-binaries";
|
||||
inherit version src;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
cp -r ./ $out/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = {
|
||||
description = "Binary distribution of PDFium";
|
||||
homepage = "https://github.com/bblanchon/pdfium-binaries";
|
||||
license = with lib.licenses; [ asl20 ];
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
||||
maintainers = with lib.maintainers; [ aucub ];
|
||||
platforms = [
|
||||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
"x86_64-linux"
|
||||
"x86_64-darwin"
|
||||
];
|
||||
};
|
||||
}
|
23
pkgs/by-name/pd/pdfium-binaries/update.sh
Executable file
23
pkgs/by-name/pd/pdfium-binaries/update.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p bash nixVersions.latest curl coreutils jq common-updater-scripts
|
||||
|
||||
latestVersion=$(curl -s ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} https://api.github.com/repos/bblanchon/pdfium-binaries/releases/latest | jq -r '.tag_name | ltrimstr("chromium/")')
|
||||
currentVersion=$(nix-instantiate --eval -E "with import ./. {}; pdfium-binaries.version" | tr -d '"')
|
||||
|
||||
echo "latest version: $latestVersion"
|
||||
echo "current version: $currentVersion"
|
||||
|
||||
if [[ "$latestVersion" == "$currentVersion" ]]; then
|
||||
echo "package is up-to-date"
|
||||
exit 0
|
||||
fi
|
||||
for i in \
|
||||
"x86_64-linux linux-x64" \
|
||||
"aarch64-linux linux-arm64" \
|
||||
"x86_64-darwin mac-x64" \
|
||||
"aarch64-darwin mac-arm64"; do
|
||||
set -- $i
|
||||
prefetch=$(nix-prefetch-url --unpack "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F$latestVersion/pdfium-$2.tgz")
|
||||
hash=$(nix hash convert --hash-algo sha256 --to sri $prefetch)
|
||||
update-source-version pdfium-binaries $latestVersion $hash --system=$1 --ignore-same-version
|
||||
done
|
64
pkgs/by-name/sa/saber/package.nix
Normal file
64
pkgs/by-name/sa/saber/package.nix
Normal file
@ -0,0 +1,64 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
flutter,
|
||||
gst_all_1,
|
||||
libunwind,
|
||||
orc,
|
||||
webkitgtk_4_1,
|
||||
autoPatchelfHook,
|
||||
xorg,
|
||||
}:
|
||||
flutter.buildFlutterApplication rec {
|
||||
pname = "saber";
|
||||
version = "0.25.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "saber-notes";
|
||||
repo = "saber";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-ExnqXpaGDlnuhBUTUjVpc5gEto2Uaqdq9P/AnVDuIBw=";
|
||||
};
|
||||
|
||||
gitHashes = {
|
||||
receive_sharing_intent = "sha256-ppKPBL2ZOx2MeuLY6Q8aiVGsektK+Mqtwyxps0aNtwk=";
|
||||
json2yaml = "sha256-Vb0Bt11OHGX5+lDf8KqYZEGoXleGi5iHXVS2k7CEmDw=";
|
||||
};
|
||||
|
||||
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
libunwind
|
||||
orc
|
||||
webkitgtk_4_1
|
||||
xorg.libXmu
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm0644 ./flatpak/com.adilhanney.saber.desktop $out/share/applications/com.adilhanney.saber.desktop
|
||||
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 = [
|
||||
"aarch64-linux"
|
||||
"x86_64-linux"
|
||||
];
|
||||
};
|
||||
}
|
2317
pkgs/by-name/sa/saber/pubspec.lock.json
Normal file
2317
pkgs/by-name/sa/saber/pubspec.lock.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -8,6 +8,8 @@
|
||||
matrix = callPackage ./matrix { };
|
||||
media_kit_libs_linux = callPackage ./media_kit_libs_linux { };
|
||||
olm = callPackage ./olm { };
|
||||
pdfrx = callPackage ./pdfrx { };
|
||||
printing = callPackage ./printing { };
|
||||
rhttp = callPackage ./rhttp { };
|
||||
sqlcipher_flutter_libs = callPackage ./sqlcipher_flutter_libs { };
|
||||
sqlite3 = callPackage ./sqlite3 { };
|
||||
|
@ -0,0 +1,26 @@
|
||||
{
|
||||
stdenv,
|
||||
pdfium-binaries,
|
||||
}:
|
||||
|
||||
{ version, src, ... }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pdfrx";
|
||||
inherit version src;
|
||||
inherit (src) passthru;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace linux/CMakeLists.txt \
|
||||
--replace-fail "\''${PDFIUM_DIR}/\''${PDFIUM_RELEASE}" "${pdfium-binaries}"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
cp -a ./* $out/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
{
|
||||
stdenv,
|
||||
pdfium-binaries,
|
||||
replaceVars,
|
||||
}:
|
||||
|
||||
{ version, src, ... }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "printing";
|
||||
inherit version src;
|
||||
inherit (src) passthru;
|
||||
|
||||
patches = [
|
||||
(replaceVars ./printing.patch {
|
||||
inherit pdfium-binaries;
|
||||
})
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
cp -a ./* $out/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
@ -3,15 +3,15 @@
|
||||
@@ -16,6 +16,7 @@
|
||||
set(PROJECT_NAME "printing")
|
||||
project(${PROJECT_NAME} LANGUAGES CXX)
|
||||
|
||||
+set(PDFIUM_DIR $ENV{PDFIUM_DIR})
|
||||
|
||||
+set(PDFIUM_DIR @pdfium-binaries@)
|
||||
set(PDFIUM_VERSION "5200" CACHE STRING "Version of pdfium used")
|
||||
string(REPLACE "linux-" "" TARGET_ARCH ${FLUTTER_TARGET_PLATFORM})
|
||||
set(PDFIUM_ARCH ${TARGET_ARCH} CACHE STRING "Architecture of pdfium used")
|
||||
@@ -32,18 +33,11 @@
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
-# Download pdfium
|
||||
-include(../windows/DownloadProject.cmake)
|
||||
-download_project(PROJ
|
||||
@ -22,10 +22,10 @@
|
||||
# This value is used when generating builds using this plugin, so it must not be
|
||||
# changed
|
||||
set(PLUGIN_NAME "printing_plugin")
|
||||
|
||||
|
||||
-include(${pdfium_SOURCE_DIR}/PDFiumConfig.cmake)
|
||||
+include(${PDFIUM_DIR}/PDFiumConfig.cmake)
|
||||
|
||||
|
||||
# System-level dependencies.
|
||||
find_package(PkgConfig REQUIRED)
|
||||
@@ -67,7 +61,7 @@
|
||||
@ -39,7 +39,7 @@
|
||||
FALSE
|
||||
@@ -77,4 +71,4 @@
|
||||
"$ORIGIN:${PDFium_lib_path}")
|
||||
|
||||
|
||||
# List of absolute paths to libraries that should be bundled with the plugin
|
||||
-set(printing_bundled_libraries "${PDFium_LIBRARY}" PARENT_SCOPE)
|
||||
+set(printing_bundled_libraries "${PDFIUM_DIR}/lib/libpdfium.so" PARENT_SCOPE)
|
@ -27,6 +27,8 @@ 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;
|
||||
_0_8_19 = _0_8_22;
|
||||
|
Loading…
Reference in New Issue
Block a user