treewide: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob 2021-01-15 20:21:58 +07:00
parent a9bb54359e
commit badf51221d
977 changed files with 2613 additions and 2613 deletions

View file

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
version = "3.32.0"; version = "3.32.0";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "005fhmvb45sa9mq17dpa23n1xnspiissx5rnpiy7hiqmy3g5rg8f"; sha256 = "005fhmvb45sa9mq17dpa23n1xnspiissx5rnpiy7hiqmy3g5rg8f";
}; };

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ladspaH { lib, stdenv, fetchurl, ladspaH
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -26,8 +26,8 @@ stdenv.mkDerivation rec {
''; '';
version = version; version = version;
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/ladspa/index.html"; homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/ladspa/index.html";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ladspaH { lib, stdenv, fetchurl, ladspaH
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -30,8 +30,8 @@ stdenv.mkDerivation rec {
''; '';
version = version; version = version;
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/ladspa/index.html"; homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/ladspa/index.html";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, python3, alsaUtils, timidity }: { lib, stdenv, fetchurl, makeWrapper, python3, alsaUtils, timidity }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "20.12"; version = "20.12";
@ -62,8 +62,8 @@
meta = { meta = {
description = "Creates MIDI tracks for a soloist to perform over from a user supplied file containing chords"; description = "Creates MIDI tracks for a soloist to perform over from a user supplied file containing chords";
homepage = "https://www.mellowood.ca/mma/index.html"; homepage = "https://www.mellowood.ca/mma/index.html";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -38,7 +38,7 @@ in
for cmd in abcde cddb-tool abcde-musicbrainz-tool; do for cmd in abcde cddb-tool abcde-musicbrainz-tool; do
wrapProgram "$out/bin/$cmd" \ wrapProgram "$out/bin/$cmd" \
--prefix PERL5LIB : "$PERL5LIB" \ --prefix PERL5LIB : "$PERL5LIB" \
--prefix PATH ":" ${stdenv.lib.makeBinPath [ --prefix PATH ":" ${lib.makeBinPath [
"$out" which libcdio-paranoia cddiscid wget "$out" which libcdio-paranoia cddiscid wget
vorbis-tools id3v2 eyeD3 lame flac glyr vorbis-tools id3v2 eyeD3 lame flac glyr
]} ]}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libclthreads, zita-alsa-pcmi, alsaLib, libjack2 { lib, stdenv, fetchurl, libclthreads, zita-alsa-pcmi, alsaLib, libjack2
, libclxclient, libX11, libXft, readline , libclxclient, libX11, libXft, readline
}: }:
@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Synthetized (not sampled) pipe organ emulator"; description = "Synthetized (not sampled) pipe organ emulator";
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/aeolus/index.html"; homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/aeolus/index.html";
license = stdenv.lib.licenses.lgpl3; license = lib.licenses.lgpl3;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.nico202 ]; maintainers = [ lib.maintainers.nico202 ];
}; };
} }

View file

@ -22,7 +22,7 @@ let
}; };
nativeBuildInputs = [ unzip ]; nativeBuildInputs = [ unzip ];
installPhase = "cp -r . $out"; installPhase = "cp -r . $out";
meta.license = stdenv.lib.licenses.unfree; meta.license = lib.licenses.unfree;
}; };
wine-wow64 = wine.override { wine-wow64 = wine.override {

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gettext, gtk3, intltool, { lib, stdenv, fetchurl, pkgconfig, gettext, gtk3, intltool,
wrapGAppsHook, libxml2, curl, mpd_clientlib, dbus-glib, wrapGAppsHook, libxml2, curl, mpd_clientlib, dbus-glib,
libsoup, avahi, taglib libsoup, avahi, taglib
}: }:
@ -20,8 +20,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "GTK client for MPD (Music player daemon)"; description = "GTK client for MPD (Music player daemon)";
homepage = "http://ario-player.sourceforge.net/"; homepage = "http://ario-player.sourceforge.net/";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.garrison ]; maintainers = [ lib.maintainers.garrison ];
platforms = stdenv.lib.platforms.all; platforms = lib.platforms.all;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, gtk2, libcddb, intltool, pkgconfig, cdparanoia { lib, stdenv, fetchurl, makeWrapper, gtk2, libcddb, intltool, pkgconfig, cdparanoia
, mp3Support ? false, lame , mp3Support ? false, lame
, oggSupport ? true, vorbis-tools , oggSupport ? true, vorbis-tools
, flacSupport ? true, flac , flacSupport ? true, flac
@ -9,7 +9,7 @@
#, aacSupport ? false, TODO: neroAacEnc #, aacSupport ? false, TODO: neroAacEnc
}: }:
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.9.7"; version = "2.9.7";

View file

