forked from mirrors/nixpkgs
parent
c8ea9f749a
commit
7cfb9545c6
|
@ -1,13 +1,14 @@
|
|||
{ stdenv, fetchurl
|
||||
{ lib, stdenv, fetchurl
|
||||
, enableAlsa ? true, alsaLib ? null
|
||||
, enableLibao ? true, libao ? null
|
||||
, enableLame ? false, lame ? null
|
||||
, enableLibmad ? true, libmad ? null
|
||||
, enableLibogg ? true, libogg ? null, libvorbis ? null
|
||||
}:
|
||||
let
|
||||
inherit (stdenv.lib) optional optionals;
|
||||
in stdenv.mkDerivation rec {
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "sox-14.4.1";
|
||||
|
||||
src = fetchurl {
|
||||
|
@ -16,21 +17,17 @@ in stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
buildInputs =
|
||||
(optional enableAlsa alsaLib) ++
|
||||
(optional enableLibao libao) ++
|
||||
(optional enableLame lame) ++
|
||||
(optional enableLibmad libmad) ++
|
||||
(optionals enableLibogg [ libogg libvorbis ]);
|
||||
optional (enableAlsa && stdenv.isLinux) alsaLib ++
|
||||
optional enableLibao libao ++
|
||||
optional enableLame lame ++
|
||||
optional enableLibmad libmad ++
|
||||
optionals enableLibogg [ libogg libvorbis ];
|
||||
|
||||
meta = {
|
||||
description = "Sample Rate Converter for audio";
|
||||
homepage = http://www.mega-nerd.com/SRC/index.html;
|
||||
maintainers = [stdenv.lib.maintainers.marcweber stdenv.lib.maintainers.shlevy];
|
||||
# you can choose one of the following licenses:
|
||||
license = [
|
||||
"GPL"
|
||||
# http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf
|
||||
"libsamplerate Commercial Use License"
|
||||
];
|
||||
maintainers = [ lib.maintainers.marcweber lib.maintainers.shlevy ];
|
||||
license = lib.licenses.gpl2Plus;
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, pkgconfig, pulseaudio, alsaLib
|
||||
{ lib, stdenv, fetchurl, pkgconfig, pulseaudio, alsaLib
|
||||
, usePulseAudio }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
@ -8,8 +8,9 @@ stdenv.mkDerivation {
|
|||
sha256 = "1m0v2y6bhr4iwsgdkc7b3y0qgpvpv1ifbxsy8n8ahsvjn6wmppi9";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig alsaLib ] ++ (if usePulseAudio then [ pulseaudio ]
|
||||
else [ alsaLib ]);
|
||||
buildInputs =
|
||||
[ pkgconfig ] ++
|
||||
lib.optional stdenv.isLinux (if usePulseAudio then [ pulseaudio ] else [ alsaLib ]);
|
||||
|
||||
meta = {
|
||||
longDescription = ''
|
||||
|
|
Loading…
Reference in a new issue