Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
78 lines
1.7 KiB
Nix
78 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
flutter327,
|
|
libayatana-appindicator,
|
|
copyDesktopItems,
|
|
makeDesktopItem,
|
|
runCommand,
|
|
yq,
|
|
alisthelper,
|
|
_experimental-update-script-combinators,
|
|
gitUpdater,
|
|
}:
|
|
|
|
flutter327.buildFlutterApplication {
|
|
pname = "alisthelper";
|
|
version = "0.2.0-unstable-2025-01-04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Xmarmalade";
|
|
repo = "alisthelper";
|
|
rev = "181a1207df0c9eb8336097b9a9249342dd9df097";
|
|
hash = "sha256-6FJd+8eJoRK3cEdkLCgr7q4L6kEeSsMMkiVRx6Pa5jk=";
|
|
};
|
|
|
|
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
|
|
|
nativeBuildInputs = [
|
|
copyDesktopItems
|
|
];
|
|
|
|
buildInputs = [
|
|
libayatana-appindicator
|
|
];
|
|
|
|
preBuild = ''
|
|
packageRun build_runner build
|
|
'';
|
|
|
|
desktopItems = [
|
|
(makeDesktopItem {
|
|
name = "alisthelper";
|
|
exec = "alisthelper";
|
|
icon = "alisthelper";
|
|
desktopName = "Alist Helper";
|
|
})
|
|
];
|
|
|
|
postInstall = ''
|
|
install -Dm644 assets/alisthelper.png -t $out/share/pixmaps
|
|
'';
|
|
|
|
passthru = {
|
|
pubspecSource =
|
|
runCommand "pubspec.lock.json"
|
|
{
|
|
buildInputs = [ yq ];
|
|
inherit (alisthelper) src;
|
|
}
|
|
''
|
|
cat $src/pubspec.lock | yq > $out
|
|
'';
|
|
updateScript = _experimental-update-script-combinators.sequence [
|
|
(gitUpdater { rev-prefix = "v"; })
|
|
(_experimental-update-script-combinators.copyAttrOutputToFile "alisthelper.pubspecSource" ./pubspec.lock.json)
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
description = "Designed to simplify the use of the desktop version of alist";
|
|
homepage = "https://github.com/Xmarmalade/alisthelper";
|
|
mainProgram = "alisthelper";
|
|
license = with lib.licenses; [ gpl3Plus ];
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|