@ -10,14 +10,14 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ sndio ] buildInputs = [ sndio ]
++ stdenv.lib.optional (!stdenv.isDarwin && !stdenv.targetPlatform.isBSD) ++ lib.optional (!stdenv.isDarwin && !stdenv.targetPlatform.isBSD)
libbsd; libbsd;
outputs = [ "out" "man" ]; outputs = [ "out" "man" ];
preBuild = '' preBuild = ''
makeFlagsArray+=("PREFIX=$out") makeFlagsArray+=("PREFIX=$out")
'' + stdenv.lib.optionalString '' + lib.optionalString
(!stdenv.isDarwin && !stdenv.targetPlatform.isBSD) '' (!stdenv.isDarwin && !stdenv.targetPlatform.isBSD) ''
makeFlagsArray+=(LDADD="-lsndio -lbsd") makeFlagsArray+=(LDADD="-lsndio -lbsd")

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
glib dbus gtk3 librsvg libappindicator-gtk3 glib dbus gtk3 librsvg libappindicator-gtk3
] ++ (with gst_all_1; [ ] ++ (with gst_all_1; [
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav
]) ++ stdenv.lib.optional pulseaudioSupport libpulseaudio; ]) ++ lib.optional pulseaudioSupport libpulseaudio;
meta = with lib; { meta = with lib; {
description = "Audio recorder for GNOME and Unity Desktops"; description = "Audio recorder for GNOME and Unity Desktops";

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, gettext, ncurses {lib, stdenv, fetchurl, gettext, ncurses
, gtkGUI ? false , gtkGUI ? false
, pkgconfig ? null , pkgconfig ? null
, gtk2 ? null}: , gtk2 ? null}:
@ -22,9 +22,9 @@ stdenv.mkDerivation rec {
the command line or a script. the command line or a script.
''; '';
homepage = "http://www.jpj.net/~trevor/aumix.html"; homepage = "http://www.jpj.net/~trevor/aumix.html";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = [ ]; maintainers = [ ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -12,8 +12,8 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig ]; buildInputs = [ pkgconfig ];
propagatedBuildInputs = propagatedBuildInputs =
stdenv.lib.optional stdenv.isLinux systemd ++ lib.optional stdenv.isLinux systemd ++
stdenv.lib.optionals stdenv.isDarwin [ libobjc IOKit ]; lib.optionals stdenv.isDarwin [ libobjc IOKit ];
patches = [ patches = [
(fetchpatch { (fetchpatch {
@ -23,9 +23,9 @@ stdenv.mkDerivation rec {
}) })
]; ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s"; NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lgcc_s";
preFixup = stdenv.lib.optionalString stdenv.isLinux '' preFixup = lib.optionalString stdenv.isLinux ''
sed 's,-ludev,-L${lib.getLib systemd}/lib -ludev,' -i $out/lib/libusb-1.0.la sed 's,-ludev,-L${lib.getLib systemd}/lib -ludev,' -i $out/lib/libusb-1.0.la
''; '';

View file

@ -13,7 +13,7 @@
}: }:
let let
inherit (stdenv.lib) optional optionals; inherit (lib) optional optionals;
in in
mkDerivation rec { mkDerivation rec {

View file

@ -3,7 +3,7 @@
}: }:
let let
rpath = stdenv.lib.makeLibraryPath rpath = lib.makeLibraryPath
[ libXmu libXt libX11 libXext libXxf86vm libjack2 ]; [ libXmu libXt libX11 libXext libXxf86vm libjack2 ];
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {

View file

@ -98,8 +98,8 @@ mkDerivation rec {
meta = { meta = {
homepage = "https://github.com/falkTX/Cadence/"; homepage = "https://github.com/falkTX/Cadence/";
description = "Collection of tools useful for audio production"; description = "Collection of tools useful for audio production";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = with stdenv.lib.maintainers; [ worldofpeace ]; maintainers = with lib.maintainers; [ worldofpeace ];
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }: { lib, stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "caps"; pname = "caps";
version = "0.9.26"; version = "0.9.26";
@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
resource demands and meaningful control interfaces. resource demands and meaningful control interfaces.
''; '';
homepage = "http://www.quitte.de/dsp/caps.html"; homepage = "http://www.quitte.de/dsp/caps.html";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.astsmtl ]; maintainers = [ lib.maintainers.astsmtl ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -5,7 +5,7 @@
withGtk2 ? true, gtk2 ? null, withGtk2 ? true, gtk2 ? null,
withGtk3 ? true, gtk3 ? null }: withGtk3 ? true, gtk3 ? null }:
with stdenv.lib; with lib;
assert withFrontend -> python3Packages ? pyqt5; assert withFrontend -> python3Packages ? pyqt5;
assert withQt -> qtbase != null; assert withQt -> qtbase != null;

View file

@ -25,8 +25,8 @@ stdenv.mkDerivation {
postFixup = '' postFixup = ''
for executable in $(cd $out/bin && ls); do for executable in $(cd $out/bin && ls); do
wrapProgram $out/bin/$executable \ wrapProgram $out/bin/$executable \
--prefix PATH : "${stdenv.lib.makeBinPath [ bc findutils sox procps opusTools lame flac ]}" --prefix PATH : "${lib.makeBinPath [ bc findutils sox procps opusTools lame flac ]}"
done done
''; '';

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$(out)" "INSTALL=install" ]; installFlags = [ "PREFIX=$(out)" "INSTALL=install" ];
buildInputs = [] buildInputs = []
++ stdenv.lib.optional stdenv.isDarwin IOKit; ++ lib.optional stdenv.isDarwin IOKit;
meta = with lib; { meta = with lib; {
homepage = "http://linukz.org/cd-discid.shtml"; homepage = "http://linukz.org/cd-discid.shtml";

View file

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"; sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80";
}; };
patches = stdenv.lib.optionals stdenv.isDarwin [ patches = lib.optionals stdenv.isDarwin [
(fetchurl { (fetchurl {
url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch"; url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch";
sha256 = "1n86kzm2ssl8fdf5wlhp6ncb2bf6b9xlb5vg0mhc85r69prqzjiy"; sha256 = "1n86kzm2ssl8fdf5wlhp6ncb2bf6b9xlb5vg0mhc85r69prqzjiy";
@ -17,19 +17,19 @@ stdenv.mkDerivation rec {
url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff"; url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff";
sha256 = "17l2qhn8sh4jy6ryy5si6ll6dndcm0r537rlmk4a6a8vkn852vad"; sha256 = "17l2qhn8sh4jy6ryy5si6ll6dndcm0r537rlmk4a6a8vkn852vad";
}) })
] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./utils.patch ] ++ lib.optional stdenv.hostPlatform.isMusl ./utils.patch
++ [./fix_private_keyword.patch]; ++ [./fix_private_keyword.patch];
nativeBuildInputs = stdenv.lib.optional stdenv.isAarch64 autoreconfHook; nativeBuildInputs = lib.optional stdenv.isAarch64 autoreconfHook;
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ propagatedBuildInputs = lib.optionals stdenv.isDarwin [
Carbon Carbon
IOKit IOKit
]; ];
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
preConfigure = "unset CC" + stdenv.lib.optionalString stdenv.isAarch64 ''; preConfigure = "unset CC" + lib.optionalString stdenv.isAarch64 '';
cp ${gnu-config}/config.sub configure.sub cp ${gnu-config}/config.sub configure.sub
cp ${gnu-config}/config.guess configure.guess cp ${gnu-config}/config.guess configure.guess
''; '';

View file

@ -48,10 +48,10 @@ let
sqlite sqlite
taglib taglib
] ]
++ stdenv.lib.optionals (withIpod) [libgpod libplist usbmuxd] ++ lib.optionals (withIpod) [libgpod libplist usbmuxd]
++ stdenv.lib.optionals (withMTP) [libmtp] ++ lib.optionals (withMTP) [libmtp]
++ stdenv.lib.optionals (withCD) [libcdio] ++ lib.optionals (withCD) [libcdio]
++ stdenv.lib.optionals (withCloud) [sparsehash]; ++ lib.optionals (withCloud) [sparsehash];
postPatch = '' postPatch = ''
sed -i src/CMakeLists.txt \ sed -i src/CMakeLists.txt \

View file

@ -18,7 +18,7 @@ stdenv.mkDerivation {
installPhase = '' installPhase = ''
DESTDIR=$out PREFIX=/ make install DESTDIR=$out PREFIX=/ make install
wrapProgram $out/bin/clerk \ wrapProgram $out/bin/clerk \
--prefix PATH : "${stdenv.lib.makeBinPath [ rofi mpc_cli perl util-linux libnotify ]}" --prefix PATH : "${lib.makeBinPath [ rofi mpc_cli perl util-linux libnotify ]}"
''; '';
meta = with lib; { meta = with lib; {

View file

@ -39,7 +39,7 @@
#, vtxSupport ? true, libayemu ? null #, vtxSupport ? true, libayemu ? null
}: }:
with stdenv.lib; with lib;
assert samplerateSupport -> jackSupport; assert samplerateSupport -> jackSupport;
@ -120,8 +120,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ ncurses ] buildInputs = [ ncurses ]
++ stdenv.lib.optional stdenv.cc.isClang clangGCC ++ lib.optional stdenv.cc.isClang clangGCC
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv CoreAudio ] ++ lib.optionals stdenv.isDarwin [ libiconv CoreAudio ]
++ flatten (concatMap (a: a.deps) opts); ++ flatten (concatMap (a: a.deps) opts);
makeFlags = [ "LD=$(CC)" ]; makeFlags = [ "LD=$(CC)" ];

View file

@ -29,7 +29,7 @@ stdenv.mkDerivation {
+ Inside cmus run `:set status_display_program=cmusfm` to set up cmusfm + Inside cmus run `:set status_display_program=cmusfm` to set up cmusfm
''; '';
homepage = "https://github.com/Arkq/cmusfm/"; homepage = "https://github.com/Arkq/cmusfm/";
maintainers = with stdenv.lib.maintainers; [ CharlesHD ]; maintainers = with lib.maintainers; [ CharlesHD ];
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
}; };

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, makeWrapper , makeWrapper
@ -16,7 +16,7 @@
, which , which
}: }:
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "crip-3.9"; name = "crip-3.9";
@ -60,8 +60,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://bach.dynet.com/crip/"; homepage = "http://bach.dynet.com/crip/";
description = "Terminal-based ripper/encoder/tagger tool for creating Ogg Vorbis/FLAC files"; description = "Terminal-based ripper/encoder/tagger tool for creating Ogg Vorbis/FLAC files";
license = stdenv.lib.licenses.gpl1; license = lib.licenses.gpl1;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [ maintainers.endgame ]; maintainers = [ maintainers.endgame ];
}; };
} }

