diff options
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r-- | pkgs/applications/audio/clerk/default.nix | 25 | ||||
-rw-r--r-- | pkgs/applications/audio/cyanrip/default.nix | 6 | ||||
-rw-r--r-- | pkgs/applications/audio/mpc/default.nix | 43 | ||||
-rw-r--r-- | pkgs/applications/audio/spotify/default.nix | 6 |
4 files changed, 56 insertions, 24 deletions
diff --git a/pkgs/applications/audio/clerk/default.nix b/pkgs/applications/audio/clerk/default.nix index ff9dca961ae..fa64cd74e71 100644 --- a/pkgs/applications/audio/clerk/default.nix +++ b/pkgs/applications/audio/clerk/default.nix @@ -3,7 +3,7 @@ , fetchFromGitHub , makeWrapper , rofi -, mpc_cli +, mpc-cli , perl , util-linux , python3Packages @@ -28,11 +28,24 @@ stdenv.mkDerivation { strictDeps = true; - installPhase = '' - DESTDIR=$out PREFIX=/ make install - wrapProgram $out/bin/clerk \ - --prefix PATH : "${lib.makeBinPath [ rofi mpc_cli perl util-linux libnotify ]}" - ''; + installPhase = + let + binPath = lib.makeBinPath [ + libnotify + mpc-cli + perl + rofi + util-linux + ]; + in + '' + runHook preInstall + + DESTDIR=$out PREFIX=/ make install + wrapProgram $out/bin/clerk --prefix PATH : "${binPath}" + + runHook postInstall + ''; meta = with lib; { description = "An MPD client built on top of rofi"; diff --git a/pkgs/applications/audio/cyanrip/default.nix b/pkgs/applications/audio/cyanrip/default.nix index 3338fe40bf1..d03b7836f2a 100644 --- a/pkgs/applications/audio/cyanrip/default.nix +++ b/pkgs/applications/audio/cyanrip/default.nix @@ -12,13 +12,13 @@ }: stdenv.mkDerivation rec { pname = "cyanrip"; - version = "0.7.0"; + version = "0.8.0"; src = fetchFromGitHub { owner = "cyanreg"; repo = pname; rev = "v${version}"; - sha256 = "0lgb92sfpf4w3nj5vlj6j7931mj2q3cmcx1app9snf853jk9ahmw"; + sha256 = "1aip52bwkq8cb1d8ifyv2m6m5dz7jk6qmbhyb97yyf4nhxv445ky"; }; nativeBuildInputs = [ meson ninja pkg-config ]; @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { meta = with lib; { homepage = "https://github.com/cyanreg/cyanrip"; description = "Bule-ish CD ripper"; - license = licenses.lgpl3Plus; + license = licenses.lgpl21Plus; platforms = platforms.all; maintainers = [ maintainers.zane ]; }; diff --git a/pkgs/applications/audio/mpc/default.nix b/pkgs/applications/audio/mpc/default.nix index 24ad2804f8a..cebf08f1908 100644 --- a/pkgs/applications/audio/mpc/default.nix +++ b/pkgs/applications/audio/mpc/default.nix @@ -2,12 +2,13 @@ , stdenv , fetchFromGitHub , fetchpatch +, installShellFiles +, libiconv +, libmpdclient , meson , ninja , pkg-config -, libmpdclient , sphinx -, libiconv }: stdenv.mkDerivation rec { @@ -15,10 +16,10 @@ stdenv.mkDerivation rec { version = "0.34"; src = fetchFromGitHub { - owner = "MusicPlayerDaemon"; - repo = "mpc"; - rev = "v${version}"; - sha256 = "sha256-2FjYBfak0IjibuU+CNQ0y9Ei8hTZhynS/BK2DNerhVw="; + owner = "MusicPlayerDaemon"; + repo = pname; + rev = "v${version}"; + hash = "sha256-2FjYBfak0IjibuU+CNQ0y9Ei8hTZhynS/BK2DNerhVw="; }; patches = [ @@ -29,15 +30,33 @@ stdenv.mkDerivation rec { }) ]; - buildInputs = [ libmpdclient ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; + buildInputs = [ + libmpdclient + ] + ++ lib.optionals stdenv.isDarwin [ libiconv ]; - nativeBuildInputs = [ meson ninja pkg-config sphinx ]; + nativeBuildInputs = [ + installShellFiles + meson + ninja + pkg-config + sphinx + ]; + + postInstall = '' + installShellCompletion --cmd mpc --bash $out/share/doc/mpc/contrib/mpc-completion.bash + ''; + + postFixup = '' + rm $out/share/doc/mpc/contrib/mpc-completion.bash + ''; meta = with lib; { - description = "A minimalist command line interface to MPD"; homepage = "https://www.musicpd.org/clients/mpc/"; - license = licenses.gpl2; - maintainers = with maintainers; [ algorith ncfavier ]; - platforms = with platforms; linux ++ darwin; + description = "A minimalist command line interface to MPD"; + changelog = "https://raw.githubusercontent.com/MusicPlayerDaemon/mpc/v${version}/NEWS"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ AndersonTorres ]; + platforms = with platforms; unix; }; } diff --git a/pkgs/applications/audio/spotify/default.nix b/pkgs/applications/audio/spotify/default.nix index f38bd678d9e..ddc42641600 100644 --- a/pkgs/applications/audio/spotify/default.nix +++ b/pkgs/applications/audio/spotify/default.nix @@ -10,14 +10,14 @@ let # If an update breaks things, one of those might have valuable info: # https://aur.archlinux.org/packages/spotify/ # https://community.spotify.com/t5/Desktop-Linux - version = "1.1.72.439.gc253025e"; + version = "1.1.77.643.g3c4c6fc6"; # To get the latest stable revision: # curl -H 'X-Ubuntu-Series: 16' 'https://api.snapcraft.io/api/v1/snaps/details/spotify?channel=stable' | jq '.download_url,.version,.last_updated' # To get general information: # curl -H 'Snap-Device-Series: 16' 'https://api.snapcraft.io/v2/snaps/info/spotify' | jq '.' # More examples of api usage: # https://github.com/canonical-websites/snapcraft.io/blob/master/webapp/publisher/snaps/views.py - rev = "56"; + rev = "57"; deps = [ alsa-lib @@ -80,7 +80,7 @@ stdenv.mkDerivation { # https://community.spotify.com/t5/Desktop-Linux/Redistribute-Spotify-on-Linux-Distributions/td-p/1695334 src = fetchurl { url = "https://api.snapcraft.io/api/v1/snaps/download/pOBIoZ2LrCB3rDohMxoYGnbN14EHOgD7_${rev}.snap"; - sha512 = "b2bd3d49a18dfebaa4660f9c39d11d57fb80a4ef15ec7b7973e3cc07be74f74aebd2d8c66360d79fe778244c533ed02f9dfca4085f99aae0e5faae7c003ba4ef"; + sha512 = "d9f8fe692db479bcce1f47c87b65c5ac6d62e16b76a0f9b2d693d82d2b9ed2c7cf370cb091ce8ecd291c47d1efdbaa897c9bffb210edd901dc3d5425995229f7"; }; nativeBuildInputs = [ makeWrapper wrapGAppsHook squashfsTools ]; |