pkgs/development/libraries: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob 2021-01-22 00:00:13 +07:00 committed by Jonathan Ringer
parent 046d24424e
commit 66e44425c6
1770 changed files with 4913 additions and 4912 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip, xorg, libGLU, libGL }: { lib, stdenv, fetchurl, unzip, xorg, libGLU, libGL }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "AntTweakBar-1.16"; name = "AntTweakBar-1.16";
@ -26,8 +26,8 @@ stdenv.mkDerivation {
to interactively tweak parameters on-screen to interactively tweak parameters on-screen
''; '';
homepage = "http://anttweakbar.sourceforge.net/"; homepage = "http://anttweakbar.sourceforge.net/";
license = stdenv.lib.licenses.zlib; license = lib.licenses.zlib;
maintainers = [ stdenv.lib.maintainers.razvan ]; maintainers = [ lib.maintainers.razvan ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, boost, gmp, mpfr }: { lib, stdenv, fetchFromGitHub, cmake, boost, gmp, mpfr }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "4.14.2"; version = "4.14.2";
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
doCheck = false; doCheck = false;
meta = with stdenv.lib; { meta = with lib; {
description = "Computational Geometry Algorithms Library"; description = "Computational Geometry Algorithms Library";
homepage = "http://cgal.org"; homepage = "http://cgal.org";
license = with licenses; [ gpl3Plus lgpl3Plus]; license = with licenses; [ gpl3Plus lgpl3Plus];

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, boost , boost
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
doCheck = false; doCheck = false;
meta = with stdenv.lib; { meta = with lib; {
description = "Computational Geometry Algorithms Library"; description = "Computational Geometry Algorithms Library";
homepage = "http://cgal.org"; homepage = "http://cgal.org";
license = with licenses; [ gpl3Plus lgpl3Plus]; license = with licenses; [ gpl3Plus lgpl3Plus];

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }: { lib, stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "CoinMP"; pname = "CoinMP";
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://projects.coin-or.org/CoinMP/"; homepage = "https://projects.coin-or.org/CoinMP/";
description = "COIN-OR lightweight API for COIN-OR libraries CLP, CBC, and CGL"; description = "COIN-OR lightweight API for COIN-OR libraries CLP, CBC, and CGL";
platforms = platforms.unix; platforms = platforms.unix;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake }: { lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "LAStools"; pname = "LAStools";
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
cmake cmake
]; ];
meta = with stdenv.lib; { meta = with lib; {
description = "Software for rapid LiDAR processing"; description = "Software for rapid LiDAR processing";
homepage = http://lastools.org/; homepage = http://lastools.org/;
license = licenses.unfree; license = licenses.unfree;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake }: { lib, stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.2.0"; version = "2.2.0";
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
meta = with stdenv.lib; { meta = with lib; {
description = "Turn quickly bulky LAS files into compact LAZ files without information loss"; description = "Turn quickly bulky LAS files into compact LAZ files without information loss";
homepage = "https://laszip.org"; homepage = "https://laszip.org";
license = licenses.lgpl2; license = licenses.lgpl2;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake }: { lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "3.4.3"; version = "3.4.3";
@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Turn quickly bulky LAS files into compact LAZ files without information loss"; description = "Turn quickly bulky LAS files into compact LAZ files without information loss";
homepage = "https://laszip.org"; homepage = "https://laszip.org";
license = stdenv.lib.licenses.lgpl2; license = lib.licenses.lgpl2;
maintainers = [ stdenv.lib.maintainers.michelk ]; maintainers = [ lib.maintainers.michelk ];
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake }: { lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "NSPlist-713decf"; name = "NSPlist-713decf";
@ -12,7 +12,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
meta = with stdenv.lib; { meta = with lib; {
maintainers = with maintainers; [ matthewbauer ]; maintainers = with maintainers; [ matthewbauer ];
description = "Parses .plist files"; description = "Parses .plist files";
license = licenses.mit; license = licenses.mit;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, boost, NSPlist, pugixml }: { lib, stdenv, fetchFromGitHub, cmake, boost, NSPlist, pugixml }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "PlistCpp-11615d"; name = "PlistCpp-11615d";
@ -13,7 +13,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ boost NSPlist pugixml ]; buildInputs = [ boost NSPlist pugixml ];
meta = with stdenv.lib; { meta = with lib; {
maintainers = with maintainers; [ matthewbauer ]; maintainers = with maintainers; [ matthewbauer ];
description = "CPP bindings for Plist"; description = "CPP bindings for Plist";
license = licenses.mit; license = licenses.mit;

View file

@ -1,5 +1,5 @@
{ stdenv, config, fetchurl, fetchpatch, pkg-config, audiofile, libcap, libiconv { lib, stdenv, config, fetchurl, fetchpatch, pkg-config, audiofile, libcap, libiconv
, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms , libGLSupported ? lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
, openglSupport ? libGLSupported, libGL, libGLU , openglSupport ? libGLSupported, libGL, libGLU
, alsaSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid, alsaLib , alsaSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid, alsaLib
, x11Support ? !stdenv.isCygwin && !stdenv.hostPlatform.isAndroid , x11Support ? !stdenv.isCygwin && !stdenv.hostPlatform.isAndroid
@ -11,7 +11,7 @@
# NOTE: When editing this expression see if the same change applies to # NOTE: When editing this expression see if the same change applies to
# SDL2 expression too # SDL2 expression too
with stdenv.lib; with lib;
let let
extraPropagatedBuildInputs = [ ] extraPropagatedBuildInputs = [ ]
@ -124,7 +124,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with lib; {
description = "A cross-platform multimedia library"; description = "A cross-platform multimedia library";
homepage = "http://www.libsdl.org/"; homepage = "http://www.libsdl.org/";
maintainers = with maintainers; [ lovek323 ]; maintainers = with maintainers; [ lovek323 ];

View file

@ -1,5 +1,5 @@
{ stdenv, config, fetchurl, pkg-config { lib, stdenv, config, fetchurl, pkg-config
, libGLSupported ? stdenv.lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms , libGLSupported ? lib.elem stdenv.hostPlatform.system stdenv.lib.platforms.mesaPlatforms
, openglSupport ? libGLSupported, libGL , openglSupport ? libGLSupported, libGL
, alsaSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid, alsaLib , alsaSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid, alsaLib
, x11Support ? !stdenv.isCygwin && !stdenv.hostPlatform.isAndroid , x11Support ? !stdenv.isCygwin && !stdenv.hostPlatform.isAndroid
@ -21,7 +21,7 @@
# NOTE: When editing this expression see if the same change applies to # NOTE: When editing this expression see if the same change applies to
# SDL expression too # SDL expression too
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL2"; pname = "SDL2";
@ -126,7 +126,7 @@ stdenv.mkDerivation rec {
passthru = { inherit openglSupport; }; passthru = { inherit openglSupport; };
meta = with stdenv.lib; { meta = with lib; {
description = "A cross-platform multimedia library"; description = "A cross-platform multimedia library";
homepage = "http://www.libsdl.org/"; homepage = "http://www.libsdl.org/";
license = licenses.zlib; license = licenses.zlib;

View file

@ -1,4 +1,4 @@
{ stdenv, darwin, fetchurl, SDL2 }: { lib, stdenv, darwin, fetchurl, SDL2 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL2_gfx"; pname = "SDL2_gfx";
@ -10,12 +10,12 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ SDL2 ] buildInputs = [ SDL2 ]
++ stdenv.lib.optional stdenv.isDarwin darwin.libobjc; ++ lib.optional stdenv.isDarwin darwin.libobjc;
configureFlags = [(if stdenv.isi686 || stdenv.isx86_64 then "--enable-mmx" else "--disable-mmx")] configureFlags = [(if stdenv.isi686 || stdenv.isx86_64 then "--enable-mmx" else "--disable-mmx")]
++ stdenv.lib.optional stdenv.isDarwin "--disable-sdltest"; ++ lib.optional stdenv.isDarwin "--disable-sdltest";
meta = with stdenv.lib; { meta = with lib; {
description = "SDL graphics drawing primitives and support functions"; description = "SDL graphics drawing primitives and support functions";
longDescription = '' longDescription = ''

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL2, libpng, libjpeg, libtiff, libungif, libwebp, libXpm, zlib, Foundation }: { lib, stdenv, fetchurl, SDL2, libpng, libjpeg, libtiff, libungif, libwebp, libXpm, zlib, Foundation }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL2_image"; pname = "SDL2_image";
@ -10,14 +10,14 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ SDL2 libpng libjpeg libtiff libungif libwebp libXpm zlib ] buildInputs = [ SDL2 libpng libjpeg libtiff libungif libwebp libXpm zlib ]
++ stdenv.lib.optional stdenv.isDarwin Foundation; ++ lib.optional stdenv.isDarwin Foundation;
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest"; configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with lib; {
description = "SDL image library"; description = "SDL image library";
homepage = "http://www.libsdl.org/projects/SDL_image/"; homepage = "http://www.libsdl.org/projects/SDL_image/";
platforms = platforms.unix; platforms = platforms.unix;

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, pkg-config , pkg-config
, AudioToolbox , AudioToolbox
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ buildInputs = lib.optionals stdenv.isDarwin [
AudioToolbox AudioToolbox
AudioUnit AudioUnit
CoreServices CoreServices
@ -51,12 +51,12 @@ stdenv.mkDerivation rec {
"--disable-music-mp3-mpg123-shared" "--disable-music-mp3-mpg123-shared"
"--disable-music-opus-shared" "--disable-music-opus-shared"
"--disable-music-midi-fluidsynth-shared" "--disable-music-midi-fluidsynth-shared"
] ++ stdenv.lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
"--disable-sdltest" "--disable-sdltest"
"--disable-smpegtest" "--disable-smpegtest"
]; ];
meta = with stdenv.lib; { meta = with lib; {
description = "SDL multi-channel audio mixer library"; description = "SDL multi-channel audio mixer library";
platforms = platforms.unix; platforms = platforms.unix;
homepage = "https://www.libsdl.org/projects/SDL_mixer/"; homepage = "https://www.libsdl.org/projects/SDL_mixer/";

View file

@ -1,4 +1,4 @@
{ stdenv, darwin, fetchurl, SDL2 }: { lib, stdenv, darwin, fetchurl, SDL2 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL2_net"; pname = "SDL2_net";
@ -9,13 +9,13 @@ stdenv.mkDerivation rec {
sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm"; sha256 = "08cxc1bicmyk89kiks7izw1rlx5ng5n6xpy8fy0zxni3b9z8mkhm";
}; };
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.libobjc; buildInputs = lib.optional stdenv.isDarwin darwin.libobjc;
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest"; configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
propagatedBuildInputs = [ SDL2 ]; propagatedBuildInputs = [ SDL2 ];
meta = with stdenv.lib; { meta = with lib; {
description = "SDL multiplatform networking library"; description = "SDL multiplatform networking library";
homepage = "https://www.libsdl.org/projects/SDL_net"; homepage = "https://www.libsdl.org/projects/SDL_net";
license = licenses.zlib; license = licenses.zlib;

View file

@ -1,4 +1,4 @@
{ stdenv, darwin, fetchurl, SDL2, freetype, libGL }: { lib, stdenv, darwin, fetchurl, SDL2, freetype, libGL }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL2_ttf"; pname = "SDL2_ttf";
@ -9,12 +9,12 @@ stdenv.mkDerivation rec {
sha256 = "0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59"; sha256 = "0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59";
}; };
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest"; configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
buildInputs = [ SDL2 freetype libGL ] buildInputs = [ SDL2 freetype libGL ]
++ stdenv.lib.optional stdenv.isDarwin darwin.libobjc; ++ lib.optional stdenv.isDarwin darwin.libobjc;
meta = with stdenv.lib; { meta = with lib; {
description = "SDL TrueType library"; description = "SDL TrueType library";
platforms = platforms.unix; platforms = platforms.unix;
license = licenses.zlib; license = licenses.zlib;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchpatch, fetchurl, SDL, autoreconfHook, pango, pkg-config }: { lib, stdenv, fetchpatch, fetchurl, SDL, autoreconfHook, pango, pkg-config }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL_Pango"; pname = "SDL_Pango";
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config autoreconfHook ]; nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [ SDL pango ]; buildInputs = [ SDL pango ];
meta = with stdenv.lib; { meta = with lib; {
description = "Connects the Pango rendering engine to SDL"; description = "Connects the Pango rendering engine to SDL";
license = licenses.lgpl21Plus; license = licenses.lgpl21Plus;
platforms = platforms.all; platforms = platforms.all;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL }: { lib, stdenv, fetchurl, SDL }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL_gfx"; pname = "SDL_gfx";
@ -12,9 +12,9 @@ stdenv.mkDerivation rec {
buildInputs = [ SDL ] ; buildInputs = [ SDL ] ;
configureFlags = [ "--disable-mmx" ] configureFlags = [ "--disable-mmx" ]
++ stdenv.lib.optional stdenv.isDarwin "--disable-sdltest"; ++ lib.optional stdenv.isDarwin "--disable-sdltest";
meta = with stdenv.lib; { meta = with lib; {
description = "SDL graphics drawing primitives and support functions"; description = "SDL graphics drawing primitives and support functions";
longDescription = '' longDescription = ''

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, SDL2, libGLU }: { lib, stdenv, fetchFromGitHub, cmake, SDL2, libGLU }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "SDL_gpu-unstable"; pname = "SDL_gpu-unstable";
@ -26,7 +26,7 @@ stdenv.mkDerivation {
sed -ie '213s#''${OUTPUT_DIR}/lib#''${CMAKE_INSTALL_LIBDIR}#' src/CMakeLists.txt sed -ie '213s#''${OUTPUT_DIR}/lib#''${CMAKE_INSTALL_LIBDIR}#' src/CMakeLists.txt
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "A library for high-performance, modern 2D graphics with SDL written in C"; description = "A library for high-performance, modern 2D graphics with SDL written in C";
homepage = "https://github.com/grimfang4/sdl-gpu"; homepage = "https://github.com/grimfang4/sdl-gpu";
license = licenses.mit; license = licenses.mit;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, SDL, libpng, libjpeg, libtiff, libungif, libXpm }: { lib, stdenv, fetchurl, fetchpatch, SDL, libpng, libjpeg, libtiff, libungif, libXpm }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL_image"; pname = "SDL_image";
@ -22,11 +22,11 @@ stdenv.mkDerivation rec {
"--disable-jpg-shared" "--disable-jpg-shared"
"--disable-png-shared" "--disable-png-shared"
"--disable-tif-shared" "--disable-tif-shared"
] ++ stdenv.lib.optional stdenv.isDarwin "--disable-sdltest"; ] ++ lib.optional stdenv.isDarwin "--disable-sdltest";
buildInputs = [ SDL libpng libjpeg libtiff libungif libXpm ]; buildInputs = [ SDL libpng libjpeg libtiff libungif libXpm ];
meta = with stdenv.lib; { meta = with lib; {
description = "SDL image library"; description = "SDL image library";
homepage = "http://www.libsdl.org/projects/SDL_image/"; homepage = "http://www.libsdl.org/projects/SDL_image/";
maintainers = with maintainers; [ lovek323 ]; maintainers = with maintainers; [ lovek323 ];

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl" ++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl"
++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ]; ++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ];
meta = with stdenv.lib; { meta = with lib; {
description = "SDL multi-channel audio mixer library"; description = "SDL multi-channel audio mixer library";
homepage = "http://www.libsdl.org/projects/SDL_mixer/"; homepage = "http://www.libsdl.org/projects/SDL_mixer/";
maintainers = with maintainers; [ lovek323 ]; maintainers = with maintainers; [ lovek323 ];

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL }: { lib, stdenv, fetchurl, SDL }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL_net"; pname = "SDL_net";
@ -9,11 +9,11 @@ stdenv.mkDerivation rec {
sha256 = "1d5c9xqlf4s1c01gzv6cxmg0r621pq9kfgxcg3197xw4p25pljjz"; sha256 = "1d5c9xqlf4s1c01gzv6cxmg0r621pq9kfgxcg3197xw4p25pljjz";
}; };
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest"; configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
propagatedBuildInputs = [ SDL ]; propagatedBuildInputs = [ SDL ];
meta = with stdenv.lib; { meta = with lib; {
description = "SDL networking library"; description = "SDL networking library";
platforms = platforms.unix; platforms = platforms.unix;
license = licenses.zlib; license = licenses.zlib;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkg-config, libsixel }: { lib, stdenv, fetchFromGitHub, pkg-config, libsixel }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "SDL_sixel"; pname = "SDL_sixel";
@ -16,7 +16,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ libsixel ]; buildInputs = [ libsixel ];
meta = with stdenv.lib; { meta = with lib; {
description = "A cross-platform multimedia library, that supports sixel graphics on consoles"; description = "A cross-platform multimedia library, that supports sixel graphics on consoles";
homepage = "https://github.com/saitoha/SDL1.2-SIXEL"; homepage = "https://github.com/saitoha/SDL1.2-SIXEL";
maintainers = with maintainers; [ vrthra ]; maintainers = with maintainers; [ vrthra ];

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL }: { lib, stdenv, fetchurl, SDL }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL_stretch"; pname = "SDL_stretch";
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
buildInputs = [ SDL ]; buildInputs = [ SDL ];
meta = with stdenv.lib; { meta = with lib; {
description = "Stretch Functions For SDL"; description = "Stretch Functions For SDL";
homepage = "http://sdl-stretch.sourceforge.net/"; homepage = "http://sdl-stretch.sourceforge.net/";
license = licenses.lgpl2; license = licenses.lgpl2;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, SDL, freetype }: { lib, stdenv, fetchurl, fetchpatch, SDL, freetype }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL_ttf"; pname = "SDL_ttf";
@ -21,9 +21,9 @@ stdenv.mkDerivation rec {
buildInputs = [ SDL freetype ]; buildInputs = [ SDL freetype ];
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest"; configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
meta = with stdenv.lib; { meta = with lib; {
description = "SDL TrueType library"; description = "SDL TrueType library";
license = licenses.zlib; license = licenses.zlib;
platforms = platforms.all; platforms = platforms.all;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl { lib, stdenv, fetchurl
, imake, gccmakedep, bison, flex, pkg-config , imake, gccmakedep, bison, flex, pkg-config
, xlibsWrapper, libXmu, libXpm, libXp }: , xlibsWrapper, libXmu, libXpm, libXp }:
@ -13,9 +13,9 @@ stdenv.mkDerivation {
buildInputs = [ libXpm libXp ]; buildInputs = [ libXpm libXp ];
propagatedBuildInputs = [ xlibsWrapper libXmu ]; propagatedBuildInputs = [ xlibsWrapper libXmu ];
meta = with stdenv.lib; { meta = with lib; {
description = "3D widget set based on the Athena Widget set"; description = "3D widget set based on the Athena Widget set";
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
license = licenses.mit; license = licenses.mit;
}; };
} }

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl}: {lib, stdenv, fetchurl}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "a52dec"; pname = "a52dec";
@ -15,11 +15,11 @@ stdenv.mkDerivation rec {
# fails 1 out of 1 tests with "BAD GLOBAL SYMBOLS" on i686 # fails 1 out of 1 tests with "BAD GLOBAL SYMBOLS" on i686
# which can also be fixed with # which can also be fixed with
# hardeningDisable = stdenv.lib.optional stdenv.isi686 "pic"; # hardeningDisable = lib.optional stdenv.isi686 "pic";
# but it's better to disable tests than loose ASLR on i686 # but it's better to disable tests than loose ASLR on i686
doCheck = !stdenv.isi686; doCheck = !stdenv.isi686;
meta = with stdenv.lib; { meta = with lib; {
description = "ATSC A/52 stream decoder"; description = "ATSC A/52 stream decoder";
homepage = "https://liba52.sourceforge.net/"; homepage = "https://liba52.sourceforge.net/";
platforms = platforms.unix; platforms = platforms.unix;

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, ncurses, automake}: {lib, stdenv, fetchurl, ncurses, automake}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "aalib-1.4rc5"; name = "aalib-1.4rc5";
@ -11,7 +11,7 @@ stdenv.mkDerivation {
outputs = [ "bin" "dev" "out" "man" "info" ]; outputs = [ "bin" "dev" "out" "man" "info" ];
setOutputFlags = false; # Doesn't support all the flags setOutputFlags = false; # Doesn't support all the flags
patches = stdenv.lib.optionals stdenv.isDarwin [ ./darwin.patch ]; patches = lib.optionals stdenv.isDarwin [ ./darwin.patch ];
# The fuloong2f is not supported by aalib still # The fuloong2f is not supported by aalib still
preConfigure = '' preConfigure = ''
@ -35,7 +35,7 @@ stdenv.mkDerivation {
meta = { meta = {
description = "ASCII art graphics library"; description = "ASCII art graphics library";
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
license = stdenv.lib.licenses.lgpl2; license = lib.licenses.lgpl2;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake }: { lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "abseil-cpp"; pname = "abseil-cpp";
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
meta = with stdenv.lib; { meta = with lib; {
description = "An open-source collection of C++ code designed to augment the C++ standard library"; description = "An open-source collection of C++ code designed to augment the C++ standard library";
homepage = "https://abseil.io/"; homepage = "https://abseil.io/";
license = licenses.asl20; license = licenses.asl20;

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, fetchpatch , fetchpatch
, substituteAll , substituteAll
@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
}) })
]; ];
meta = with stdenv.lib; { meta = with lib; {
description = "D-Bus interface for user account query and manipulation"; description = "D-Bus interface for user account query and manipulation";
homepage = "https://www.freedesktop.org/wiki/Software/AccountsService"; homepage = "https://www.freedesktop.org/wiki/Software/AccountsService";
license = licenses.gpl3; license = licenses.gpl3;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkg-config, libtool, perl }: { lib, stdenv, fetchurl, pkg-config, libtool, perl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ace"; pname = "ace";
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
> include/makeinclude/platform_macros.GNU > include/makeinclude/platform_macros.GNU
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "ADAPTIVE Communication Environment"; description = "ADAPTIVE Communication Environment";
homepage = "http://www.dre.vanderbilt.edu/~schmidt/ACE.html"; homepage = "http://www.dre.vanderbilt.edu/~schmidt/ACE.html";
license = licenses.doc; license = licenses.doc;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gettext, attr }: { lib, stdenv, fetchurl, gettext, attr }:
# Note: this package is used for bootstrapping fetchurl, and thus # Note: this package is used for bootstrapping fetchurl, and thus
# cannot use fetchpatch! All mutable patches (generated by GitHub or # cannot use fetchpatch! All mutable patches (generated by GitHub or
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
patchShebangs . patchShebangs .
''; '';
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://savannah.nongnu.org/projects/acl"; homepage = "https://savannah.nongnu.org/projects/acl";
description = "Library and tools for manipulating access control lists"; description = "Library and tools for manipulating access control lists";
platforms = platforms.linux; platforms = platforms.linux;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, zlib, curl, expat, fuse, openssl { lib, stdenv, fetchFromGitHub, zlib, curl, expat, fuse, openssl
, autoreconfHook, python3 , autoreconfHook, python3
}: }:
@ -15,14 +15,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib curl expat openssl python3 ] buildInputs = [ zlib curl expat openssl python3 ]
++ stdenv.lib.optionals stdenv.isLinux [ fuse ]; ++ lib.optionals stdenv.isLinux [ fuse ];
meta = { meta = {
homepage = "http://afflib.sourceforge.net/"; homepage = "http://afflib.sourceforge.net/";
description = "Advanced forensic format library"; description = "Advanced forensic format library";
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
license = stdenv.lib.licenses.bsdOriginal; license = lib.licenses.bsdOriginal;
maintainers = [ stdenv.lib.maintainers.raskin ]; maintainers = [ lib.maintainers.raskin ];
inherit version; inherit version;
downloadPage = "https://github.com/sshock/AFFLIBv3/tags"; downloadPage = "https://github.com/sshock/AFFLIBv3/tags";
}; };

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake }: { lib, stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "aften"; pname = "aften";
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "An audio encoder which generates compressed audio streams based on ATSC A/52 specification"; description = "An audio encoder which generates compressed audio streams based on ATSC A/52 specification";
homepage = "http://aften.sourceforge.net/"; homepage = "http://aften.sourceforge.net/";
license = stdenv.lib.licenses.lgpl2; license = lib.licenses.lgpl2;
platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ]; platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, mkDerivation, fetchFromGitHub }: { lib, stdenv, mkDerivation, fetchFromGitHub }:
mkDerivation rec { mkDerivation rec {
version = "compat-2.6.1"; version = "compat-2.6.1";
@ -18,11 +18,11 @@ mkDerivation rec {
cd .. cd ..
''; '';
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://github.com/UlfNorell/agda-prelude"; homepage = "https://github.com/UlfNorell/agda-prelude";
description = "Programming library for Agda"; description = "Programming library for Agda";
license = stdenv.lib.licenses.mit; license = lib.licenses.mit;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = with maintainers; [ mudri alexarice turion ]; maintainers = with maintainers; [ mudri alexarice turion ];
}; };
} }

View file

@ -13,7 +13,7 @@ mkDerivation rec {
sha256 = "09ri3jmgp9jjwi1mzv4c3w6rvcmyx6spa2qxpwlcn0f4bmfva6wm"; sha256 = "09ri3jmgp9jjwi1mzv4c3w6rvcmyx6spa2qxpwlcn0f4bmfva6wm";
}; };
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://github.com/ryanorendorff/functional-linear-algebra"; homepage = "https://github.com/ryanorendorff/functional-linear-algebra";
description = '' description = ''
Formalizing linear algebra in Agda by representing matrices as functions Formalizing linear algebra in Agda by representing matrices as functions

View file

@ -1,4 +1,4 @@
{ stdenv, mkDerivation, fetchFromGitHub }: { lib, stdenv, mkDerivation, fetchFromGitHub }:
mkDerivation (rec { mkDerivation (rec {
version = "1.5.0"; version = "1.5.0";
@ -22,10 +22,10 @@ mkDerivation (rec {
meta = { meta = {
homepage = "https://github.com/cedille/ial"; homepage = "https://github.com/cedille/ial";
description = "Agda standard library developed at Iowa"; description = "Agda standard library developed at Iowa";
license = stdenv.lib.licenses.free; license = lib.licenses.free;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
# broken since Agda 2.6.1 # broken since Agda 2.6.1
broken = true; broken = true;
maintainers = with stdenv.lib.maintainers; [ alexarice turion ]; maintainers = with lib.maintainers; [ alexarice turion ];
}; };
}) })

View file

@ -1,4 +1,4 @@
{ stdenv, mkDerivation, fetchFromGitHub, ghcWithPackages }: { lib, stdenv, mkDerivation, fetchFromGitHub, ghcWithPackages }:
mkDerivation rec { mkDerivation rec {
pname = "standard-library"; pname = "standard-library";
@ -16,11 +16,11 @@ mkDerivation rec {
runhaskell GenerateEverything.hs runhaskell GenerateEverything.hs
''; '';
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary"; homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
description = "A standard library for use with the Agda compiler"; description = "A standard library for use with the Agda compiler";
license = stdenv.lib.licenses.mit; license = lib.licenses.mit;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
maintainers = with maintainers; [ jwiegley mudri alexarice turion ]; maintainers = with maintainers; [ jwiegley mudri alexarice turion ];
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, autoconf, automake, libtool, pkg-config { lib, stdenv, fetchurl, autoconf, automake, libtool, pkg-config
, freetype, SDL, libX11 }: , freetype, SDL, libX11 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -40,8 +40,8 @@ stdenv.mkDerivation rec {
of course, AGG can do much more than that. of course, AGG can do much more than that.
''; '';
license = stdenv.lib.licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
homepage = "http://www.antigrain.com/"; homepage = "http://www.antigrain.com/";
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, unzip, cmake, openexr, hdf5-threadsafe }: { lib, stdenv, fetchFromGitHub, unzip, cmake, openexr, hdf5-threadsafe }:
stdenv.mkDerivation rec stdenv.mkDerivation rec
{ {
@ -34,7 +34,7 @@ stdenv.mkDerivation rec
mv $out/include $dev/ mv $out/include $dev/
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "An open framework for storing and sharing scene data"; description = "An open framework for storing and sharing scene data";
homepage = "http://alembic.io/"; homepage = "http://alembic.io/";
license = licenses.bsd3; license = licenses.bsd3;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch, texinfo, libXext, xorgproto, libX11 { lib, stdenv, fetchFromGitHub, fetchpatch, texinfo, libXext, xorgproto, libX11
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis , libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
, libXxf86dga, libXxf86misc , libXxf86dga, libXxf86misc
, libXxf86vm, openal, libGLU, libGL, libjpeg, flac , libXxf86vm, openal, libGLU, libGL, libjpeg, flac
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ]; cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
meta = with stdenv.lib; { meta = with lib; {
description = "A game programming library"; description = "A game programming library";
homepage = "https://liballeg.org/"; homepage = "https://liballeg.org/";
license = licenses.zlib; license = licenses.zlib;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, texinfo6_5, libXext, xorgproto, libX11 { lib, stdenv, fetchurl, texinfo6_5, libXext, xorgproto, libX11
, libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis , libXpm, libXt, libXcursor, alsaLib, cmake, zlib, libpng, libvorbis
, libXxf86dga, libXxf86misc , libXxf86dga, libXxf86misc
, libXxf86vm, openal, libGLU, libGL }: , libXxf86vm, openal, libGLU, libGL }:
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ]; cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
meta = with stdenv.lib; { meta = with lib; {
description = "A game programming library"; description = "A game programming library";
homepage = "https://liballeg.org/"; homepage = "https://liballeg.org/";
license = licenses.free; # giftware license = licenses.free; # giftware

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, openal }: { lib, stdenv, fetchurl, cmake, openal }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "alure"; pname = "alure";
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ openal ]; buildInputs = [ openal ];
meta = with stdenv.lib; { meta = with lib; {
description = "A utility library to help manage common tasks with OpenAL applications"; description = "A utility library to help manage common tasks with OpenAL applications";
homepage = "https://kcat.strangesoft.net/alure.html"; homepage = "https://kcat.strangesoft.net/alure.html";
license = licenses.mit; license = licenses.mit;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, openal, libvorbis, opusfile, libsndfile }: { lib, stdenv, fetchFromGitHub, cmake, openal, libvorbis, opusfile, libsndfile }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "alure2"; pname = "alure2";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ openal libvorbis opusfile libsndfile ]; buildInputs = [ openal libvorbis opusfile libsndfile ];
meta = with stdenv.lib; { meta = with lib; {
description = "A utility library for OpenAL, providing a C++ API and managing common tasks that include file loading, caching, and streaming"; description = "A utility library for OpenAL, providing a C++ API and managing common tasks that include file loading, caching, and streaming";
homepage = "https://github.com/kcat/alure"; homepage = "https://github.com/kcat/alure";
license = licenses.zlib; license = licenses.zlib;

View file

@ -66,7 +66,7 @@ in stdenv.mkDerivation rec {
cmakeDir = "../drivers/xgl"; cmakeDir = "../drivers/xgl";
# LTO is disabled in gcc for i686 as of #66528 # LTO is disabled in gcc for i686 as of #66528
cmakeFlags = stdenv.lib.optionals stdenv.is32bit ["-DXGL_ENABLE_LTO=OFF"]; cmakeFlags = lib.optionals stdenv.is32bit ["-DXGL_ENABLE_LTO=OFF"];
installPhase = '' installPhase = ''
install -Dm755 -t $out/lib icd/amdvlk${suffix}.so install -Dm755 -t $out/lib icd/amdvlk${suffix}.so
@ -83,7 +83,7 @@ in stdenv.mkDerivation rec {
# Keep the rpath, otherwise vulkaninfo and vkcube segfault # Keep the rpath, otherwise vulkaninfo and vkcube segfault
dontPatchELF = true; dontPatchELF = true;
meta = with stdenv.lib; { meta = with lib; {
description = "AMD Open Source Driver For Vulkan"; description = "AMD Open Source Driver For Vulkan";
homepage = "https://github.com/GPUOpen-Drivers/AMDVLK"; homepage = "https://github.com/GPUOpen-Drivers/AMDVLK";
changelog = "https://github.com/GPUOpen-Drivers/AMDVLK/releases/tag/v-${version}"; changelog = "https://github.com/GPUOpen-Drivers/AMDVLK/releases/tag/v-${version}";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, meson, pkg-config, ninja }: { lib, stdenv, fetchFromGitHub, meson, pkg-config, ninja }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "aml"; pname = "aml";
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ meson pkg-config ninja ]; nativeBuildInputs = [ meson pkg-config ninja ];
meta = with stdenv.lib; { meta = with lib; {
description = "Another main loop"; description = "Another main loop";
inherit (src.meta) homepage; inherit (src.meta) homepage;
license = licenses.isc; license = licenses.isc;

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, unzip}: {lib, stdenv, fetchurl, unzip}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "amrnb-11.0.0.0"; name = "amrnb-11.0.0.0";
@ -26,6 +26,6 @@ stdenv.mkDerivation {
# The wrapper code is free, but not the libraries from 3gpp. # The wrapper code is free, but not the libraries from 3gpp.
# It's a source code reference implementation with patents and licenses on # It's a source code reference implementation with patents and licenses on
# some countries, not redistributable. # some countries, not redistributable.
license = stdenv.lib.licenses.unfree; license = lib.licenses.unfree;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip }: { lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "amrwb"; pname = "amrwb";
@ -28,6 +28,6 @@ stdenv.mkDerivation rec {
# The wrapper code is free, but not the libraries from 3gpp. # The wrapper code is free, but not the libraries from 3gpp.
# It's a source code reference implementation with patents and licenses on # It's a source code reference implementation with patents and licenses on
# some countries, not redistributable. # some countries, not redistributable.
license = stdenv.lib.licenses.unfree; license = lib.licenses.unfree;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, gtk3 , gtk3
, pkg-config , pkg-config
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
version = "5.2.0"; version = "5.2.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 = "0y3hmmflw4i0y0yb9a8rlihbv3cbwnvdcf1n5jycwzpq9jxla1c2"; sha256 = "0y3hmmflw4i0y0yb9a8rlihbv3cbwnvdcf1n5jycwzpq9jxla1c2";
}; };
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
passthru.updateScript = gnome3.updateScript { packageName = pname; }; passthru.updateScript = gnome3.updateScript { packageName = pname; };
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://wiki.gnome.org/Projects/Amtk"; homepage = "https://wiki.gnome.org/Projects/Amtk";
description = "Actions, Menus and Toolbars Kit for GTK applications"; description = "Actions, Menus and Toolbars Kit for GTK applications";
maintainers = [ maintainers.manveru ]; maintainers = [ maintainers.manveru ];

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }: { lib, stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "apache-activemq"; pname = "apache-activemq";
@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://activemq.apache.org/"; homepage = "http://activemq.apache.org/";
description = "Messaging and Integration Patterns server written in Java"; description = "Messaging and Integration Patterns server written in Java";
license = stdenv.lib.licenses.asl20; license = lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchFromGitHub , fetchFromGitHub
, substituteAll , substituteAll
, docbook_xml_dtd_42 , docbook_xml_dtd_42
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hughsie"; owner = "hughsie";
repo = "appstream-glib"; repo = "appstream-glib";
rev = stdenv.lib.replaceStrings [ "." "-" ] [ "_" "_" ] name; rev = lib.replaceStrings [ "." "-" ] [ "_" "_" ] name;
sha256 = "12s7d3nqjs1fldnppbg2mkjg4280f3h8yzj3q1hiz3chh1w0vjbx"; sha256 = "12s7d3nqjs1fldnppbg2mkjg4280f3h8yzj3q1hiz3chh1w0vjbx";
}; };
@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
moveToOutput "share/installed-tests" "$installedTests" moveToOutput "share/installed-tests" "$installedTests"
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "Objects and helper methods to read and write AppStream metadata"; description = "Objects and helper methods to read and write AppStream metadata";
homepage = "https://people.freedesktop.org/~hughsient/appstream-glib/"; homepage = "https://people.freedesktop.org/~hughsient/appstream-glib/";
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, meson, ninja, pkg-config, gettext { lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, gettext
, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt , xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt
, libstemmer, glib, xapian, libxml2, libyaml, gobject-introspection , libstemmer, glib, xapian, libxml2, libyaml, gobject-introspection
, pcre, itstool, gperf, vala, lmdb, libsoup , pcre, itstool, gperf, vala, lmdb, libsoup
@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
"-Dvapi=true" "-Dvapi=true"
]; ];
meta = with stdenv.lib; { meta = with lib; {
description = "Software metadata handling library"; description = "Software metadata handling library";
homepage = "https://www.freedesktop.org/wiki/Distributions/AppStream/"; homepage = "https://www.freedesktop.org/wiki/Distributions/AppStream/";
longDescription = '' longDescription = ''

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, apr, expat, gnused { lib, stdenv, fetchurl, makeWrapper, apr, expat, gnused
, sslSupport ? true, openssl , sslSupport ? true, openssl
, bdbSupport ? true, db , bdbSupport ? true, db
, ldapSupport ? !stdenv.isCygwin, openldap , ldapSupport ? !stdenv.isCygwin, openldap
@ -10,7 +10,7 @@ assert sslSupport -> openssl != null;
assert bdbSupport -> db != null; assert bdbSupport -> db != null;
assert ldapSupport -> openldap != null; assert ldapSupport -> openldap != null;
with stdenv.lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "apr-util-1.6.1"; name = "apr-util-1.6.1";
@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
inherit sslSupport bdbSupport ldapSupport; inherit sslSupport bdbSupport ldapSupport;
}; };
meta = with stdenv.lib; { meta = with lib; {
homepage = "http://apr.apache.org/"; homepage = "http://apr.apache.org/";
description = "A companion library to APR, the Apache Portable Runtime"; description = "A companion library to APR, the Apache Portable Runtime";
maintainers = [ maintainers.eelco ]; maintainers = [ maintainers.eelco ];

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl }: { lib, stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "apr-1.7.0"; name = "apr-1.7.0";
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "1spp6r2a3xcl5yajm9safhzyilsdzgagc2dadif8x6z9nbq4iqg2"; sha256 = "1spp6r2a3xcl5yajm9safhzyilsdzgagc2dadif8x6z9nbq4iqg2";
}; };
patches = stdenv.lib.optionals stdenv.isDarwin [ ./is-this-a-compiler-bug.patch ]; patches = lib.optionals stdenv.isDarwin [ ./is-this-a-compiler-bug.patch ];
# This test needs the net # This test needs the net
postPatch = '' postPatch = ''
@ -23,22 +23,22 @@ stdenv.mkDerivation rec {
configureFlagsArray+=("--with-installbuilddir=$dev/share/build") configureFlagsArray+=("--with-installbuilddir=$dev/share/build")
''; '';
configureFlags = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) [ configureFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) [
"ac_cv_file__dev_zero=yes" "ac_cv_file__dev_zero=yes"
"ac_cv_func_setpgrp_void=0" "ac_cv_func_setpgrp_void=0"
"apr_cv_process_shared_works=1" "apr_cv_process_shared_works=1"
"apr_cv_tcp_nodelay_with_cork=1" "apr_cv_tcp_nodelay_with_cork=1"
] ++ stdenv.lib.optionals (stdenv.hostPlatform.system == "i686-cygwin") [ ] ++ lib.optionals (stdenv.hostPlatform.system == "i686-cygwin") [
# Including the Windows headers breaks unistd.h. # Including the Windows headers breaks unistd.h.
# Based on ftp://sourceware.org/pub/cygwin/release/libapr1/libapr1-1.3.8-2-src.tar.bz2 # Based on ftp://sourceware.org/pub/cygwin/release/libapr1/libapr1-1.3.8-2-src.tar.bz2
"ac_cv_header_windows_h=no" "ac_cv_header_windows_h=no"
]; ];
CPPFLAGS=stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) "-DAPR_IOVEC_DEFINED"; CPPFLAGS=lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) "-DAPR_IOVEC_DEFINED";
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with lib; {
homepage = "http://apr.apache.org/"; homepage = "http://apr.apache.org/";
description = "The Apache Portable Runtime library"; description = "The Apache Portable Runtime library";
platforms = platforms.all; platforms = platforms.all;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gmp, gwenhywfar, libtool, libxml2, libxslt { lib, stdenv, fetchurl, gmp, gwenhywfar, libtool, libxml2, libxslt
, pkg-config, gettext, xmlsec, zlib , pkg-config, gettext, xmlsec, zlib
}: }:
@ -27,7 +27,7 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config gettext ]; nativeBuildInputs = [ pkg-config gettext ];
meta = with stdenv.lib; { meta = with lib; {
description = "An interface to banking tasks, file formats and country information"; description = "An interface to banking tasks, file formats and country information";
homepage = "https://www.aquamaniac.de/"; homepage = "https://www.aquamaniac.de/";
hydraPlatforms = []; hydraPlatforms = [];

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gnutls, openssl, libgcrypt, libgpgerror, pkg-config, gettext { lib, stdenv, fetchurl, gnutls, openssl, libgcrypt, libgpgerror, pkg-config, gettext
, which , which
# GUI support # GUI support
@ -34,7 +34,7 @@ in stdenv.mkDerivation rec {
isRelative = path: builtins.substring 0 1 path != "/"; isRelative = path: builtins.substring 0 1 path != "/";
mkSearchPath = path: '' mkSearchPath = path: ''
p; g; s,\<PLUGINDIR\>,"${path}",g; p; g; s,\<PLUGINDIR\>,"${path}",g;
'' + stdenv.lib.optionalString (isRelative path) '' '' + lib.optionalString (isRelative path) ''
s/AddPath(\(.*\));/AddRelPath(\1, GWEN_PathManager_RelModeHome);/g s/AddPath(\(.*\));/AddRelPath(\1, GWEN_PathManager_RelModeHome);/g
''; '';
@ -42,7 +42,7 @@ in stdenv.mkDerivation rec {
sed -i -e '/GWEN_PathManager_DefinePath.*GWEN_PM_PLUGINDIR/,/^#endif/ { sed -i -e '/GWEN_PathManager_DefinePath.*GWEN_PM_PLUGINDIR/,/^#endif/ {
/^#if/,/^#endif/ { /^#if/,/^#endif/ {
H; /^#endif/ { H; /^#endif/ {
${stdenv.lib.concatMapStrings mkSearchPath pluginSearchPaths} ${lib.concatMapStrings mkSearchPath pluginSearchPaths}
} }
} }
}' src/gwenhywfar.c }' src/gwenhywfar.c
@ -57,7 +57,7 @@ in stdenv.mkDerivation rec {
buildInputs = [ gtk2 gtk3 qt5.qtbase gnutls openssl libgcrypt libgpgerror ]; buildInputs = [ gtk2 gtk3 qt5.qtbase gnutls openssl libgcrypt libgpgerror ];
meta = with stdenv.lib; { meta = with lib; {
description = "OS abstraction functions used by aqbanking and related tools"; description = "OS abstraction functions used by aqbanking and related tools";
homepage = "http://www2.aquamaniac.de/sites/download/packages.php?package=01&showall=1"; homepage = "http://www2.aquamaniac.de/sites/download/packages.php?package=01&showall=1";
license = licenses.lgpl21; license = licenses.lgpl21;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkg-config, gwenhywfar, pcsclite, zlib }: { lib, stdenv, fetchurl, pkg-config, gwenhywfar, pcsclite, zlib }:
let let
inherit ((import ./sources.nix).libchipcard) sha256 releaseId version; inherit ((import ./sources.nix).libchipcard) sha256 releaseId version;
@ -19,7 +19,7 @@ in stdenv.mkDerivation rec {
configureFlags = [ "--with-gwen-dir=${gwenhywfar}" ]; configureFlags = [ "--with-gwen-dir=${gwenhywfar}" ];
meta = with stdenv.lib; { meta = with lib; {
description = "Library for access to chipcards"; description = "Library for access to chipcards";
homepage = "https://www.aquamaniac.de/rdm/projects/libchipcard"; homepage = "https://www.aquamaniac.de/rdm/projects/libchipcard";
license = licenses.lgpl21; license = licenses.lgpl21;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gtk-doc, intltool { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gtk-doc, intltool
, audit, glib, libusb1, libxml2 , audit, glib, libusb1, libxml2
, wrapGAppsHook , wrapGAppsHook
, gstreamer ? null , gstreamer ? null
@ -19,11 +19,11 @@
let let
gstreamerAtLeastVersion1 = gstreamerAtLeastVersion1 =
stdenv.lib.all lib.all
(pkg: pkg != null && stdenv.lib.versionAtLeast (stdenv.lib.getVersion pkg) "1.0") (pkg: pkg != null && lib.versionAtLeast (stdenv.lib.getVersion pkg) "1.0")
[ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ]; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ];
in in
assert enableGstPlugin -> stdenv.lib.all (pkg: pkg != null) [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ]; assert enableGstPlugin -> lib.all (pkg: pkg != null) [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ];
assert enableViewer -> enableGstPlugin; assert enableViewer -> enableGstPlugin;
assert enableViewer -> libnotify != null; assert enableViewer -> libnotify != null;
assert enableViewer -> gnome3 != null; assert enableViewer -> gnome3 != null;
@ -49,26 +49,26 @@ in
pkg-config pkg-config
intltool intltool
gtk-doc gtk-doc
] ++ stdenv.lib.optional enableViewer wrapGAppsHook; ] ++ lib.optional enableViewer wrapGAppsHook;
buildInputs = buildInputs =
[ glib libxml2 ] [ glib libxml2 ]
++ stdenv.lib.optional enableUsb libusb1 ++ lib.optional enableUsb libusb1
++ stdenv.lib.optional enablePacketSocket audit ++ lib.optional enablePacketSocket audit
++ stdenv.lib.optionals (enableViewer || enableGstPlugin) [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ] ++ lib.optionals (enableViewer || enableGstPlugin) [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ]
++ stdenv.lib.optionals (enableViewer) [ libnotify gtk3 gnome3.adwaita-icon-theme ]; ++ lib.optionals (enableViewer) [ libnotify gtk3 gnome3.adwaita-icon-theme ];
preAutoreconf = ''./autogen.sh''; preAutoreconf = ''./autogen.sh'';
configureFlags = configureFlags =
stdenv.lib.optional enableUsb "--enable-usb" lib.optional enableUsb "--enable-usb"
++ stdenv.lib.optional enablePacketSocket "--enable-packet-socket" ++ lib.optional enablePacketSocket "--enable-packet-socket"
++ stdenv.lib.optional enableViewer "--enable-viewer" ++ lib.optional enableViewer "--enable-viewer"
++ stdenv.lib.optional enableGstPlugin ++ lib.optional enableGstPlugin
(if gstreamerAtLeastVersion1 then "--enable-gst-plugin" else "--enable-gst-0.10-plugin") (if gstreamerAtLeastVersion1 then "--enable-gst-plugin" else "--enable-gst-0.10-plugin")
++ stdenv.lib.optional enableCppTest "--enable-cpp-test" ++ lib.optional enableCppTest "--enable-cpp-test"
++ stdenv.lib.optional enableFastHeartbeat "--enable-fast-heartbeat" ++ lib.optional enableFastHeartbeat "--enable-fast-heartbeat"
++ stdenv.lib.optional enableAsan "--enable-asan"; ++ lib.optional enableAsan "--enable-asan";
postPatch = '' postPatch = ''
ln -s ${gtk-doc}/share/gtk-doc/data/gtk-doc.make . ln -s ${gtk-doc}/share/gtk-doc/data/gtk-doc.make .
@ -82,9 +82,9 @@ in
Implements the gigabit ethernet and USB3 protocols used by industrial cameras. Implements the gigabit ethernet and USB3 protocols used by industrial cameras.
''; '';
homepage = "https://aravisproject.github.io/docs/aravis-0.5"; homepage = "https://aravisproject.github.io/docs/aravis-0.5";
license = stdenv.lib.licenses.lgpl2; license = lib.licenses.lgpl2;
maintainers = []; maintainers = [];
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} }

View file

@ -1,4 +1,4 @@
{stdenv, fetchFromGitHub, mpir, gmp, mpfr, flint}: {lib, stdenv, fetchFromGitHub, mpir, gmp, mpfr, flint}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "arb"; pname = "arb";
version = "2.17.0"; version = "2.17.0";
@ -16,11 +16,11 @@ stdenv.mkDerivation rec {
"--with-flint=${flint}" "--with-flint=${flint}"
]; ];
doCheck = true; doCheck = true;
meta = with stdenv.lib; { meta = with lib; {
description = "A library for arbitrary-precision interval arithmetic"; description = "A library for arbitrary-precision interval arithmetic";
homepage = "https://arblib.org/"; homepage = "https://arblib.org/";
license = stdenv.lib.licenses.lgpl21Plus; license = lib.licenses.lgpl21Plus;
maintainers = teams.sage.members; maintainers = teams.sage.members;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch }: { lib, stdenv, fetchurl, fetchpatch }:
let let
patch-argp-fmtstream = fetchpatch { patch-argp-fmtstream = fetchpatch {
@ -28,12 +28,12 @@ stdenv.mkDerivation {
}; };
patches = patches =
stdenv.lib.optionals stdenv.hostPlatform.isDarwin [ patch-argp-fmtstream ] lib.optionals stdenv.hostPlatform.isDarwin [ patch-argp-fmtstream ]
++ stdenv.lib.optionals stdenv.hostPlatform.isLinux [ patch-throw-in-funcdef patch-shared ]; ++ lib.optionals stdenv.hostPlatform.isLinux [ patch-throw-in-funcdef patch-shared ];
patchFlags = stdenv.lib.optional stdenv.hostPlatform.isDarwin "-p0"; patchFlags = lib.optional stdenv.hostPlatform.isDarwin "-p0";
preConfigure = stdenv.lib.optionalString stdenv.hostPlatform.isLinux "export CFLAGS='-fgnu89-inline'"; preConfigure = lib.optionalString stdenv.hostPlatform.isLinux "export CFLAGS='-fgnu89-inline'";
postInstall = '' postInstall = ''
mkdir -p $out/lib $out/include mkdir -p $out/lib $out/include
@ -47,7 +47,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://www.lysator.liu.se/~nisse/misc/"; homepage = "https://www.lysator.liu.se/~nisse/misc/";
description = "Standalone version of arguments parsing functions from GLIBC"; description = "Standalone version of arguments parsing functions from GLIBC";
platforms = with platforms; darwin ++ linux; platforms = with platforms; darwin ++ linux;

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
}: }:
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
patchShebangs tools/build patchShebangs tools/build
''; '';
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://argtable.org"; homepage = "https://argtable.org";
description = "A single-file, ANSI C command-line parsing library"; description = "A single-file, ANSI C command-line parsing library";
longDescription = '' longDescription = ''

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake }: { lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "arguments"; pname = "arguments";
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
doCheck = false; doCheck = false;
# internal_volume_io.h: No such file or directory # internal_volume_io.h: No such file or directory
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://github.com/${owner}/${pname}"; homepage = "https://github.com/${owner}/${pname}";
description = "Library for argument handling for MINC programs"; description = "Library for argument handling for MINC programs";
maintainers = with maintainers; [ bcdarwin ]; maintainers = with maintainers; [ bcdarwin ];

View file

@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
buildFlags = buildFlags =
lib.optional stdenv.isDarwin "pcsclite_CFLAGS=-I${PCSC}/Library/Frameworks/PCSC.framework/Headers"; lib.optional stdenv.isDarwin "pcsclite_CFLAGS=-I${PCSC}/Library/Frameworks/PCSC.framework/Headers";
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://code.videolan.org/videolan/aribb25"; homepage = "https://code.videolan.org/videolan/aribb25";
description = "Sample implementation of the ARIB STD-B25 standard"; description = "Sample implementation of the ARIB STD-B25 standard";
platforms = platforms.all; platforms = platforms.all;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, blas, lapack, superlu, hdf5 }: { lib, stdenv, fetchurl, cmake, blas, lapack, superlu, hdf5 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "armadillo"; pname = "armadillo";
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
patches = [ ./use-unix-config-on-OS-X.patch ]; patches = [ ./use-unix-config-on-OS-X.patch ];
meta = with stdenv.lib; { meta = with lib; {
description = "C++ linear algebra library"; description = "C++ linear algebra library";
homepage = "http://arma.sourceforge.net"; homepage = "http://arma.sourceforge.net";
license = licenses.asl20; license = licenses.asl20;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchFromGitHub, cmake, pkg-config { lib, stdenv, fetchurl, fetchFromGitHub, cmake, pkg-config
, opencl-clhpp, ocl-icd, fftw, fftwFloat , opencl-clhpp, ocl-icd, fftw, fftwFloat
, blas, lapack, boost, mesa, libGLU, libGL , blas, lapack, boost, mesa, libGLU, libGL
, freeimage, python, clfft, clblas , freeimage, python, clfft, clblas
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
"-DAF_BUILD_OPENCL=OFF" "-DAF_BUILD_OPENCL=OFF"
"-DAF_BUILD_EXAMPLES=OFF" "-DAF_BUILD_EXAMPLES=OFF"
"-DBUILD_TESTING=OFF" "-DBUILD_TESTING=OFF"
] ++ stdenv.lib.optional cudaSupport "-DCMAKE_LIBRARY_PATH=${cudatoolkit}/lib/stubs"; ] ++ lib.optional cudaSupport "-DCMAKE_LIBRARY_PATH=${cudatoolkit}/lib/stubs";
patches = [ ./no-download.patch ]; patches = [ ./no-download.patch ];
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
cp -R --no-preserve=mode,ownership ${opencl-clhpp}/include/CL/cl2.hpp ./build/include/CL/cl2.hpp cp -R --no-preserve=mode,ownership ${opencl-clhpp}/include/CL/cl2.hpp ./build/include/CL/cl2.hpp
''; '';
preBuild = stdenv.lib.optionalString cudaSupport '' preBuild = lib.optionalString cudaSupport ''
export CUDA_PATH="${cudatoolkit}" export CUDA_PATH="${cudatoolkit}"
''; '';
@ -48,11 +48,11 @@ stdenv.mkDerivation rec {
libGLU libGL libGLU libGL
mesa freeimage mesa freeimage
boost.out boost.dev boost.out boost.dev
] ++ (stdenv.lib.optional stdenv.isLinux ocl-icd) ] ++ (lib.optional stdenv.isLinux ocl-icd)
++ (stdenv.lib.optional cudaSupport cudatoolkit) ++ (lib.optional cudaSupport cudatoolkit)
++ (stdenv.lib.optional buildDocs doxygen); ++ (lib.optional buildDocs doxygen);
meta = with stdenv.lib; { meta = with lib; {
description = "A general-purpose library for parallel and massively-parallel computations"; description = "A general-purpose library for parallel and massively-parallel computations";
longDescription = '' longDescription = ''
A general-purpose library that simplifies the process of developing software that targets parallel and massively-parallel architectures including CPUs, GPUs, and other hardware acceleration devices."; A general-purpose library that simplifies the process of developing software that targets parallel and massively-parallel architectures including CPUs, GPUs, and other hardware acceleration devices.";

View file

@ -1,8 +1,8 @@
{stdenv, fetchurl, boost, openssl {lib, stdenv, fetchurl, boost, openssl
, version, sha256, ... , version, sha256, ...
}: }:
with stdenv.lib; with lib;
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "asio"; pname = "asio";
@ -21,7 +21,7 @@ stdenv.mkDerivation {
homepage = "http://asio.sourceforge.net/"; homepage = "http://asio.sourceforge.net/";
description = "Cross-platform C++ library for network and low-level I/O programming"; description = "Cross-platform C++ library for network and low-level I/O programming";
license = licenses.boost; license = licenses.boost;
broken = stdenv.isDarwin && stdenv.lib.versionOlder version "1.16.1"; broken = stdenv.isDarwin && lib.versionOlder version "1.16.1";
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, fetchzip, perl { lib, stdenv, fetchurl, fetchpatch, fetchzip, perl
, searchNixProfiles ? true , searchNixProfiles ? true
}: }:
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
sha256 = "1wi60ankalmh8ds7nplz434jd7j94gdvbahdwsr539rlad8pxdzr"; sha256 = "1wi60ankalmh8ds7nplz434jd7j94gdvbahdwsr539rlad8pxdzr";
}; };
patches = stdenv.lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch; patches = lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch;
postPatch = '' postPatch = ''
patch interfaces/cc/aspell.h < ${./clang.patch} patch interfaces/cc/aspell.h < ${./clang.patch}
@ -51,8 +51,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Spell checker for many languages"; description = "Spell checker for many languages";
homepage = "http://aspell.net/"; homepage = "http://aspell.net/";
license = stdenv.lib.licenses.lgpl2Plus; license = lib.licenses.lgpl2Plus;
maintainers = [ ]; maintainers = [ ];
platforms = with stdenv.lib.platforms; all; platforms = with lib.platforms; all;
}; };
} }

View file

@ -49,7 +49,7 @@ let
meta = { meta = {
description = "Aspell dictionary for ${fullName}"; description = "Aspell dictionary for ${fullName}";
platforms = stdenv.lib.platforms.all; platforms = lib.platforms.all;
} // (args.meta or {}); } // (args.meta or {});
} // removeAttrs args [ "meta" ]); } // removeAttrs args [ "meta" ]);

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, boost, zlib }: { lib, stdenv, fetchFromGitHub, cmake, boost, zlib }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "assimp"; pname = "assimp";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ boost zlib ]; buildInputs = [ boost zlib ];
meta = with stdenv.lib; { meta = with lib; {
description = "A library to import various 3D model formats"; description = "A library to import various 3D model formats";
homepage = "http://assimp.sourceforge.net/"; homepage = "http://assimp.sourceforge.net/";
license = licenses.bsd3; license = licenses.bsd3;

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, meson , meson
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
version = "2.38.0"; version = "2.38.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 = "z6AIpa+CKzauYofxgYLEDJHdaZxV+qOGBYge0XXKRk8="; sha256 = "z6AIpa+CKzauYofxgYLEDJHdaZxV+qOGBYge0XXKRk8=";
}; };
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
}; };
}; };
meta = with stdenv.lib; { meta = with lib; {
description = "D-Bus bridge for Assistive Technology Service Provider Interface (AT-SPI) and Accessibility Toolkit (ATK)"; description = "D-Bus bridge for Assistive Technology Service Provider Interface (AT-SPI) and Accessibility Toolkit (ATK)";
homepage = "https://gitlab.gnome.org/GNOME/at-spi2-atk"; homepage = "https://gitlab.gnome.org/GNOME/at-spi2-atk";
license = licenses.lgpl21Plus; license = licenses.lgpl21Plus;

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchurl , fetchurl
, meson , meson
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
version = "2.38.0"; version = "2.38.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 = "hONsP+ZoYhM/X+Ipdyt2qiUm4Q3lAUo3ePL6Rs5VDaU="; sha256 = "hONsP+ZoYhM/X+Ipdyt2qiUm4Q3lAUo3ePL6Rs5VDaU=";
}; };
@ -51,11 +51,11 @@ stdenv.mkDerivation rec {
postFixup = '' postFixup = ''
# Cannot use wrapGAppsHook'due to a dependency cycle # Cannot use wrapGAppsHook'due to a dependency cycle
wrapProgram $out/libexec/at-spi-bus-launcher \ wrapProgram $out/libexec/at-spi-bus-launcher \
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules" \ --prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules" \
--prefix XDG_DATA_DIRS : ${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name} --prefix XDG_DATA_DIRS : ${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "Assistive Technology Service Provider Interface protocol definitions and daemon for D-Bus"; description = "Assistive Technology Service Provider Interface protocol definitions and daemon for D-Bus";
homepage = "https://gitlab.gnome.org/GNOME/at-spi2-core"; homepage = "https://gitlab.gnome.org/GNOME/at-spi2-core";
license = licenses.lgpl21Plus; license = licenses.lgpl21Plus;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, meson, ninja, gettext, pkg-config, glib { lib, stdenv, fetchurl, meson, ninja, gettext, pkg-config, glib
, fixDarwinDylibNames, gobject-introspection, gnome3 , fixDarwinDylibNames, gobject-introspection, gnome3
}: }:
@ -11,14 +11,14 @@ 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 = "1217cmmykjgkkim0zr1lv5j13733m4w5vipmy4ivw0ll6rz28xpv"; sha256 = "1217cmmykjgkkim0zr1lv5j13733m4w5vipmy4ivw0ll6rz28xpv";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
nativeBuildInputs = [ meson ninja pkg-config gettext gobject-introspection glib ] nativeBuildInputs = [ meson ninja pkg-config gettext gobject-introspection glib ]
++ stdenv.lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
propagatedBuildInputs = [ propagatedBuildInputs = [
# Required by atk.pc # Required by atk.pc
@ -52,10 +52,10 @@ stdenv.mkDerivation rec {
homepage = "http://library.gnome.org/devel/atk/"; homepage = "http://library.gnome.org/devel/atk/";
license = stdenv.lib.licenses.lgpl2Plus; license = lib.licenses.lgpl2Plus;
maintainers = with stdenv.lib.maintainers; [ raskin ]; maintainers = with lib.maintainers; [ raskin ];
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; platforms = lib.platforms.linux ++ stdenv.lib.platforms.darwin;
}; };
} }

View file

@ -1,11 +1,11 @@
{ stdenv, fetchurl, atk, glibmm, pkg-config, gnome3 }: { lib, stdenv, fetchurl, atk, glibmm, pkg-config, gnome3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "atkmm"; pname = "atkmm";
version = "2.28.0"; version = "2.28.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 = "0fnxrspxkhhbrjphqrpvl3zjm66n50s4cywrrrwkhbflgy8zqk2c"; sha256 = "0fnxrspxkhhbrjphqrpvl3zjm66n50s4cywrrrwkhbflgy8zqk2c";
}; };
@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "C++ wrappers for ATK accessibility toolkit"; description = "C++ wrappers for ATK accessibility toolkit";
license = stdenv.lib.licenses.lgpl21Plus; license = lib.licenses.lgpl21Plus;
homepage = "https://gtkmm.org"; homepage = "https://gtkmm.org";
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gettext }: { lib, stdenv, fetchurl, gettext }:
# Note: this package is used for bootstrapping fetchurl, and thus # Note: this package is used for bootstrapping fetchurl, and thus
# cannot use fetchpatch! All mutable patches (generated by GitHub or # cannot use fetchpatch! All mutable patches (generated by GitHub or
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
done done
''; '';
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://savannah.nongnu.org/projects/attr/"; homepage = "https://savannah.nongnu.org/projects/attr/";
description = "Library and tools for manipulating extended attributes"; description = "Library and tools for manipulating extended attributes";
platforms = platforms.linux; platforms = platforms.linux;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, alsaLib, fftw, libjack2, libsamplerate { lib, stdenv, fetchurl, alsaLib, fftw, libjack2, libsamplerate
, libsndfile, pkg-config, python, wafHook , libsndfile, pkg-config, python, wafHook
}: }:
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config python wafHook ]; nativeBuildInputs = [ pkg-config python wafHook ];
buildInputs = [ alsaLib fftw libjack2 libsamplerate libsndfile ]; buildInputs = [ alsaLib fftw libjack2 libsamplerate libsndfile ];
meta = with stdenv.lib; { meta = with lib; {
description = "Library for audio labelling"; description = "Library for audio labelling";
homepage = "https://aubio.org/"; homepage = "https://aubio.org/";
license = licenses.gpl2; license = licenses.gpl2;

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, pkg-config , pkg-config
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
jack2 jack2
]; ];
meta = with stdenv.lib; { meta = with lib; {
description = "A realtime scripted modular audio engine for video games and musical applications"; description = "A realtime scripted modular audio engine for video games and musical applications";
homepage = "http://audiality.org"; homepage = "http://audiality.org";
license = licenses.zlib; license = licenses.zlib;

View file

@ -1,4 +1,4 @@
{ stdenv, unzip, fetchurl }: { lib, stdenv, unzip, fetchurl }:
# Upstream changes files in-place, to update: # Upstream changes files in-place, to update:
# 1. Check latest version at http://www.un4seen.com/ # 1. Check latest version at http://www.un4seen.com/
@ -55,7 +55,7 @@ let
install -m644 -t $out/include/ ${bass.h} install -m644 -t $out/include/ ${bass.h}
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "Shareware audio library"; description = "Shareware audio library";
homepage = "https://www.un4seen.com/"; homepage = "https://www.un4seen.com/";
license = licenses.unfreeRedistributable; license = licenses.unfreeRedistributable;
@ -63,4 +63,4 @@ let
}; };
}; };
in stdenv.lib.mapAttrs dropBass allBass in lib.mapAttrs dropBass allBass

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkg-config, libsndfile }: { lib, stdenv, fetchurl, pkg-config, libsndfile }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libbs2b"; pname = "libbs2b";
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "http://bs2b.sourceforge.net/"; homepage = "http://bs2b.sourceforge.net/";
description = "Bauer stereophonic-to-binaural DSP library"; description = "Bauer stereophonic-to-binaural DSP library";
license = stdenv.lib.licenses.mit; license = lib.licenses.mit;
platforms = stdenv.lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} }

View file

@ -1,11 +1,11 @@
{ stdenv, fetchFromBitbucket, cmake, removeReferencesTo }: { lib, stdenv, fetchFromBitbucket, cmake, removeReferencesTo }:
let let
version = "0.6.3"; version = "0.6.3";
in stdenv.mkDerivation { in stdenv.mkDerivation {
pname = "libgme"; pname = "libgme";
inherit version; inherit version;
meta = with stdenv.lib; { meta = with lib; {
description = "A collection of video game music chip emulators"; description = "A collection of video game music chip emulators";
homepage = "https://bitbucket.org/mpyne/game-music-emu/overview"; homepage = "https://bitbucket.org/mpyne/game-music-emu/overview";
license = licenses.lgpl21; license = licenses.lgpl21;
@ -26,7 +26,7 @@ in stdenv.mkDerivation {
# it doesn't. # it doesn't.
disallowedReferences = [ stdenv.cc.cc ]; disallowedReferences = [ stdenv.cc.cc ];
postFixup = stdenv.lib.optionalString stdenv.isLinux '' postFixup = lib.optionalString stdenv.isLinux ''
remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/lib/libgme.so)" remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/lib/libgme.so)"
''; '';
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, pkg-config, glib, libsndfile }: { lib, stdenv, fetchFromGitHub, cmake, pkg-config, glib, libsndfile }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libinstpatch"; pname = "libinstpatch";
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
"-DLIB_SUFFIX=" # Install in $out/lib. "-DLIB_SUFFIX=" # Install in $out/lib.
]; ];
meta = with stdenv.lib; { meta = with lib; {
homepage = "http://www.swamiproject.org/"; homepage = "http://www.swamiproject.org/";
description = "MIDI instrument patch files support library"; description = "MIDI instrument patch files support library";
license = licenses.lgpl21; license = licenses.lgpl21;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, zlib }: { lib, stdenv, fetchFromGitHub, cmake, zlib }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libmysofa"; pname = "libmysofa";
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DBUILD_TESTS=OFF" "-DCODE_COVERAGE=OFF" ]; cmakeFlags = [ "-DBUILD_TESTS=OFF" "-DCODE_COVERAGE=OFF" ];
meta = with stdenv.lib; { meta = with lib; {
description = "Reader for AES SOFA files to get better HRTFs"; description = "Reader for AES SOFA files to get better HRTFs";
homepage = "https://github.com/hoene/libmysofa"; homepage = "https://github.com/hoene/libmysofa";
license = licenses.bsd3; license = licenses.bsd3;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, autoreconfHook, glib, pkg-config }: { lib, stdenv, fetchurl, autoreconfHook, glib, pkg-config }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.3"; version = "1.3";
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkg-config ]; nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ glib ]; buildInputs = [ glib ];
meta = with stdenv.lib; { meta = with lib; {
description = "A C library for reading and writing Standard MIDI Files"; description = "A C library for reading and writing Standard MIDI Files";
homepage = "https://github.com/stump/libsmf"; homepage = "https://github.com/stump/libsmf";
license = licenses.bsd2; license = licenses.bsd2;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, lv2, pkg-config, python3, serd, sord, sratom, wafHook }: { lib, stdenv, fetchurl, lv2, pkg-config, python3, serd, sord, sratom, wafHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lilv"; pname = "lilv";
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildInputs = [ serd sord sratom ]; buildInputs = [ serd sord sratom ];
propagatedBuildInputs = [ lv2 ]; propagatedBuildInputs = [ lv2 ];
meta = with stdenv.lib; { meta = with lib; {
homepage = "http://drobilla.net/software/lilv"; homepage = "http://drobilla.net/software/lilv";
description = "A C library to make the use of LV2 plugins"; description = "A C library to make the use of LV2 plugins";
license = licenses.mit; license = licenses.mit;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gtk2, libsndfile, pkg-config, python3, wafHook }: { lib, stdenv, fetchurl, gtk2, libsndfile, pkg-config, python3, wafHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lv2"; pname = "lv2";
@ -12,9 +12,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config wafHook ]; nativeBuildInputs = [ pkg-config wafHook ];
buildInputs = [ gtk2 libsndfile python3 ]; buildInputs = [ gtk2 libsndfile python3 ];
wafConfigureFlags = stdenv.lib.optionals stdenv.isDarwin [ "--lv2dir=${placeholder "out"}/lib/lv2" ]; wafConfigureFlags = lib.optionals stdenv.isDarwin [ "--lv2dir=${placeholder "out"}/lib/lv2" ];
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://lv2plug.in"; homepage = "https://lv2plug.in";
description = "A plugin standard for audio systems"; description = "A plugin standard for audio systems";
license = licenses.mit; license = licenses.mit;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost, gtkmm2, lv2, pkg-config, python, wafHook }: { lib, stdenv, fetchurl, boost, gtkmm2, lv2, pkg-config, python, wafHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lvtk"; pname = "lvtk";
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
"--boost-libs=${boost.out}/lib" "--boost-libs=${boost.out}/lib"
]; ];
meta = with stdenv.lib; { meta = with lib; {
description = "A set C++ wrappers around the LV2 C API"; description = "A set C++ wrappers around the LV2 C API";
homepage = "https://lvtk.org/"; homepage = "https://lvtk.org/";
license = licenses.gpl3; license = licenses.gpl3;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake }: { lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mbelib"; pname = "mbelib";
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "P25 Phase 1 and ProVoice vocoder"; description = "P25 Phase 1 and ProVoice vocoder";
homepage = https://github.com/szechyjs/mbelib; homepage = https://github.com/szechyjs/mbelib;
license = licenses.isc; license = licenses.isc;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cairo, libjpeg, libXft, pkg-config, python2, wafHook }: { lib, stdenv, fetchFromGitHub, cairo, libjpeg, libXft, pkg-config, python2, wafHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ntk"; pname = "ntk";
@ -19,8 +19,8 @@ stdenv.mkDerivation rec {
description = "Fork of FLTK 1.3.0 with additional functionality"; description = "Fork of FLTK 1.3.0 with additional functionality";
version = version; version = version;
homepage = "http://non.tuxfamily.org/"; homepage = "http://non.tuxfamily.org/";
license = stdenv.lib.licenses.lgpl21; license = lib.licenses.lgpl21;
maintainers = with stdenv.lib.maintainers; [ magnetophon nico202 ]; maintainers = with lib.maintainers; [ magnetophon nico202 ];
platforms = stdenv.lib.platforms.linux; platforms = lib.platforms.linux;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv { lib, stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, kissfft , kissfft
@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-I${kissfft}/include/kissfft"; NIX_CFLAGS_COMPILE = "-I${kissfft}/include/kissfft";
meta = with stdenv.lib; { meta = with lib; {
description = "A C++ library of functions for DSP and Music Informatics purposes"; description = "A C++ library of functions for DSP and Music Informatics purposes";
homepage = "https://code.soundsoftware.ac.uk/projects/qm-dsp"; homepage = "https://code.soundsoftware.ac.uk/projects/qm-dsp";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchgit, boost, gtk2, pkg-config, python, wafHook }: { lib, stdenv, fetchgit, boost, gtk2, pkg-config, python, wafHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "raul"; pname = "raul";
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config wafHook ]; nativeBuildInputs = [ pkg-config wafHook ];
buildInputs = [ boost gtk2 python ]; buildInputs = [ boost gtk2 python ];
meta = with stdenv.lib; { meta = with lib; {
description = "A C++ utility library primarily aimed at audio/musical applications"; description = "A C++ utility library primarily aimed at audio/musical applications";
homepage = "http://drobilla.net/software/raul"; homepage = "http://drobilla.net/software/raul";
license = licenses.gpl3; license = licenses.gpl3;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, libjack2, alsaLib, pulseaudio, rtmidi }: { lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, libjack2, alsaLib, pulseaudio, rtmidi }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "5.1.0"; version = "5.1.0";
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
./configure ./configure
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "A set of C++ classes that provide a cross platform API for realtime audio input/output"; description = "A set of C++ classes that provide a cross platform API for realtime audio input/output";
homepage = "http://www.music.mcgill.ca/~gary/rtaudio/"; homepage = "http://www.music.mcgill.ca/~gary/rtaudio/";
license = licenses.mit; license = licenses.mit;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, libjack2, alsaLib, pkg-config }: { lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, libjack2, alsaLib, pkg-config }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "4.0.0"; version = "4.0.0";
@ -24,8 +24,8 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "A set of C++ classes that provide a cross platform API for realtime MIDI input/output"; description = "A set of C++ classes that provide a cross platform API for realtime MIDI input/output";
homepage = "http://www.music.mcgill.ca/~gary/rtmidi/"; homepage = "http://www.music.mcgill.ca/~gary/rtmidi/";
license = stdenv.lib.licenses.mit; license = lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.magnetophon ]; maintainers = [ lib.maintainers.magnetophon ];
platforms = with stdenv.lib.platforms; linux ++ darwin; platforms = with lib.platforms; linux ++ darwin;
}; };
} }

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, lv2, pkg-config, python3, serd, sord, wafHook }: { lib, stdenv, fetchurl, lv2, pkg-config, python3, serd, sord, wafHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sratom"; pname = "sratom";
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config wafHook python3 ]; nativeBuildInputs = [ pkg-config wafHook python3 ];
buildInputs = [ lv2 serd sord ]; buildInputs = [ lv2 serd sord ];
meta = with stdenv.lib; { meta = with lib; {
homepage = "http://drobilla.net/software/sratom"; homepage = "http://drobilla.net/software/sratom";
description = "A library for serialising LV2 atoms to/from RDF"; description = "A library for serialising LV2 atoms to/from RDF";
license = licenses.mit; license = licenses.mit;

View file

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
++ (lib.optionals withQt4 [ qt4 ]) ++ (lib.optionals withQt4 [ qt4 ])
++ (lib.optionals withQt5 (with qt5; [ qtbase qttools ])); ++ (lib.optionals withQt5 (with qt5; [ qtbase qttools ]));
meta = with stdenv.lib; { meta = with lib; {
homepage = "http://drobilla.net/software/suil"; homepage = "http://drobilla.net/software/suil";
description = "A lightweight C library for loading and wrapping LV2 plugin UIs"; description = "A lightweight C library for loading and wrapping LV2 plugin UIs";
license = licenses.mit; license = licenses.mit;

View file

@ -1,7 +1,7 @@
# set VAMP_PATH ? # set VAMP_PATH ?
# plugins availible on sourceforge and http://www.vamp-plugins.org/download.html (various licenses) # plugins availible on sourceforge and http://www.vamp-plugins.org/download.html (various licenses)
{ stdenv, fetchFromGitHub, pkg-config, libsndfile }: { lib, stdenv, fetchFromGitHub, pkg-config, libsndfile }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "vamp-plugin-sdk"; pname = "vamp-plugin-sdk";
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with lib; {
description = "Audio processing plugin system for plugins that extract descriptive information from audio data"; description = "Audio processing plugin system for plugins that extract descriptive information from audio data";
homepage = "https://vamp-plugins.org/"; homepage = "https://vamp-plugins.org/";
license = licenses.bsd3; license = licenses.bsd3;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl , alsaLib, }: { lib, stdenv, fetchurl , alsaLib, }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "zita-alsa-pcmi"; pname = "zita-alsa-pcmi";
@ -57,8 +57,8 @@ stdenv.mkDerivation rec {
description = "The successor of clalsadrv, provides easy access to ALSA PCM devices"; description = "The successor of clalsadrv, provides easy access to ALSA PCM devices";
version = version; version = version;
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html"; homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
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

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fftwFloat }: { lib, stdenv, fetchurl, fftwFloat }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "zita-convolver"; pname = "zita-convolver";
@ -22,15 +22,15 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
# create lib link for building apps # create lib link for building apps
ln -s $out/lib/libzita-convolver.so.${version} $out/lib/libzita-convolver.so.${stdenv.lib.versions.major version} ln -s $out/lib/libzita-convolver.so.${version} $out/lib/libzita-convolver.so.${lib.versions.major version}
''; '';
meta = { meta = {
description = "Convolution library by Fons Adriaensen"; description = "Convolution library by Fons Adriaensen";
version = version; version = version;
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html"; homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/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 }: { lib, stdenv, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "zita-resampler"; pname = "zita-resampler";
@ -26,8 +26,8 @@ stdenv.mkDerivation rec {
description = "Resample library by Fons Adriaensen"; description = "Resample library by Fons Adriaensen";
version = version; version = version;
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html"; homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/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

@ -14,9 +14,9 @@ stdenv.mkDerivation rec {
name = "audiofile-0.3.6"; name = "audiofile-0.3.6";
buildInputs = buildInputs =
stdenv.lib.optionals stdenv.isLinux [ lib.optionals stdenv.isLinux [
alsaLib alsaLib
] ++ stdenv.lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
CoreServices AudioUnit CoreServices AudioUnit
]; ];
@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
}) })
]; ];
meta = with stdenv.lib; { meta = with lib; {
description = "Library for reading and writing audio files in various formats"; description = "Library for reading and writing audio files in various formats";
homepage = "http://www.68k.org/~michael/audiofile/"; homepage = "http://www.68k.org/~michael/audiofile/";
license = licenses.lgpl21Plus; license = licenses.lgpl21Plus;

View file

@ -1,4 +1,4 @@
{ fetchurl, fetchpatch, stdenv, pkg-config, libdaemon, dbus, perlPackages { fetchurl, fetchpatch, lib, stdenv, pkg-config, libdaemon, dbus, perlPackages
, expat, gettext, intltool, glib, libiconv, writeShellScriptBin, libevent , expat, gettext, intltool, glib, libiconv, writeShellScriptBin, libevent
, gtk3Support ? false, gtk3 ? null , gtk3Support ? false, gtk3 ? null
, qt4 ? null , qt4 ? null
@ -17,7 +17,7 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "avahi${stdenv.lib.optionalString withLibdnssdCompat "-compat"}-${version}"; name = "avahi${lib.optionalString withLibdnssdCompat "-compat"}-${version}";
version = "0.8"; version = "0.8";
src = fetchurl { src = fetchurl {
@ -36,32 +36,32 @@ stdenv.mkDerivation rec {
buildInputs = [ libdaemon dbus glib expat libiconv libevent ] buildInputs = [ libdaemon dbus glib expat libiconv libevent ]
++ (with perlPackages; [ perl XMLParser ]) ++ (with perlPackages; [ perl XMLParser ])
++ (stdenv.lib.optional gtk3Support gtk3) ++ (lib.optional gtk3Support gtk3)
++ (stdenv.lib.optional qt4Support qt4) ++ (lib.optional qt4Support qt4)
++ (stdenv.lib.optional qt5Support qt5); ++ (lib.optional qt5Support qt5);
propagatedBuildInputs = propagatedBuildInputs =
stdenv.lib.optionals withPython (with python.pkgs; [ python pygobject3 dbus-python ]); lib.optionals withPython (with python.pkgs; [ python pygobject3 dbus-python ]);
nativeBuildInputs = [ pkg-config pkg-config-helper gettext intltool glib ]; nativeBuildInputs = [ pkg-config pkg-config-helper gettext intltool glib ];
configureFlags = configureFlags =
[ "--disable-qt3" "--disable-gdbm" "--disable-mono" [ "--disable-qt3" "--disable-gdbm" "--disable-mono"
"--disable-gtk" "--with-dbus-sys=${placeholder "out"}/share/dbus-1/system.d" "--disable-gtk" "--with-dbus-sys=${placeholder "out"}/share/dbus-1/system.d"
(stdenv.lib.enableFeature gtk3Support "gtk3") (lib.enableFeature gtk3Support "gtk3")
"--${if qt4Support then "enable" else "disable"}-qt4" "--${if qt4Support then "enable" else "disable"}-qt4"
"--${if qt5Support then "enable" else "disable"}-qt5" "--${if qt5Support then "enable" else "disable"}-qt5"
(stdenv.lib.enableFeature withPython "python") (lib.enableFeature withPython "python")
"--localstatedir=/var" "--with-distro=none" "--localstatedir=/var" "--with-distro=none"
# A systemd unit is provided by the avahi-daemon NixOS module # A systemd unit is provided by the avahi-daemon NixOS module
"--with-systemdsystemunitdir=no" ] "--with-systemdsystemunitdir=no" ]
++ stdenv.lib.optional withLibdnssdCompat "--enable-compat-libdns_sd" ++ lib.optional withLibdnssdCompat "--enable-compat-libdns_sd"
# autoipd won't build on darwin # autoipd won't build on darwin
++ stdenv.lib.optional stdenv.isDarwin "--disable-autoipd"; ++ lib.optional stdenv.isDarwin "--disable-autoipd";
NIX_CFLAGS_COMPILE = "-DAVAHI_SERVICE_DIR=\"/etc/avahi/services\""; NIX_CFLAGS_COMPILE = "-DAVAHI_SERVICE_DIR=\"/etc/avahi/services\"";
preBuild = stdenv.lib.optionalString stdenv.isDarwin '' preBuild = lib.optionalString stdenv.isDarwin ''
sed -i '20 i\ sed -i '20 i\
#define __APPLE_USE_RFC_2292' \ #define __APPLE_USE_RFC_2292' \
avahi-core/socket.c avahi-core/socket.c
@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
postInstall = postInstall =
# Maintain compat for mdnsresponder and howl # Maintain compat for mdnsresponder and howl
stdenv.lib.optionalString withLibdnssdCompat '' lib.optionalString withLibdnssdCompat ''
ln -s avahi-compat-libdns_sd/dns_sd.h "$out/include/dns_sd.h" ln -s avahi-compat-libdns_sd/dns_sd.h "$out/include/dns_sd.h"
''; '';
/* # these don't exist (anymore?) /* # these don't exist (anymore?)
@ -77,7 +77,7 @@ stdenv.mkDerivation rec {
ln -s avahi-compat-howl.pc $out/lib/pkgconfig/howl.pc ln -s avahi-compat-howl.pc $out/lib/pkgconfig/howl.pc
*/ */
meta = with stdenv.lib; { meta = with lib; {
description = "mDNS/DNS-SD implementation"; description = "mDNS/DNS-SD implementation";
homepage = "http://avahi.org"; homepage = "http://avahi.org";
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, boost, python2}: { lib, stdenv, fetchurl, cmake, boost, python2}:
let version = "1.8.2"; in let version = "1.8.2"; in
@ -22,8 +22,8 @@ stdenv.mkDerivation {
meta = { meta = {
description = "A C++ library which implements parts of the Avro Specification"; description = "A C++ library which implements parts of the Avro Specification";
homepage = "https://avro.apache.org/"; homepage = "https://avro.apache.org/";
license = stdenv.lib.licenses.asl20; license = lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [ rasendubi ]; maintainers = with lib.maintainers; [ rasendubi ];
platforms = stdenv.lib.platforms.all; platforms = lib.platforms.all;
}; };
} }

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