View file

@ -1,5 +1,5 @@
{ {
stdenv, fetchFromGitHub, docbook_xsl, lib, stdenv, fetchFromGitHub, docbook_xsl,
docbook_xml_dtd_45, python, pygments, docbook_xml_dtd_45, python, pygments,
libxslt libxslt
}: }:
@ -37,8 +37,8 @@ stdenv.mkDerivation {
meta = { meta = {
description = "The Csound Canonical Reference Manual"; description = "The Csound Canonical Reference Manual";
homepage = "https://github.com/csound/manual"; homepage = "https://github.com/csound/manual";
license = stdenv.lib.licenses.fdl12Plus; license = lib.licenses.fdl12Plus;
maintainers = [ stdenv.lib.maintainers.hlolli ]; maintainers = [ lib.maintainers.hlolli ];
platforms = stdenv.lib.platforms.all; platforms = lib.platforms.all;
}; };
} }

View file

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
}; };
cmakeFlags = [ "-DBUILD_CSOUND_AC=0" ] # fails to find Score.hpp cmakeFlags = [ "-DBUILD_CSOUND_AC=0" ] # fails to find Score.hpp
++ stdenv.lib.optional (libjack2 != null) "-DJACK_HEADER=${libjack2}/include/jack/jack.h"; ++ lib.optional (libjack2 != null) "-DJACK_HEADER=${libjack2}/include/jack/jack.h";
nativeBuildInputs = [ cmake flex bison gettext ]; nativeBuildInputs = [ cmake flex bison gettext ];
buildInputs = [ libsndfile libsamplerate boost ] buildInputs = [ libsndfile libsamplerate boost ]

View file

@ -68,7 +68,7 @@ stdenv.mkDerivation rec {
sha256 = "161b0ll8v4cjgwwmk137hzvh0jidlkx56vjkpnr70f0x4jzv2nll"; sha256 = "161b0ll8v4cjgwwmk137hzvh0jidlkx56vjkpnr70f0x4jzv2nll";
}; };
buildInputs = with stdenv.lib; [ jansson ] buildInputs = with lib; [ jansson ]
++ optional gtk2Support gtk2 ++ optional gtk2Support gtk2
++ optionals gtk3Support [ gtk3 gsettings-desktop-schemas ] ++ optionals gtk3Support [ gtk3 gsettings-desktop-schemas ]
++ optional vorbisSupport libvorbis ++ optional vorbisSupport libvorbis
@ -98,7 +98,7 @@ stdenv.mkDerivation rec {
intltool intltool
libtool libtool
pkgconfig pkgconfig
] ++ stdenv.lib.optional gtk3Support wrapGAppsHook; ] ++ lib.optional gtk3Support wrapGAppsHook;
enableParallelBuilding = true; enableParallelBuilding = true;

View file

@ -10,7 +10,7 @@ in stdenv.mkDerivation rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw"; sha256 = "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw";
}; };

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, pkg-config , pkg-config
, alsaLib , alsaLib
@ -59,7 +59,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Software package designed for multitrack audio processing"; description = "Software package designed for multitrack audio processing";
license = with stdenv.lib.licenses; [ gpl2 lgpl21 ]; license = with lib.licenses; [ gpl2 lgpl21 ];
homepage = "http://nosignal.fi/ecasound/"; homepage = "http://nosignal.fi/ecasound/";
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, flite, alsaLib, debug ? false }: { lib, stdenv, fetchurl, fetchpatch, flite, alsaLib, debug ? false }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "eflite"; pname = "eflite";
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
./format.patch ./format.patch
]; ];
CFLAGS = stdenv.lib.optionalString debug " -DDEBUG=2"; CFLAGS = lib.optionalString debug " -DDEBUG=2";
meta = { meta = {
homepage = "http://eflite.sourceforge.net"; homepage = "http://eflite.sourceforge.net";
@ -44,8 +44,8 @@ stdenv.mkDerivation rec {
a free text-to-speech engine developed at the CMU Speech a free text-to-speech engine developed at the CMU Speech
Center as an off-shoot of Festival. Center as an off-shoot of Festival.
''; '';
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ jhhuh ]; maintainers = with lib.maintainers; [ jhhuh ];
}; };
} }

View file

@ -28,7 +28,7 @@ in stdenv.mkDerivation rec {
sha256 = "0ym6lpcpsvwvsiwlzkl1509a2hljwcw7synngrmqjq1n49ww00nj"; sha256 = "0ym6lpcpsvwvsiwlzkl1509a2hljwcw7synngrmqjq1n49ww00nj";
}; };
preConfigure = with stdenv.lib; '' preConfigure = with lib; ''
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE ${optionalString stdenv.is64bit "-D_x86_64"}" NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE ${optionalString stdenv.is64bit "-D_x86_64"}"
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DEKHO_DATA_PATH=\"$out/share/ekho-data\"" NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DEKHO_DATA_PATH=\"$out/share/ekho-data\""
''; '';

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, cmake, fftw, gtkmm2, libxcb, lv2, pkg-config { lib, stdenv, fetchurl, fetchpatch, cmake, fftw, gtkmm2, libxcb, lv2, pkg-config
, xorg }: , xorg }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "eq10q"; pname = "eq10q";
@ -44,8 +44,8 @@ stdenv.mkDerivation rec {
Nice GUI with powerful metering for every plugin. Nice GUI with powerful metering for every plugin.
''; '';
homepage = "http://eq10q.sourceforge.net/"; homepage = "http://eq10q.sourceforge.net/";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
-e "s|@prefix@|$out|" \ -e "s|@prefix@|$out|" \
-i "$file" -i "$file"
done done
'' + stdenv.lib.optionalString (portaudio.api_version == 19) '' '' + lib.optionalString (portaudio.api_version == 19) ''
cp src/portaudio19.h src/portaudio.h cp src/portaudio19.h src/portaudio.h
''; '';

View file

@ -5,7 +5,7 @@
, pkgconfig , pkgconfig
}: }:
with stdenv.lib.strings; with lib.strings;
let let

View file

@ -16,7 +16,7 @@
, which , which
}: }:
with stdenv.lib.strings; with lib.strings;
let let
@ -173,7 +173,7 @@ let
propagatedBuildInputs = [ faust ] ++ propagatedBuildInputs; propagatedBuildInputs = [ faust ] ++ propagatedBuildInputs;
libPath = stdenv.lib.makeLibraryPath propagatedBuildInputs; libPath = lib.makeLibraryPath propagatedBuildInputs;
postFixup = '' postFixup = ''

View file

