Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.4 KiB
Nix

{
lib,
flutter332,
fetchFromGitHub,
autoPatchelfHook,
mpv,
makeDesktopItem,
copyDesktopItems,
}:
flutter332.buildFlutterApplication rec {
pname = "simple-live-app";
version = "1.8.6";
src = fetchFromGitHub {
owner = "xiaoyaocz";
repo = "dart_simple_live";
tag = "v${version}";
hash = "sha256-6kEty4QZZQW3Xzz4213ThC4FF+quMNE4oAuZ1limxFg=";
};
sourceRoot = "${src.name}/simple_live_app";
pubspecLock = lib.importJSON ./pubspec.lock.json;
gitHashes.ns_danmaku = "sha256-Hzp5QsdgBStaPVSHdHul7ZqOhZHQS9dbO+RpC4wMYqo=";
nativeBuildInputs = [
autoPatchelfHook
copyDesktopItems
];
buildInputs = [ mpv ];
desktopItems = [
(makeDesktopItem {
name = "simple-live-app";
exec = "simple_live_app";
icon = "simple-live-app";
genericName = "Simple-Live";
desktopName = "Simple-Live";
keywords = [ "Simple Live" ];
})
];
postInstall = ''
install -Dm644 assets/logo.png $out/share/pixmaps/simple-live-app.png
'';
extraWrapProgramArgs = ''
--prefix LD_LIBRARY_PATH : $out/app/simple-live-app/lib
'';
passthru.updateScript = ./update.sh;
meta = {
description = "Simply Watch Live";
homepage = "https://github.com/xiaoyaocz/dart_simple_live";
mainProgram = "simple_live_app";
license = with lib.licenses; [ gpl3Plus ];
maintainers = [ ];
platforms = lib.platforms.linux;
};
}