chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / mu / musicpod / package.nix
blobd8d1b59746a1f53312717edde813c8af25f1b86f
2   lib,
3   flutter324,
4   fetchFromGitHub,
5   mpv-unwrapped,
6   libass,
7   pulseaudio,
8 }:
10 flutter324.buildFlutterApplication rec {
11   pname = "musicpod";
12   version = "1.12.0";
14   src = fetchFromGitHub {
15     owner = "ubuntu-flutter-community";
16     repo = "musicpod";
17     rev = "refs/tags/v${version}";
18     hash = "sha256-gsreA8ZTLcSvIAtODZ2gopZ78iyoN18gsSi9/IoY5/0=";
19   };
21   postPatch = ''
22     substituteInPlace snap/gui/musicpod.desktop \
23       --replace-fail 'Icon=''${SNAP}/meta/gui/musicpod.png' 'Icon=musicpod'
24   '';
26   pubspecLock = lib.importJSON ./pubspec.lock.json;
28   gitHashes = {
29     audio_service_mpris = "sha256-QRZ4a3w4MZP8/A4yXzP4P9FPwEVNXlntmBwE8I+s2Kk=";
30     media_kit_native_event_loop = "sha256-JBtFTYlztDQvN/qQcDxkK27mka2fSG+iiIIxk2mqEpY=";
31     media_kit_video = "sha256-JBtFTYlztDQvN/qQcDxkK27mka2fSG+iiIIxk2mqEpY=";
32     phoenix_theme = "sha256-5kgPAnK61vFi/sJ1jr3c5D2UZbxItW8YOk/IJEtHkZo=";
33   };
35   buildInputs = [
36     mpv-unwrapped
37     libass
38   ];
40   runtimeDependencies = [ pulseaudio ];
42   postInstall = ''
43     install -Dm644 snap/gui/musicpod.desktop -t $out/share/applications
44     install -Dm644 snap/gui/musicpod.png -t $out/share/pixmaps
45   '';
47   meta = {
48     description = "Music, radio, television and podcast player";
49     homepage = "https://github.com/ubuntu-flutter-community/musicpod";
50     license = lib.licenses.gpl3Only;
51     mainProgram = "musicpod";
52     maintainers = with lib.maintainers; [ aleksana ];
53     platforms = lib.platforms.linux;
54   };