@ -1,4 +1,4 @@
{ stdenv, mkDerivation, fetchFromGitHub, fftw, qtbase, qtmultimedia, qmake, itstool, wrapQtAppsHook { lib, stdenv, mkDerivation, fetchFromGitHub, fftw, qtbase, qtmultimedia, qmake, itstool, wrapQtAppsHook
, alsaSupport ? true, alsaLib ? null , alsaSupport ? true, alsaLib ? null
, jackSupport ? false, libjack2 ? null , jackSupport ? false, libjack2 ? null
, portaudioSupport ? false, portaudio ? null }: , portaudioSupport ? false, portaudio ? null }:
@ -7,7 +7,7 @@ assert alsaSupport -> alsaLib != null;
assert jackSupport -> libjack2 != null; assert jackSupport -> libjack2 != null;
assert portaudioSupport -> portaudio != null; assert portaudioSupport -> portaudio != null;
with stdenv.lib; with lib;
mkDerivation rec { mkDerivation rec {
pname = "fmit"; pname = "fmit";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, gtkmm2, lv2, lvtk, pkgconfig }: { lib, stdenv, fetchFromGitHub, gtkmm2, lv2, lvtk, pkgconfig }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "fmsynth-unstable"; pname = "fmsynth-unstable";
version = "2015-02-07"; version = "2015-02-07";
@ -42,8 +42,8 @@ stdenv.mkDerivation {
- Hard real-time constraints - Hard real-time constraints
''; '';
homepage = "https://github.com/Themaister/libfmsynth"; homepage = "https://github.com/Themaister/libfmsynth";
license = stdenv.lib.licenses.mit; license = lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -45,8 +45,8 @@ stdenv.mkDerivation rec {
'' ; '' ;
homepage = "http://freewheeling.sourceforge.net"; homepage = "http://freewheeling.sourceforge.net";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.sepi ]; maintainers = [ lib.maintainers.sepi ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -23,14 +23,14 @@ stdenv.mkDerivation rec {
}; };
# Adapt the linux-only CMakeLists to darwin (more reliable than make-macos.sh) # Adapt the linux-only CMakeLists to darwin (more reliable than make-macos.sh)
postPatch = stdenv.lib.optionalString stdenv.isDarwin '' postPatch = lib.optionalString stdenv.isDarwin ''
sed -i -e 's@__LINUX_ALSA__@__MACOSX_CORE__@' -e 's@asound@@' CMakeLists.txt sed -i -e 's@__LINUX_ALSA__@__MACOSX_CORE__@' -e 's@asound@@' CMakeLists.txt
''; '';
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ SDL2 ] buildInputs = [ SDL2 ]
++ stdenv.lib.optional stdenv.isLinux alsaLib ++ lib.optional stdenv.isLinux alsaLib
++ stdenv.lib.optionals stdenv.isDarwin [ ++ lib.optionals stdenv.isDarwin [
libiconv libiconv
CoreAudio CoreAudio
CoreMIDI CoreMIDI
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
Cocoa Cocoa
]; ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin [ NIX_LDFLAGS = lib.optionalString stdenv.isDarwin [
"-framework CoreAudio" "-framework CoreAudio"
"-framework CoreMIDI" "-framework CoreMIDI"
"-framework CoreServices" "-framework CoreServices"

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, SDL, SDL_gfx, SDL_image, tremor, flac, mpg123, libmikmod {lib, stdenv, fetchurl, SDL, SDL_gfx, SDL_image, tremor, flac, mpg123, libmikmod
, speex, ncurses , speex, ncurses
, keymap ? "default" , keymap ? "default"
, conf ? "unknown" , conf ? "unknown"
@ -26,6 +26,6 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://wejp.k.vu/projects/gmu"; homepage = "http://wejp.k.vu/projects/gmu";
description = "Open source music player for portable gaming consoles and handhelds"; description = "Open source music player for portable gaming consoles and handhelds";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, unzip , unzip
, copyDesktopItems , copyDesktopItems
@ -8,7 +8,7 @@
, isStereo ? false , isStereo ? false
}: }:
with stdenv.lib; with lib;
let let
pname = "goattracker" + optionalString isStereo "-stereo"; pname = "goattracker" + optionalString isStereo "-stereo";
desktopItem = makeDesktopItem { desktopItem = makeDesktopItem {

View file

@ -50,12 +50,12 @@ stdenv.mkDerivation rec {
postFixup = '' postFixup = ''
patchelf \ patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "$(patchelf --print-rpath $out/opt/google/musicmanager/minidump_upload):${stdenv.lib.makeLibraryPath [ stdenv.cc.cc.lib ]}" \ --set-rpath "$(patchelf --print-rpath $out/opt/google/musicmanager/minidump_upload):${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}" \
$out/opt/google/musicmanager/minidump_upload $out/opt/google/musicmanager/minidump_upload
patchelf \ patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "$(patchelf --print-rpath $out/opt/google/musicmanager/MusicManager):$out/lib:${stdenv.lib.makeLibraryPath [ --set-rpath "$(patchelf --print-rpath $out/opt/google/musicmanager/MusicManager):$out/lib:${lib.makeLibraryPath [
flac flac
expat expat
libidn libidn

View file

@ -1,4 +1,4 @@
{ stdenv, alsaLib, atk, at-spi2-atk, cairo, cups, dbus, dpkg, expat, fontconfig, freetype { lib, stdenv, alsaLib, atk, at-spi2-atk, cairo, cups, dbus, dpkg, expat, fontconfig, freetype
, fetchurl, GConf, gdk-pixbuf, glib, gtk2, gtk3, libpulseaudio, makeWrapper, nspr , fetchurl, GConf, gdk-pixbuf, glib, gtk2, gtk3, libpulseaudio, makeWrapper, nspr
, nss, pango, udev, xorg , nss, pango, udev, xorg
}: }:
@ -69,14 +69,14 @@ stdenv.mkDerivation {
wrapProgram $out/bin/google-play-music-desktop-player \ wrapProgram $out/bin/google-play-music-desktop-player \
--prefix LD_LIBRARY_PATH : "$out/share/google-play-music-desktop-player" \ --prefix LD_LIBRARY_PATH : "$out/share/google-play-music-desktop-player" \
--prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath deps}" --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath deps}"
''; '';
meta = { meta = {
homepage = "https://www.googleplaymusicdesktopplayer.com/"; homepage = "https://www.googleplaymusicdesktopplayer.com/";
description = "A beautiful cross platform Desktop Player for Google Play Music"; description = "A beautiful cross platform Desktop Player for Google Play Music";
license = stdenv.lib.licenses.mit; license = lib.licenses.mit;
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
maintainers = [ stdenv.lib.maintainers.SuprDewd ]; maintainers = [ lib.maintainers.SuprDewd ];
}; };
} }

View file

@ -19,7 +19,7 @@ python3Packages.buildPythonApplication rec {
./disable-autoupdate.patch ./disable-autoupdate.patch
]; ];
postPatch = with stdenv.lib; '' postPatch = with lib; ''
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
''; '';

View file

@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Virtual Pipe Organ Software"; description = "Virtual Pipe Organ Software";
homepage = "https://sourceforge.net/projects/ourorgan"; homepage = "https://sourceforge.net/projects/ourorgan";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.puzzlewolf ]; maintainers = [ lib.maintainers.puzzlewolf ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pythonPackages, gettext, klick}: { lib, stdenv, fetchurl, pythonPackages, gettext, klick}:
pythonPackages.buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
pname = "gtklick"; pname = "gtklick";
@ -29,6 +29,6 @@ pythonPackages.buildPythonApplication rec {
meta = { meta = {
homepage = "http://das.nasophon.de/gtklick/"; homepage = "http://das.nasophon.de/gtklick/";
description = "Simple metronome with an easy-to-use GTK interface"; description = "Simple metronome with an easy-to-use GTK interface";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
}; };
} }

View file

@ -37,7 +37,7 @@
}: }:
let let
inherit (stdenv.lib) optional; inherit (lib) optional;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {

View file

@ -72,7 +72,7 @@
Simple arpeggiator Simple arpeggiator
Effects: Formant filter, stutter, delay Effects: Formant filter, stutter, delay
''; '';
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ maintainers.magnetophon ]; maintainers = [ maintainers.magnetophon ];
platforms = platforms.linux; platforms = platforms.linux;
}; };

