nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #221184 from NixOS/sndfile-1.2.0

authored by

Sandro and committed by
GitHub
de80fd06 686718dd

+29 -14
+16 -9
pkgs/applications/audio/mpg123/default.nix
··· 3 3 , fetchurl 4 4 , makeWrapper 5 5 , pkg-config 6 - , perl 6 + , libOnly ? false # whether to build only the library 7 7 , withAlsa ? stdenv.hostPlatform.isLinux 8 8 , alsa-lib 9 9 , withPulse ? stdenv.hostPlatform.isLinux ··· 14 14 , withJack ? stdenv.hostPlatform.isUnix 15 15 , jack 16 16 , withConplay ? !stdenv.hostPlatform.isWindows 17 + , perl 17 18 }: 18 19 20 + assert withConplay -> !libOnly; 21 + 19 22 stdenv.mkDerivation rec { 20 - pname = "mpg123"; 23 + pname = "${lib.optionalString libOnly "lib"}mpg123"; 21 24 version = "1.31.2"; 22 25 23 26 src = fetchurl { 24 - url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2"; 27 + url = "mirror://sourceforge/mpg123/mpg123-${version}.tar.bz2"; 25 28 sha256 = "sha256-sX8ikF4x9DtrQB399qce0Ru30Fb2jbRJ1wufmug5x94="; 26 29 }; 27 30 28 - outputs = [ "out" ] ++ lib.optionals withConplay [ "conplay" ]; 31 + outputs = [ "out" ] ++ lib.optional withConplay "conplay"; 29 32 30 - nativeBuildInputs = lib.optionals withConplay [ makeWrapper ] 31 - ++ lib.optionals (withPulse || withJack) [ pkg-config ]; 33 + nativeBuildInputs = lib.optionals (!libOnly) ( 34 + lib.optionals withConplay [ makeWrapper ] 35 + ++ lib.optionals (withPulse || withJack) [ pkg-config ] 36 + ); 32 37 33 - buildInputs = lib.optionals withConplay [ perl ] 38 + buildInputs = lib.optionals (!libOnly) ( 39 + lib.optionals withConplay [ perl ] 34 40 ++ lib.optionals withAlsa [ alsa-lib ] 35 41 ++ lib.optionals withPulse [ libpulseaudio ] 36 42 ++ lib.optionals withCoreAudio [ AudioUnit AudioToolbox ] 37 - ++ lib.optionals withJack [ jack ]; 43 + ++ lib.optionals withJack [ jack ] 44 + ); 38 45 39 - configureFlags = [ 46 + configureFlags = lib.optionals (!libOnly) [ 40 47 "--with-audio=${lib.strings.concatStringsSep "," ( 41 48 lib.optional withJack "jack" 42 49 ++ lib.optional withPulse "pulse"
+8 -5
pkgs/development/libraries/libsndfile/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, autoreconfHook, autogen, flac, libogg, libopus, libvorbis, pkg-config, python3 2 - , Carbon, AudioToolbox 1 + { lib, stdenv, fetchFromGitHub, autoreconfHook, autogen, pkg-config, python3 2 + , flac, lame, libmpg123, libogg, libopus, libvorbis 3 + , alsa-lib, Carbon, AudioToolbox 3 4 }: 4 5 5 6 stdenv.mkDerivation rec { 6 7 pname = "libsndfile"; 7 - version = "1.1.0"; 8 + version = "1.2.0"; 8 9 9 10 src = fetchFromGitHub { 10 11 owner = pname; 11 12 repo = pname; 12 13 rev = version; 13 - sha256 = "sha256-bhIXVSKuUnUzs5aaLDHt21RcnqekEpLU414sFtl2Lro="; 14 + hash = "sha256-zd0HDUzVYLyFjhIudBJQaKJUtYMjZeQRLALSkyD9tXU="; 14 15 }; 15 16 16 17 nativeBuildInputs = [ autoreconfHook autogen pkg-config python3 ]; 17 - buildInputs = [ flac libogg libopus libvorbis ] 18 + buildInputs = [ flac lame libmpg123 libogg libopus libvorbis ] 19 + ++ lib.optionals stdenv.isLinux [ alsa-lib ] 18 20 ++ lib.optionals stdenv.isDarwin [ Carbon AudioToolbox ]; 19 21 20 22 enableParallelBuilding = true; ··· 36 34 meta = with lib; { 37 35 description = "A C library for reading and writing files containing sampled sound"; 38 36 homepage = "https://libsndfile.github.io/libsndfile/"; 37 + changelog = "https://github.com/libsndfile/libsndfile/releases/tag/${version}"; 39 38 license = licenses.lgpl2Plus; 40 39 maintainers = with maintainers; [ lovek323 ]; 41 40 platforms = platforms.unix;
+5
pkgs/top-level/all-packages.nix
··· 31850 31850 jack = libjack2; 31851 31851 }; 31852 31852 31853 + libmpg123 = mpg123.override { 31854 + libOnly = true; 31855 + withConplay = false; 31856 + }; 31857 + 31853 31858 mpg321 = callPackage ../applications/audio/mpg321 { }; 31854 31859 31855 31860 mpc-cli = callPackage ../applications/audio/mpc {