From 557c643ee63acd281a3f5ebea527cf9f3c4c8556 Mon Sep 17 00:00:00 2001 From: Christopher Grainger Date: Mon, 14 Mar 2022 14:38:02 +1100 Subject: [PATCH] cider: init at 1.3.1308 remove unnecessary newlines Co-authored-by: Sandro add version information to bin Co-authored-by: Sandro remove name --- pkgs/applications/audio/cider/default.nix | 30 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/applications/audio/cider/default.nix diff --git a/pkgs/applications/audio/cider/default.nix b/pkgs/applications/audio/cider/default.nix new file mode 100644 index 000000000000..edab6d109ef5 --- /dev/null +++ b/pkgs/applications/audio/cider/default.nix @@ -0,0 +1,30 @@ +{ appimageTools, lib, fetchurl }: + +appimageTools.wrapType2 rec { + pname = "cider"; + version = "1.3.1308"; + + src = fetchurl { + url = "https://1308-429851205-gh.circle-artifacts.com/0/%7E/Cider/dist/artifacts/Cider-${version}.AppImage"; + sha256 = "1lbyvn1c8155p039qfzx7jwad7km073phkmrzjm0w3ahdpwz3wgi"; + }; + + 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" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 75d176f68c78..9d33d1010e08 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4145,6 +4145,8 @@ with pkgs; stdenv = gcc9Stdenv; }; + cider = callPackage ../applications/audio/cider { }; + isolyzer = callPackage ../tools/cd-dvd/isolyzer { }; isomd5sum = callPackage ../tools/cd-dvd/isomd5sum { };