View file

@ -22,7 +22,7 @@
qttools, qttools,
qtwebsockets, qtwebsockets,
rtaudio, rtaudio,
stdenv lib, stdenv
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -78,8 +78,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "An interactive sequencer for the intermedia arts"; description = "An interactive sequencer for the intermedia arts";
homepage = "http://i-score.org/"; homepage = "http://i-score.org/";
license = stdenv.lib.licenses.cecill20; license = lib.licenses.cecill20;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, alsaLib , alsaLib
, audiofile , audiofile
@ -43,8 +43,8 @@ stdenv.mkDerivation rec {
After a sound is rendered, it can be played and then saved to a .WAV file. After a sound is rendered, it can be played and then saved to a .WAV file.
''; '';
homepage = "https://sourceforge.net/projects/industrializer/"; homepage = "https://sourceforge.net/projects/industrializer/";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -26,6 +26,6 @@ stdenv.mkDerivation rec {
homepage = "http://archive.notam02.no/arkiv/src"; homepage = "http://archive.notam02.no/arkiv/src";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = [ maintainers.goibhniu ]; maintainers = [ maintainers.goibhniu ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -22,6 +22,6 @@ stdenv.mkDerivation rec {
homepage = "http://das.nasophon.de/jack_oscrolloscope"; homepage = "http://das.nasophon.de/jack_oscrolloscope";
license = licenses.gpl2; license = licenses.gpl2;
maintainers = [ maintainers.goibhniu ]; maintainers = [ maintainers.goibhniu ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, libjack2, ladspaH, gtk2, alsaLib, libxml2, lrdf }: { lib, stdenv, fetchurl, pkgconfig, libjack2, ladspaH, gtk2, alsaLib, libxml2, lrdf }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "jack-rack-1.4.7"; name = "jack-rack-1.4.7";
src = fetchurl { src = fetchurl {
@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
computer into an effects box. computer into an effects box.
''; '';
homepage = "http://jack-rack.sourceforge.net/"; homepage = "http://jack-rack.sourceforge.net/";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = [ stdenv.lib.maintainers.astsmtl ]; maintainers = [ lib.maintainers.astsmtl ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libjack2, pkgconfig }: { lib, stdenv, fetchurl, libjack2, pkgconfig }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "jackmeter-0.4"; name = "jackmeter-0.4";
@ -14,8 +14,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Console jack loudness meter"; description = "Console jack loudness meter";
homepage = "https://www.aelius.com/njh/jackmeter/"; homepage = "https://www.aelius.com/njh/jackmeter/";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.marcweber ]; maintainers = [ lib.maintainers.marcweber ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ mkDerivation, stdenv, fetchFromGitHub, fetchpatch, pkg-config, qtscript, qmake, libjack2 { mkDerivation, lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, qtscript, qmake, libjack2
}: }:
mkDerivation rec { mkDerivation rec {
@ -7,7 +7,7 @@ mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "corrados"; owner = "corrados";
repo = "jamulus"; repo = "jamulus";
rev = "r${stdenv.lib.replaceStrings [ "." ] [ "_" ] version}"; rev = "r${lib.replaceStrings [ "." ] [ "_" ] version}";
sha256 = "11rwgd2car7ziqa0vancb363m4ca94pj480jfxywd6d81139jl15"; sha256 = "11rwgd2car7ziqa0vancb363m4ca94pj480jfxywd6d81139jl15";
}; };
@ -20,8 +20,8 @@ mkDerivation rec {
description = "Enables musicians to perform real-time jam sessions over the internet"; description = "Enables musicians to perform real-time jam sessions over the internet";
longDescription = "You also need to enable JACK and should enable several real-time optimizations. See project website for details"; longDescription = "You also need to enable JACK and should enable several real-time optimizations. See project website for details";
homepage = "https://github.com/corrados/jamulus/wiki"; homepage = "https://github.com/corrados/jamulus/wiki";
license = stdenv.lib.licenses.gpl2; # linked in git repo, at least license = lib.licenses.gpl2; # linked in git repo, at least
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.seb314 ]; maintainers = [ lib.maintainers.seb314 ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, alsaLib, libjack2, fftwFloat, libclthreads, libclxclient, libX11, libXft, zita-alsa-pcmi, }: { lib, stdenv, fetchurl, alsaLib, libjack2, fftwFloat, libclthreads, libclxclient, libX11, libXft, zita-alsa-pcmi, }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.9.2"; version = "0.9.2";
@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "A 'perceptual' or 'psychoacoustic' audio spectrum analyser for JACK and ALSA"; description = "A 'perceptual' or 'psychoacoustic' audio spectrum analyser for JACK and ALSA";
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/index.html"; homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/index.html";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, sconsPackages, pkgconfig { lib, stdenv, fetchurl, sconsPackages, pkgconfig
, libsamplerate, libsndfile, liblo, libjack2, boost }: , libsamplerate, libsndfile, liblo, libjack2, boost }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://das.nasophon.de/klick/"; homepage = "http://das.nasophon.de/klick/";
description = "Advanced command-line metronome for JACK"; description = "Advanced command-line metronome for JACK";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }: { lib, stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ladspa-sdk"; pname = "ladspa-sdk";
version = "1.15"; version = "1.15";
@ -21,8 +21,8 @@ stdenv.mkDerivation rec {
three example programs (applyplugin, analyseplugin and listplugins). three example programs (applyplugin, analyseplugin and listplugins).
''; '';
homepage = "http://www.ladspa.org/ladspa_sdk/overview.html"; homepage = "http://www.ladspa.org/ladspa_sdk/overview.html";
license = stdenv.lib.licenses.lgpl2; license = lib.licenses.lgpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }: { lib, stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ladspa.h"; pname = "ladspa.h";
version = "1.15"; version = "1.15";
@ -19,8 +19,8 @@ stdenv.mkDerivation rec {
For the full SDK, use the ladspa-sdk package. For the full SDK, use the ladspa-sdk package.
''; '';
homepage = "http://www.ladspa.org/ladspa_sdk/overview.html"; homepage = "http://www.ladspa.org/ladspa_sdk/overview.html";
license = stdenv.lib.licenses.lgpl2; license = lib.licenses.lgpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.all; platforms = lib.platforms.all;
}; };
} }

View file

@ -17,7 +17,7 @@ rustPlatform.buildRustPackage rec {
cargoPatches = [ ./cargo-lock.patch ]; cargoPatches = [ ./cargo-lock.patch ];
cargoBuildFlags = with stdenv.lib; [ cargoBuildFlags = with lib; [
"--no-default-features" "--no-default-features"
"--features" "--features"
(concatStringsSep "," (filter (x: x != "") [ (concatStringsSep "," (filter (x: x != "") [
@ -31,9 +31,9 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ] ++ stdenv.lib.optional withALSA alsaLib buildInputs = [ openssl ] ++ lib.optional withALSA alsaLib
++ stdenv.lib.optional withPulseAudio libpulseaudio ++ lib.optional withPulseAudio libpulseaudio
++ stdenv.lib.optional withPortAudio portaudio; ++ lib.optional withPortAudio portaudio;
doCheck = false; doCheck = false;

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, pkg-config , pkg-config
, intltool , intltool
@ -31,15 +31,15 @@ stdenv.mkDerivation rec {
alsaLib alsaLib
libpulseaudio libpulseaudio
fftw fftw
] ++ stdenv.lib.optional jackSupport libjack2; ] ++ lib.optional jackSupport libjack2;
configureFlags = stdenv.lib.optional (!jackSupport) "--disable-jack"; configureFlags = lib.optional (!jackSupport) "--disable-jack";
meta = { meta = {
description = "Not a Guitar-Only tuner"; description = "Not a Guitar-Only tuner";
homepage = "https://www.nongnu.org/lingot/"; homepage = "https://www.nongnu.org/lingot/";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
platforms = with stdenv.lib.platforms; linux; platforms = with lib.platforms; linux;
maintainers = with stdenv.lib.maintainers; [ viric ]; maintainers = with lib.maintainers; [ viric ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig, MMA, libjack2, libsmf, python2Packages }: { lib, stdenv, fetchurl, makeWrapper, pkgconfig, MMA, libjack2, libsmf, python2Packages }:
let let
inherit (python2Packages) pyGtkGlade pygtksourceview python; inherit (python2Packages) pyGtkGlade pygtksourceview python;
@ -30,8 +30,8 @@ in stdenv.mkDerivation rec {
meta = { meta = {
description = "A GUI front-end for MMA: Type in the chords, choose the groove and it will play an accompaniment"; description = "A GUI front-end for MMA: Type in the chords, choose the groove and it will play an accompaniment";
homepage = "http://linuxband.org/"; homepage = "http://linuxband.org/";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -20,8 +20,8 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
SDL SDL
] ]
++ stdenv.lib.optional stdenv.isDarwin Foundation ++ lib.optional stdenv.isDarwin Foundation
++ stdenv.lib.optional stdenv.isLinux jack2; ++ lib.optional stdenv.isLinux jack2;
patches = [ patches = [
# Remove outdated (pre-64bit) checks that would fail on modern platforms # Remove outdated (pre-64bit) checks that would fail on modern platforms
@ -32,13 +32,13 @@ stdenv.mkDerivation rec {
preBuild = "cd projects"; preBuild = "cd projects";
makeFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ] makeFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ]
++ stdenv.lib.optionals stdenv.isLinux [ "PLATFORM=DEB" ] ++ lib.optionals stdenv.isLinux [ "PLATFORM=DEB" ]
++ stdenv.lib.optionals stdenv.isDarwin [ "PLATFORM=OSX" ]; ++ lib.optionals stdenv.isDarwin [ "PLATFORM=OSX" ];
NIX_CFLAGS_COMPILE = [ "-fpermissive" ] ++ NIX_CFLAGS_COMPILE = [ "-fpermissive" ] ++
stdenv.lib.optional stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing"; lib.optional stdenv.hostPlatform.isAarch64 "-Wno-error=narrowing";
NIX_LDFLAGS = stdenv.lib.optional stdenv.isDarwin "-framework Foundation"; NIX_LDFLAGS = lib.optional stdenv.isDarwin "-framework Foundation";
installPhase = let extension = if stdenv.isDarwin then "app" else "deb-exe"; installPhase = let extension = if stdenv.isDarwin then "app" else "deb-exe";
in "install -Dm555 lgpt.${extension} $out/bin/lgpt"; in "install -Dm555 lgpt.${extension} $out/bin/lgpt";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, makeWrapper { lib, stdenv, fetchFromGitHub, pkgconfig, makeWrapper
, libsndfile, jack2Full , libsndfile, jack2Full
, libGLU, libGL, lv2, cairo , libGLU, libGL, lv2, cairo
, ladspaH, php }: , ladspaH, php }:
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
buildFlags = [ "release" ]; buildFlags = [ "release" ];
meta = with stdenv.lib; meta = with lib;
{ description = "Collection of open-source audio plugins"; { description = "Collection of open-source audio plugins";
longDescription = '' longDescription = ''
Compatible with follwing formats: Compatible with follwing formats:

View file

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "A compressor with character. For jack and lv2"; description = "A compressor with character. For jack and lv2";
homepage = "https://github.com/magnetophon/CharacterCompressor"; homepage = "https://github.com/magnetophon/CharacterCompressor";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
}; };
} }

View file

@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "A group of compressors mixed into a bus, sidechained from that mix bus. For jack and lv2"; description = "A group of compressors mixed into a bus, sidechained from that mix bus. For jack and lv2";
homepage = "https://github.com/magnetophon/CompBus"; homepage = "https://github.com/magnetophon/CompBus";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
}; };
} }

View file

@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "A chorus algorithm that maintains constant and symmetric detuning depth (in cents), regardless of modulation rate. For jack and lv2"; description = "A chorus algorithm that maintains constant and symmetric detuning depth (in cents), regardless of modulation rate. For jack and lv2";
homepage = "https://github.com/magnetophon/constant-detune-chorus"; homepage = "https://github.com/magnetophon/constant-detune-chorus";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
}; };
} }

View file

@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "A fast yet clean lookahead limiter for jack and lv2"; description = "A fast yet clean lookahead limiter for jack and lv2";
homepage = "https://magnetophon.github.io/LazyLimiter/"; homepage = "https://magnetophon.github.io/LazyLimiter/";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
}; };
} }

