mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
a4449ccc38
Changed version, URL and hash. The previous repository has been archived and moved to a new repository within the same organization.
31 lines
1012 B
Nix
31 lines
1012 B
Nix
{ appimageTools, lib, fetchurl }:
|
|
|
|
appimageTools.wrapType2 rec {
|
|
pname = "cider";
|
|
version = "1.6.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ciderapp/Cider/releases/download/v${version}/Cider-${version}.AppImage";
|
|
sha256 = "sha256-t3kslhb6STPemdBN6fXc8jcPgNrlnGzcAUQ3HAUB7Yw=";
|
|
};
|
|
|
|
extraInstallCommands =
|
|
let contents = appimageTools.extract { inherit pname version src; };
|
|
in ''
|
|
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
|
|
|
install -m 444 -D ${contents}/${pname}.desktop -t $out/share/applications
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
cp -r ${contents}/usr/share/icons $out/share
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A new look into listening and enjoying Apple Music in style and performance.";
|
|
homepage = "https://github.com/ciderapp/Cider";
|
|
license = licenses.agpl3;
|
|
maintainers = [ maintainers.cigrainger ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|