diff options
author | figsoda <figsoda@pm.me> | 2021-10-26 22:43:09 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2021-10-27 08:08:03 -0400 |
commit | 007c379becf8001728d56dd9bb45ac32194bb316 (patch) | |
tree | 9bd8dca4f11e748a83b0135f00097f4349a5b4d7 /pkgs/applications/audio/ncspot | |
parent | 5a08a28803d56b241e8f8d693ba6d8f9dbafe847 (diff) | |
download | nixlib-007c379becf8001728d56dd9bb45ac32194bb316.tar nixlib-007c379becf8001728d56dd9bb45ac32194bb316.tar.gz nixlib-007c379becf8001728d56dd9bb45ac32194bb316.tar.bz2 nixlib-007c379becf8001728d56dd9bb45ac32194bb316.tar.lz nixlib-007c379becf8001728d56dd9bb45ac32194bb316.tar.xz nixlib-007c379becf8001728d56dd9bb45ac32194bb316.tar.zst nixlib-007c379becf8001728d56dd9bb45ac32194bb316.zip |
ncspot: use buildFeatures
Diffstat (limited to 'pkgs/applications/audio/ncspot')
-rw-r--r-- | pkgs/applications/audio/ncspot/default.nix | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/pkgs/applications/audio/ncspot/default.nix b/pkgs/applications/audio/ncspot/default.nix index d37cec15ffcb..29a244f19d7a 100644 --- a/pkgs/applications/audio/ncspot/default.nix +++ b/pkgs/applications/audio/ncspot/default.nix @@ -5,13 +5,6 @@ , withMPRIS ? false, dbus ? null }: -let - features = [ "cursive/pancurses-backend" ] - ++ lib.optional withALSA "alsa_backend" - ++ lib.optional withPulseAudio "pulseaudio_backend" - ++ lib.optional withPortAudio "portaudio_backend" - ++ lib.optional withMPRIS "mpris"; -in rustPlatform.buildRustPackage rec { pname = "ncspot"; version = "0.9.0"; @@ -25,8 +18,6 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "0sdbba32f56z2q7kha5fxw2f00hikbz9sf4zl4wfl2i9b13j7mj0"; - cargoBuildFlags = [ "--no-default-features" "--features" "${lib.concatStringsSep "," features}" ]; - nativeBuildInputs = [ pkg-config ]; buildInputs = [ ncurses openssl ] @@ -36,6 +27,13 @@ rustPlatform.buildRustPackage rec { ++ lib.optional withPortAudio portaudio ++ lib.optional withMPRIS dbus; + buildNoDefaultFeatures = true; + buildFeatures = [ "cursive/pancurses-backend" ] + ++ lib.optional withALSA "alsa_backend" + ++ lib.optional withPulseAudio "pulseaudio_backend" + ++ lib.optional withPortAudio "portaudio_backend" + ++ lib.optional withMPRIS "mpris"; + doCheck = false; meta = with lib; { |