22 lib ,
33 fetchFromGitHub ,
44 flutter ,
5- stdenv ,
6- fetchzip ,
75} :
86let
9- pname = "butterfly" ;
10- version = "2.2.1" ;
7+ version = "2.2.2" ;
118 src = fetchFromGitHub {
129 owner = "LinwoodDev" ;
1310 repo = "Butterfly" ;
14- rev = "v${ version } " ;
15- hash = "sha256-TV7C0v3y9G44Df/x1ST8D0c0QqNBuuhzPBMKUyf/iwo=" ;
16- } ;
17- pdfium-binaries = fetchzip {
18- url = "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/5200/pdfium-linux-x64.tgz" ;
19- hash = "sha256-AJop6gKjF/DPgItuPQsWpgngxiqVNeqBbhHZz3aQ1n0=" ;
20- stripRoot = false ;
11+ rev = "refs/tags/v${ version } " ;
12+ hash = "sha256-tq2pBvGHDdZoi2EMgBIgNgsg3Ovh2PLCvET98oB+7Sw=" ;
2113 } ;
2214in
2315flutter . buildFlutterApplication {
24- inherit pname version src ;
16+ pname = "butterfly" ;
17+ inherit version src ;
2518
2619 pubspecLock = lib . importJSON ./pubspec.lock.json ;
2720
2821 sourceRoot = "${ src . name } /app" ;
2922
30- customSourceBuilders = {
31- printing =
32- { version , src , ... } :
33- stdenv . mkDerivation rec {
34- pname = "printing" ;
35- inherit version src ;
36- inherit ( src ) passthru ;
37- patches = [ ./printing.patch ] ;
38- installPhase = ''
39- runHook preInstall
40- mkdir $out
41- cp -a ./* $out/
42- runHook postInstall
43- '' ;
44- } ;
45- } ;
46-
47- env . PDFIUM_DIR = "${ pdfium-binaries } " ;
48-
4923 gitHashes = {
5024 dart_leap = "sha256-eEyUqdVToybQoDwdmz47H0f3/5zRdJzmPv1d/5mTOgA=" ;
51- lw_file_system = "sha256-CPBwaDTK57SKcaD4IzjIL4cWixEDK9sv3zCDeNfFpw0 =" ;
25+ lw_file_system = "sha256-qglyQu/Qu4F0z//hhVmCMHKuh9GclBKLC8G+qKFhd24 =" ;
5226 flutter_secure_storage_web = "sha256-ULYXcFjz9gKMjw1Q1KAmX2J7EcE8CbW0MN/EnwmaoQY=" ;
53- networker = "sha256-8ol5YRim4dLpgR30DXbgHzq+VDk1sPLIi+AxUtwOls8 =" ;
27+ networker = "sha256-1b8soPRbHOGAb2wpsfw/uETnAlaCJZyLmynVRDX9Y8s =" ;
5428 lw_file_system_api = "sha256-OOLbqKLvgHUJf3LiiQoHJS6kngnWtHPhswM69sX5fwE=" ;
5529 lw_sysapi = "sha256-9hCAYB5tqYKQPHGa7+Zma6fE8Ei08RvyL9d65FMuI+I=" ;
5630 flex_color_scheme = "sha256-MYEiiltevfz0gDag3yS/ZjeVaJyl1JMS8zvgI0k4Y0k=" ;
57- material_leap = "sha256-pQ+OvecHaav5QI+Hf7+DDcXYM3JMwogseMzce1ULveY =" ;
58- networker_socket = "sha256-+h5FXqPhB6VJ269WPoqKk+/1cE+p7UbLvDwnXrJh+CE =" ;
31+ material_leap = "sha256-eEwyu7qn3oMQl5q7Mbunxwwhnk5EuM3mNqnZUcZIpFw =" ;
32+ networker_socket = "sha256-8LRyo5HzreUMGh5j39vL+Gqzxp4MN/jhHYpDxbFV0Ao =" ;
5933 perfect_freehand = "sha256-dMJ8CyhoQWbBRvUQyzPc7vdAhCzcAl1X7CcaT3u6dWo=" ;
6034 } ;
6135
@@ -70,13 +44,11 @@ flutter.buildFlutterApplication {
7044 license = with lib . licenses ; [
7145 agpl3Plus
7246 cc-by-sa-40
73- asl20 # pdfium-binaries
7447 ] ;
7548 maintainers = with lib . maintainers ; [ aucub ] ;
76- platforms = [ "x86_64-linux" ] ;
77- sourceProvenance = with lib . sourceTypes ; [
78- fromSource
79- binaryNativeCode # pdfium-binaries
49+ platforms = [
50+ "aarch64-linux"
51+ "x86_64-linux"
8052 ] ;
8153 } ;
8254}
0 commit comments