diff options
author | Philippe Hürlimann <645664+p-h@users.noreply.github.com> | 2022-03-27 18:16:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-27 20:16:48 +0200 |
commit | 836171e89a50c9b80c3b342d32c1bc165a211409 (patch) | |
tree | 1a96f4f6b76ec85668317462595ac46c054a499d /pkgs | |
parent | 2522ff9c460958b178ac9fd1fad9cad5aac08976 (diff) |
cmusfm: use versiont tags, add compile options (#142135)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/audio/cmusfm/default.nix | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/pkgs/applications/audio/cmusfm/default.nix b/pkgs/applications/audio/cmusfm/default.nix index 4cf91c698be7f..17495ead355a0 100644 --- a/pkgs/applications/audio/cmusfm/default.nix +++ b/pkgs/applications/audio/cmusfm/default.nix @@ -1,18 +1,24 @@ -{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, curl, libnotify, gdk-pixbuf }: +{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, curl, libnotify +, gdk-pixbuf, libnotifySupport ? stdenv.isLinux, debug ? false }: + +stdenv.mkDerivation rec { + pname = "cmusfm"; + version = "0.4.1"; -stdenv.mkDerivation { - version = "2021-05-19"; - pname = "cmusfm-unstable"; src = fetchFromGitHub { owner = "Arkq"; - repo = "cmusfm"; - rev = "a1f9f37c5819ca8a5b48e6185c2ec7ad478b9f1a"; - sha256 = "19akgvh9gl99xvpmzgqv88w2mnnln7k6290dr5rn3h6a1ihvllaw"; + repo = pname; + rev = "v${version}"; + sha256 = "1px2is80jdxchg8cpn5cizg6jvcbzyxl0qzs3bn0k3d10qjvdww5"; }; - # building - configureFlags = [ "--enable-libnotify" ]; + + configureFlags = lib.optional libnotifySupport "--enable-libnotify" + ++ lib.optional debug "--enable-debug"; + nativeBuildInputs = [ autoreconfHook pkg-config ]; - buildInputs = [ curl libnotify gdk-pixbuf ]; + + buildInputs = [ curl gdk-pixbuf ] + ++ lib.optional libnotifySupport libnotify; meta = with lib; { description = "Last.fm and Libre.fm standalone scrobbler for the cmus music player"; |