Merge pull request #315139 from DSeeLP/finamp

finamp: init at 0.9.8-beta
This commit is contained in:
Aleksana 2024-07-03 14:11:12 +08:00 committed by GitHub
commit dbb0ec2270
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2169 additions and 0 deletions

View File

@ -5395,6 +5395,11 @@
githubId = 5596239;
keys = [ { fingerprint = "62BC E2BD 49DF ECC7 35C7 E153 875F 2BCF 163F 1B29"; } ];
};
dseelp = {
name = "dsee";
github = "DSeeLP";
githubId = 46624152;
};
dsferruzza = {
email = "david.sferruzza@gmail.com";
github = "dsferruzza";

View File

@ -0,0 +1,71 @@
{ lib
, flutter322
, mpv-unwrapped
, xdg-user-dirs
, patchelf
, fetchFromGitHub
, copyDesktopItems
, makeDesktopItem
}:
let
version = "0.9.8-beta";
in
flutter322.buildFlutterApplication {
inherit version;
pname = "finamp";
src = fetchFromGitHub {
owner = "jmshrv";
repo = "finamp";
rev = version;
hash = "sha256-lvjhA+hdCXgDsrNhNw4Tiq6ZgkYlPuMeHha8OJNF1TI=";
};
pubspecLock = lib.importJSON ./pubspec.lock.json;
nativeBuildInputs = [ patchelf copyDesktopItems ];
buildInputs = [ mpv-unwrapped ];
gitHashes = {
balanced_text = "sha256-lSDR5dDjZ4garRbBPI+wSxC5iScg8wVSD5kymmLbYbk=";
isar_generator = "sha256-lWnHmZmYx7qDG6mzyDqYt+Xude2xVOH1VW+BoDCas60=";
media_kit_libs_windows_audio = "sha256-p3hRq79whLFJLNUgL9atXyTGvOIqCbTRKVk1ie0Euqs=";
palette_generator = "sha256-mnRJf3asu1mm9HYU8U0di+qRk3SpNFwN3S5QxChpIA0=";
split_view = "sha256-unTJQDXUUPVDudlk0ReOPNYrsyEpbd/UMg1tHZsmg+k=";
};
postFixup = ''
patchelf $out/app/finamp --add-needed libisar.so --add-needed libmpv.so --add-rpath ${lib.makeLibraryPath [ mpv-unwrapped ]}
'';
postInstall = ''
install -Dm644 $src/assets/icon/icon_foreground.svg $out/share/icons/hicolor/scalable/apps/finamp.svg
'';
extraWrapProgramArgs = ''
--prefix PATH : ${lib.makeBinPath [ xdg-user-dirs ]}
'';
desktopItems = [(makeDesktopItem {
name = "Finamp";
desktopName = "Finamp";
genericName = "Music Player";
exec = "finamp";
icon = "finamp";
startupWMClass = "finamp";
comment = "An open source Jellyfin music player";
categories = [
"AudioVideo"
"Audio"
"Player"
"Music"
];
})];
meta = {
description = "Open source Jellyfin music player";
homepage = "https://github.com/jmshrv/finamp";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ dseelp ];
mainProgram = "finamp";
platforms = lib.platforms.linux;
};
}

File diff suppressed because it is too large Load Diff