View file

@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Mid-side multiband distortion for jack and lv2"; description = "Mid-side multiband distortion for jack and lv2";
homepage = "https://github.com/magnetophon/MBdistortion"; homepage = "https://github.com/magnetophon/MBdistortion";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
}; };
} }

View file

@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Tap a rhythm into your delay! For jack and lv2"; description = "Tap a rhythm into your delay! For jack and lv2";
homepage = "https://github.com/magnetophon/RhythmDelay"; homepage = "https://github.com/magnetophon/RhythmDelay";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
}; };
} }

View file

@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Turn your voice into a synthesizer"; description = "Turn your voice into a synthesizer";
homepage = "https://github.com/magnetophon/VoiceOfFaust"; homepage = "https://github.com/magnetophon/VoiceOfFaust";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
}; };
} }

View file

@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "A collection of bread and butter compressors"; description = "A collection of bread and butter compressors";
homepage = "https://github.com/magnetophon/faustCompressors"; homepage = "https://github.com/magnetophon/faustCompressors";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
}; };
} }

View file

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Some simple utility lv2 plugins"; description = "Some simple utility lv2 plugins";
homepage = "https://github.com/magnetophon/pluginUtils"; homepage = "https://github.com/magnetophon/pluginUtils";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
}; };
} }

View file

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "A multiband compressor made from shelving filters."; description = "A multiband compressor made from shelving filters.";
homepage = "https://github.com/magnetophon/shelfMultiBand"; homepage = "https://github.com/magnetophon/shelfMultiBand";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig { lib, stdenv, fetchurl, pkgconfig
, lv2, libGLU, libGL, gtk2, cairo, pango, fftwFloat, libjack2 }: , lv2, libGLU, libGL, gtk2, cairo, pango, fftwFloat, libjack2 }:
let let
@ -36,7 +36,7 @@ stdenv.mkDerivation {
preConfigure = "makeFlagsArray=( PREFIX=$out )"; preConfigure = "makeFlagsArray=( PREFIX=$out )";
meter_VERSION = version; meter_VERSION = version;
meta = with stdenv.lib; meta = with lib;
{ description = "Collection of audio level meters with GUI in LV2 plugin format"; { description = "Collection of audio level meters with GUI in LV2 plugin format";
homepage = "http://x42.github.io/meters.lv2/"; homepage = "http://x42.github.io/meters.lv2/";
maintainers = with maintainers; [ ehmry ]; maintainers = with maintainers; [ ehmry ];

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl}: {lib, stdenv, fetchurl}:
let let
s = # Generated upstream information s = # Generated upstream information
rec { rec {
@ -33,9 +33,9 @@ stdenv.mkDerivation {
meta = { meta = {
inherit (s) version; inherit (s) version;
description = "MIDI to Lilypond converter"; description = "MIDI to Lilypond converter";
license = stdenv.lib.licenses.gpl2Plus ; license = lib.licenses.gpl2Plus ;
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
broken = true; # 2018-04-11 broken = true; # 2018-04-11
}; };
} }

View file

@ -47,8 +47,8 @@ in stdenv.mkDerivation {
cp bin/Debug/MidiSheetMusic.exe $out/bin/.MidiSheetMusic.exe cp bin/Debug/MidiSheetMusic.exe $out/bin/.MidiSheetMusic.exe
makeWrapper ${mono}/bin/mono $out/bin/midisheetmusic.mono.exe \ makeWrapper ${mono}/bin/mono $out/bin/midisheetmusic.mono.exe \
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ gtk2 cups ]} \ --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gtk2 cups ]} \
--prefix PATH : ${stdenv.lib.makeBinPath [ timidity ]} \ --prefix PATH : ${lib.makeBinPath [ timidity ]} \
--add-flags $out/bin/.MidiSheetMusic.exe --add-flags $out/bin/.MidiSheetMusic.exe
''; '';

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libmikmod, ncurses }: { lib, stdenv, fetchurl, libmikmod, ncurses }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "mikmod-3.2.8"; name = "mikmod-3.2.8";
@ -13,8 +13,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Tracker music player for the terminal"; description = "Tracker music player for the terminal";
homepage = "http://mikmod.shlomifish.org/"; homepage = "http://mikmod.shlomifish.org/";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = with stdenv.lib.maintainers; [ ]; maintainers = with lib.maintainers; [ ];
platforms = with stdenv.lib.platforms; linux; platforms = with lib.platforms; linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ config, stdenv, autoreconfHook, fetchFromGitHub, pkgconfig { config, lib, stdenv, autoreconfHook, fetchFromGitHub, pkgconfig
, alsaLib, libtool, icu , alsaLib, libtool, icu
, pulseaudioSupport ? config.pulseaudio or false, libpulseaudio }: , pulseaudioSupport ? config.pulseaudio or false, libpulseaudio }:
@ -22,13 +22,13 @@ stdenv.mkDerivation rec {
alsaLib alsaLib
libtool libtool
icu icu
] ++ stdenv.lib.optional pulseaudioSupport libpulseaudio; ] ++ lib.optional pulseaudioSupport libpulseaudio;
meta = { meta = {
description = "Mycroft's TTS engine, based on CMU's Flite (Festival Lite)"; description = "Mycroft's TTS engine, based on CMU's Flite (Festival Lite)";
homepage = "https://mimic.mycroft.ai/"; homepage = "https://mimic.mycroft.ai/";
license = stdenv.lib.licenses.free; license = lib.licenses.free;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.noneucat ]; maintainers = [ lib.maintainers.noneucat ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ fetchurl, stdenv, pythonPackages, libmms }: { fetchurl, lib, stdenv, pythonPackages, libmms }:
pythonPackages.buildPythonApplication rec { pythonPackages.buildPythonApplication rec {
pname = "mimms"; pname = "mimms";
@ -16,7 +16,7 @@ pythonPackages.buildPythonApplication rec {
meta = { meta = {
homepage = "https://savannah.nongnu.org/projects/mimms/"; homepage = "https://savannah.nongnu.org/projects/mimms/";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
description = "An mms (e.g. mms://) stream downloader"; description = "An mms (e.g. mms://) stream downloader";
longDescription = '' longDescription = ''

View file

@ -25,7 +25,7 @@
}: }:
let let
opt = stdenv.lib.optional; opt = lib.optional;
mkFlag = c: f: if c then "--with-${f}" else "--without-${f}"; mkFlag = c: f: if c then "--with-${f}" else "--without-${f}";
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
@ -57,7 +57,7 @@ in stdenv.mkDerivation rec {
++ opt midiSupport timidity ++ opt midiSupport timidity
++ opt modplugSupport libmodplug ++ opt modplugSupport libmodplug
++ opt mp3Support libmad ++ opt mp3Support libmad
++ stdenv.lib.optionals musepackSupport [ libmpc libmpcdec taglib ] ++ lib.optionals musepackSupport [ libmpc libmpcdec taglib ]
++ opt vorbisSupport libvorbis ++ opt vorbisSupport libvorbis
++ opt speexSupport speex ++ opt speexSupport speex
++ opt (ffmpegSupport && !withffmpeg4) ffmpeg_3 ++ opt (ffmpegSupport && !withffmpeg4) ffmpeg_3

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, faust2jaqt, faust2lv2 }: { lib, stdenv, fetchFromGitHub, faust2jaqt, faust2lv2 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mooSpace"; pname = "mooSpace";
version = "unstable-2020-06-10"; version = "unstable-2020-06-10";
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Variable reverb audio effect, jack and lv2"; description = "Variable reverb audio effect, jack and lv2";
homepage = "https://github.com/modularev/mooSpace"; homepage = "https://github.com/modularev/mooSpace";
license = stdenv.lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
}; };
} }

View file

@ -32,7 +32,7 @@ pythonPackages.buildPythonApplication rec {
requests requests
setuptools setuptools
tornado tornado
] ++ stdenv.lib.optional (!stdenv.isDarwin) dbus-python ] ++ lib.optional (!stdenv.isDarwin) dbus-python
); );
# There are no tests # There are no tests

