Skip to content

Commit

Permalink
jhentai: add update script
Browse files Browse the repository at this point in the history
  • Loading branch information
aucub committed Jan 12, 2025
1 parent 74da258 commit ad7d3ba
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pkgs/by-name/jh/jhentai/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
fetchFromGitHub,
flutter324,
webkitgtk_4_1,
runCommand,
yq,
jhentai,
_experimental-update-script-combinators,
gitUpdater,
}:

flutter324.buildFlutterApplication rec {
Expand Down Expand Up @@ -61,6 +66,22 @@ flutter324.buildFlutterApplication rec {
--prefix LD_LIBRARY_PATH : $out/app/jhentai/lib
'';

passthru = {
pubspecSource =
runCommand "pubspec.lock.json"
{
buildInputs = [ yq ];
inherit (jhentai) src;
}
''
cat $src/pubspec.lock | yq > $out
'';
updateScript = _experimental-update-script-combinators.sequence [
(gitUpdater { rev-prefix = "v"; })
(_experimental-update-script-combinators.copyAttrOutputToFile "jhentai.pubspecSource" ./pubspec.lock.json)
];
};

meta = {
description = "Cross-platform manga app made for e-hentai & exhentai by Flutter";
homepage = "https://github.com/jiangtian616/JHenTai";
Expand Down

0 comments on commit ad7d3ba

Please sign in to comment.