7 appimageTools.wrapType2 rec {
9 version = "3.0.0-preview.34";
12 url = "https://github.com/digimezzo/dopamine/releases/download/v${version}/Dopamine-${version}.AppImage";
13 hash = "sha256-K4dDYYzo2oMAZvlb25cQuh1G187efSyJfAA6jdCKaT0=";
16 extraInstallCommands =
18 contents = appimageTools.extract { inherit pname version src; };
21 install -Dm644 ${contents}/dopamine.desktop $out/share/applications/dopamine.desktop
22 substituteInPlace $out/share/applications/dopamine.desktop \
23 --replace-fail 'Exec=AppRun' 'Exec=dopamine'
24 cp -r ${contents}/usr/share/icons $out/share
27 passthru.updateScript = nix-update-script { extraArgs = [ "--version=unstable" ]; };
30 changelog = "https://github.com/digimezzo/dopamine/blob/${version}/CHANGELOG.md";
31 description = "Audio player that keeps it simple";
32 homepage = "https://github.com/digimezzo/dopamine";
33 license = lib.licenses.gpl3Only;
34 mainProgram = "dopamine";
35 maintainers = with lib.maintainers; [ Guanran928 ];
36 platforms = [ "x86_64-linux" ];
37 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];