Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 1.3 kB view raw
1{ 2 appimageTools, 3 lib, 4 fetchurl, 5 makeWrapper, 6}: 7 8appimageTools.wrapType2 rec { 9 pname = "cider"; 10 version = "1.6.3"; 11 12 src = fetchurl { 13 url = "https://github.com/ciderapp/Cider/releases/download/v${version}/Cider-${version}.AppImage"; 14 sha256 = "sha256-NwoV1eeAN0u9VXWpu5mANXhmgqe8u3h7BlsREP1f/pI="; 15 }; 16 17 nativeBuildInputs = [ makeWrapper ]; 18 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}}" 26 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 ''; 32 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 }; 41}