mangayomi: 0.5.2 -> 0.6.0 (#396073)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
flutter327,
|
||||
flutter329,
|
||||
webkitgtk_4_1,
|
||||
mpv,
|
||||
rustPlatform,
|
||||
@@ -13,13 +13,13 @@
|
||||
|
||||
let
|
||||
pname = "mangayomi";
|
||||
version = "0.5.2";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kodjodevf";
|
||||
repo = "mangayomi";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-xF3qvmEGctYXE7HWka89G4W6ytMTVGw75o26h/Ql0Aw=";
|
||||
hash = "sha256-kvwssyVjce9VipANRED5k3a2pdJRAhio6GtM7+5nd38=";
|
||||
};
|
||||
|
||||
metaCommon = {
|
||||
@@ -38,14 +38,14 @@ let
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
|
||||
cargoHash = "sha256-WkWNgjTA50cOztuF9ZN6v8l38kldarqUOMXNFJDI0Ds=";
|
||||
cargoHash = "sha256-vGu5e5M6CFpaLodEpt8v8DGhu2S5h/E4vvqSNOKkWns=";
|
||||
|
||||
passthru.libraryPath = "lib/librust_lib_mangayomi.so";
|
||||
|
||||
meta = metaCommon;
|
||||
};
|
||||
in
|
||||
flutter327.buildFlutterApplication {
|
||||
flutter329.buildFlutterApplication {
|
||||
inherit pname version src;
|
||||
|
||||
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
||||
@@ -74,18 +74,11 @@ flutter327.buildFlutterApplication {
|
||||
};
|
||||
};
|
||||
|
||||
gitHashes =
|
||||
let
|
||||
media_kit-hash = "sha256-bRwDrK6YdQGuXnxyIaNtvRoubl3i42ksaDsggAwgB80=";
|
||||
in
|
||||
{
|
||||
desktop_webview_window = "sha256-wRxQPlJZZe4t2C6+G5dMx3+w8scxWENLwII08dlZ4IA=";
|
||||
flutter_qjs = "sha256-m+Z0bCswylfd1E2Y6X6bdPivkSlXUxO4J0Icbco+/0A=";
|
||||
media_kit_libs_windows_video = media_kit-hash;
|
||||
media_kit_video = media_kit-hash;
|
||||
media_kit = media_kit-hash;
|
||||
flutter_web_auth_2 = "sha256-3aci73SP8eXg6++IQTQoyS+erUUuSiuXymvR32sxHFw=";
|
||||
};
|
||||
gitHashes = {
|
||||
desktop_webview_window = "sha256-wRxQPlJZZe4t2C6+G5dMx3+w8scxWENLwII08dlZ4IA=";
|
||||
flutter_qjs = "sha256-m+Z0bCswylfd1E2Y6X6bdPivkSlXUxO4J0Icbco+/0A=";
|
||||
flutter_web_auth_2 = "sha256-3aci73SP8eXg6++IQTQoyS+erUUuSiuXymvR32sxHFw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ copyDesktopItems ];
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+10
-6
@@ -1,4 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
@@ -17,17 +18,20 @@ stdenv.mkDerivation {
|
||||
inherit version src;
|
||||
inherit (src) passthru;
|
||||
|
||||
doBuild = false;
|
||||
dontBuild = true;
|
||||
|
||||
postPatch = ''
|
||||
awk -i inplace 'BEGIN {opened = 0}; /# --*[^$]*/ { print (opened ? "]===]" : "#[===["); opened = !opened }; {print $0}' linux/CMakeLists.txt
|
||||
'';
|
||||
postPatch =
|
||||
lib.optionalString (lib.versionAtLeast version "1.2.1") ''
|
||||
sed -i '/if(MIMALLOC_USE_STATIC_LIBS)/,/unset(MIMALLOC_USE_STATIC_LIBS CACHE)/d' linux/CMakeLists.txt
|
||||
''
|
||||
+ lib.optionalString (lib.versionOlder version "1.2.1") ''
|
||||
awk -i inplace 'BEGIN {opened = 0}; /# --*[^$]*/ { print (opened ? "]===]" : "#[===["); opened = !opened }; {print $0}' linux/CMakeLists.txt
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out"
|
||||
cp -r ./* "$out"
|
||||
cp -r . $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user