View file

@ -14,11 +14,11 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
ncurses ncurses
libvorbis libvorbis
] ++ stdenv.lib.optional stdenv.isDarwin SDL; ] ++ lib.optional stdenv.isDarwin SDL;
NIX_CFLAGS_COMPILE = toString ([ NIX_CFLAGS_COMPILE = toString ([
"-Wno-narrowing" "-Wno-narrowing"
] ++ stdenv.lib.optionals stdenv.cc.isClang [ ] ++ lib.optionals stdenv.cc.isClang [
"-Wno-reserved-user-defined-literal" "-Wno-reserved-user-defined-literal"
]); ]);

View file

@ -1,4 +1,4 @@
{ fetchurl, stdenv, ncurses, pkgconfig, gtk2 }: { fetchurl, lib, stdenv, ncurses, pkgconfig, gtk2 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "mp3info-0.8.5a"; name = "mp3info-0.8.5a";
@ -37,9 +37,9 @@ stdenv.mkDerivation rec {
homepage = "http://www.ibiblio.org/mp3info/"; homepage = "http://www.ibiblio.org/mp3info/";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = [ ]; maintainers = [ ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }: { lib, stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mp3val"; pname = "mp3val";
@ -30,8 +30,8 @@ stdenv.mkDerivation rec {
common types of tags (ID3v1, ID3v2, APEv2). common types of tags (ID3v1, ID3v2, APEv2).
''; '';
homepage = "http://mp3val.sourceforge.net/index.shtml"; homepage = "http://mp3val.sourceforge.net/index.shtml";
license = stdenv.lib.licenses.gpl2; license = lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.devhell ]; maintainers = [ lib.maintainers.devhell ];
}; };
} }

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "1qbi0i9cq54rj8z2kapk8x8g1jkw2jz781niwb9i7kw4xfhvy5zx"; sha256 = "1qbi0i9cq54rj8z2kapk8x8g1jkw2jz781niwb9i7kw4xfhvy5zx";
}; };
buildInputs = [ mpd_clientlib ] ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv ]; buildInputs = [ mpd_clientlib ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
nativeBuildInputs = [ meson ninja pkgconfig sphinx ]; nativeBuildInputs = [ meson ninja pkgconfig sphinx ];

View file

@ -1,4 +1,4 @@
{ fetchurl, stdenv, gettext, libmpcdec, libao }: { fetchurl, lib, stdenv, gettext, libmpcdec, libao }:
let version = "0.2.4"; in let version = "0.2.4"; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -25,9 +25,9 @@ stdenv.mkDerivation rec {
description = "A Musepack (.mpc) audio player"; description = "A Musepack (.mpc) audio player";
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = [ ]; maintainers = [ ];
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, makeWrapper , makeWrapper
@ -18,9 +18,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ perl ] ++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib; buildInputs = [ perl ] ++ lib.optional (!stdenv.isDarwin) alsaLib;
configureFlags = stdenv.lib.optional configureFlags = lib.optional
(stdenv.hostPlatform ? mpg123) (stdenv.hostPlatform ? mpg123)
"--with-cpu=${stdenv.hostPlatform.mpg123.cpu}"; "--with-cpu=${stdenv.hostPlatform.mpg123.cpu}";
@ -41,8 +41,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Fast console MPEG Audio Player and decoder library"; description = "Fast console MPEG Audio Player and decoder library";
homepage = "http://mpg123.org"; homepage = "http://mpg123.org";
license = stdenv.lib.licenses.lgpl21; license = lib.licenses.lgpl21;
maintainers = [ stdenv.lib.maintainers.ftrvxmtrx ]; maintainers = [ lib.maintainers.ftrvxmtrx ];
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} }

