nagiosPlugins.check_ssl_cert: 2.85.1 -> 2.86.0 (#379244)
[NixPkgs.git] / pkgs / by-name / ci / cider / package.nix
blobc4754a06da6bde1154c7ae70ea8b2879a12e6d2f
2   appimageTools,
3   lib,
4   fetchurl,
5   makeWrapper,
6 }:
8 appimageTools.wrapType2 rec {
9   pname = "cider";
10   version = "1.6.3";
12   src = fetchurl {
13     url = "https://github.com/ciderapp/Cider/releases/download/v${version}/Cider-${version}.AppImage";
14     sha256 = "sha256-NwoV1eeAN0u9VXWpu5mANXhmgqe8u3h7BlsREP1f/pI=";
15   };
17   nativeBuildInputs = [ makeWrapper ];
19   extraInstallCommands =
20     let
21       contents = appimageTools.extract { inherit pname version src; };
22     in
23     ''
24       wrapProgram $out/bin/${pname} \
25         --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"
27       install -m 444 -D ${contents}/${pname}.desktop -t $out/share/applications
28       substituteInPlace $out/share/applications/${pname}.desktop \
29         --replace-warn 'Exec=AppRun' 'Exec=${pname}'
30       cp -r ${contents}/usr/share/icons $out/share
31     '';
33   meta = with lib; {
34     description = "New look into listening and enjoying Apple Music in style and performance";
35     homepage = "https://github.com/ciderapp/Cider";
36     license = licenses.agpl3Only;
37     mainProgram = "cider";
38     maintainers = [ maintainers.cigrainger ];
39     platforms = [ "x86_64-linux" ];
40   };