Commit 049a4670 authored by Doron Behar's avatar Doron Behar
Browse files

mpd: promote features list to top level arguments

From some reason, using mpdWithFeature = mpd.override inside
mpd/default.nix causes an evaluation error
parent 4ef84296
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  mpdWithFeatures,
  mpd,
}:

mpdWithFeatures {
mpd.override {
  features = [
    "webdav"
    "curl"
+4 −9
Original line number Diff line number Diff line
@@ -65,6 +65,8 @@
  # For tests
  gtest,
  zip,
  # Features list
  features ? null,
}:

let
@@ -152,11 +154,6 @@ let
    ];
  };

  run =
    {
      features ? null,
    }:
    let
      # Disable platform specific features if needed
      # using libmad to decode mp3 files on darwin is causing a segfault -- there
      # is probably a solution, but I'm disabling it for now
@@ -197,8 +194,7 @@ let
            else
              features;

    in
    stdenv.mkDerivation (finalAttrs: {
  mpd = stdenv.mkDerivation (finalAttrs: {
      pname = "mpd";
      version = "0.24.5";

@@ -292,6 +288,5 @@ let
    });
in
{
  mpd = run { };
  mpdWithFeatures = run;
  inherit mpd;
}
+1 −0
Original line number Diff line number Diff line
@@ -1333,6 +1333,7 @@ mapAliases {
  mpc-cli = mpc; # Added 2024-10-14
  mpc_cli = mpc; # Added 2024-10-14
  mpd_clientlib = throw "'mpd_clientlib' has been renamed to/replaced by 'libmpdclient'"; # Converted to throw 2024-10-17
  mpdWithFeatures = lib.warnOnInstantiate "mpdWithFeatures has been replaced by mpd.override" mpd.override; # Added 2025-08-08
  mpdevil = plattenalbum; # Added 2024-05-22
  mpg321 = throw "'mpg321' has been removed due to it being unmaintained by upstream. Consider using mpg123 instead."; # Added 2024-05-10
  mq-cli = throw "'mq-cli' has been removed due to lack of upstream maintenance"; # Added 2025-01-25
+0 −1
Original line number Diff line number Diff line
@@ -10224,7 +10224,6 @@ with pkgs;
    (callPackages ../servers/mpd {
    })
    mpd
    mpdWithFeatures
    ;

  mtprotoproxy = python3.pkgs.callPackage ../servers/mtprotoproxy { };