mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 05:37:27 +03:00
muffon: init at 2.0.3
This commit is contained in:
parent
efc32e7a1c
commit
ae94be2720
41
pkgs/by-name/mu/muffon/package.nix
Normal file
41
pkgs/by-name/mu/muffon/package.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
lib,
|
||||
fetchurl,
|
||||
appimageTools,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "muffon";
|
||||
version = "2.0.3";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/staniel359/muffon/releases/download/v${version}/muffon-${version}-linux-x86_64.AppImage";
|
||||
hash = "sha256-2eLe/xvdWcOcUSE0D+pMOcOYCfFVEyKO13LiaJiZgX0=";
|
||||
};
|
||||
appimageContents = appimageTools.extractType2 { inherit pname src version; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname src version;
|
||||
|
||||
extraInstallCommands = ''
|
||||
source "${makeWrapper}/nix-support/setup-hook"
|
||||
wrapProgram $out/bin/muffon \
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
||||
install -m 444 -D ${appimageContents}/muffon.desktop -t $out/share/applications
|
||||
substituteInPlace $out/share/applications/muffon.desktop \
|
||||
--replace-fail 'Exec=AppRun' 'Exec=muffon'
|
||||
install -m 444 -D ${appimageContents}/muffon.png \
|
||||
$out/share/icons/hicolor/512x512/apps/muffon.png
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Advanced multi-source music streaming client";
|
||||
homepage = "https://muffon.netlify.app/";
|
||||
changelog = "https://github.com/staniel359/muffon/releases/tag/v${version}";
|
||||
license = lib.licenses.agpl3Only;
|
||||
maintainers = with lib.maintainers; [ octodi ];
|
||||
mainProgram = "muffon";
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user