View file

@ -25,11 +25,11 @@ stdenv.mkDerivation rec {
configureFlags = configureFlags =
[ ("--enable-alsa=" + (if stdenv.isLinux then "yes" else "no")) ] [ ("--enable-alsa=" + (if stdenv.isLinux then "yes" else "no")) ]
++ (stdenv.lib.optional (defaultAudio != null) ++ (lib.optional (defaultAudio != null)
"--with-default-audio=${defaultAudio}"); "--with-default-audio=${defaultAudio}");
buildInputs = [libao libid3tag libmad zlib] buildInputs = [libao libid3tag libmad zlib]
++ stdenv.lib.optional stdenv.isLinux alsaLib; ++ lib.optional stdenv.isLinux alsaLib;
installTargets = [ "install" "install-man" ]; installTargets = [ "install" "install-man" ];

View file

@ -15,7 +15,7 @@ in mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = with stdenv.lib.versions; "libmt32emu_${major version}_${minor version}_${patch version}"; rev = with lib.versions; "libmt32emu_${major version}_${minor version}_${patch version}";
sha256 = "0bszhkbz24hhx32f973l6h5lkyn4lxhqrckiwmv765d1sba8n5bk"; sha256 = "0bszhkbz24hhx32f973l6h5lkyn4lxhqrckiwmv765d1sba8n5bk";
}; };

View file

@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
ncurses ncurses
pulseaudio pulseaudio
taglib taglib
] ++ stdenv.lib.optional systemdSupport systemd; ] ++ lib.optional systemdSupport systemd;
cmakeFlags = [ cmakeFlags = [
"-DDISABLE_STRIP=true" "-DDISABLE_STRIP=true"

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, pkg-config , pkg-config
@ -46,8 +46,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "https://jcorporation.github.io/mympd"; homepage = "https://jcorporation.github.io/mympd";
description = "A standalone and mobile friendly web mpd client with a tiny footprint and advanced features"; description = "A standalone and mobile friendly web mpd client with a tiny footprint and advanced features";
maintainers = [ stdenv.lib.maintainers.doronbehar ]; maintainers = [ lib.maintainers.doronbehar ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
}; };
} }

View file

@ -4,7 +4,7 @@
, pcre ? null , pcre ? null
}: }:
with stdenv.lib; with lib;
assert pcreSupport -> pcre != null; assert pcreSupport -> pcre != null;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost, mpd_clientlib, ncurses, pkgconfig, readline { lib, stdenv, fetchurl, boost, mpd_clientlib, ncurses, pkgconfig, readline
, libiconv, icu, curl , libiconv, icu, curl
, outputsSupport ? true # outputs screen , outputsSupport ? true # outputs screen
, visualizerSupport ? false, fftw ? null # visualizer screen , visualizerSupport ? false, fftw ? null # visualizer screen
@ -9,7 +9,7 @@
assert visualizerSupport -> (fftw != null); assert visualizerSupport -> (fftw != null);
assert taglibSupport -> (taglib != null); assert taglibSupport -> (taglib != null);
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ncmpcpp"; pname = "ncmpcpp";
version = "0.9.1"; version = "0.9.1";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, python2, cairo, libjpeg, ntk, libjack2 { lib, stdenv, fetchFromGitHub, pkgconfig, python2, cairo, libjpeg, ntk, libjack2
, libsndfile, ladspaH, liblo, libsigcxx, lrdf, wafHook , libsndfile, ladspaH, liblo, libsigcxx, lrdf, wafHook
}: }:
@ -20,8 +20,8 @@ stdenv.mkDerivation {
meta = { meta = {
description = "Lightweight and lightning fast modular Digital Audio Workstation"; description = "Lightweight and lightning fast modular Digital Audio Workstation";
homepage = "http://non.tuxfamily.org"; homepage = "http://non.tuxfamily.org";
license = stdenv.lib.licenses.lgpl21; license = lib.licenses.lgpl21;
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.nico202 ]; maintainers = [ lib.maintainers.nico202 ];
}; };
} }

View file

@ -17,9 +17,9 @@ in stdenv.mkDerivation {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ zlib mpg123 libogg libvorbis portaudio libsndfile flac ] buildInputs = [ zlib mpg123 libogg libvorbis portaudio libsndfile flac ]
++ stdenv.lib.optional usePulseAudio libpulseaudio; ++ lib.optional usePulseAudio libpulseaudio;
configureFlags = stdenv.lib.optional (!usePulseAudio) "--without-pulseaudio"; configureFlags = lib.optional (!usePulseAudio) "--without-pulseaudio";
meta = with lib; { meta = with lib; {
description = "A cross-platform command-line based module file player"; description = "A cross-platform command-line based module file player";

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, libogg, libao, pkgconfig, flac, opusfile, libopusenc}: {lib, stdenv, fetchurl, libogg, libao, pkgconfig, flac, opusfile, libopusenc}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "opus-tools-0.2"; name = "opus-tools-0.2";
@ -13,8 +13,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Tools to work with opus encoded audio streams"; description = "Tools to work with opus encoded audio streams";
homepage = "https://www.opus-codec.org/"; homepage = "https://www.opus-codec.org/";
license = stdenv.lib.licenses.bsd2; license = lib.licenses.bsd2;
maintainers = with stdenv.lib.maintainers; [ ]; maintainers = with lib.maintainers; [ ];
platforms = with stdenv.lib.platforms; unix; platforms = with lib.platforms; unix;
}; };
} }

Some files were not shown because too many files have changed in this diff Show more