listen1: init at 2.31.0
This commit is contained in:
parent
f9074e626c
commit
1da7b4223d
33
pkgs/by-name/li/listen1/package.nix
Normal file
33
pkgs/by-name/li/listen1/package.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib, fetchurl, appimageTools, makeWrapper }:
|
||||
|
||||
let
|
||||
pname = "listen1";
|
||||
version = "2.31.0";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/listen1/listen1_desktop/releases/download/v${version}/listen1_${version}_linux_x86_64.AppImage";
|
||||
hash = "sha256-nYDKexVzVuwPmv/eK9cB0oASgXEZbrPrzqPu5OHk6NQ=";
|
||||
};
|
||||
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
extraInstallCommands = ''
|
||||
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
||||
install -m 444 -D ${appimageContents}/listen1.desktop -t $out/share/applications
|
||||
substituteInPlace $out/share/applications/listen1.desktop \
|
||||
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/listen1.png \
|
||||
$out/share/icons/hicolor/512x512/apps/listen1.png
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "One for all free music in China";
|
||||
homepage = "http://listen1.github.io/listen1/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ running-grass ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
mainProgram = "Listen1";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user