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

master
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 {
name = "AntTweakBar-1.16";
@ -26,8 +26,8 @@ stdenv.mkDerivation {
to interactively tweak parameters on-screen
'';
homepage = "http://anttweakbar.sourceforge.net/";
license = stdenv.lib.licenses.zlib;
maintainers = [ stdenv.lib.maintainers.razvan ];
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.zlib;
maintainers = [ lib.maintainers.razvan ];
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 {
version = "4.14.2";
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
doCheck = false;
meta = with stdenv.lib; {
meta = with lib; {
description = "Computational Geometry Algorithms Library";
homepage = "http://cgal.org";
license = with licenses; [ gpl3Plus lgpl3Plus];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
{ stdenv, darwin, fetchurl, SDL2 }:
{ lib, stdenv, darwin, fetchurl, SDL2 }:
stdenv.mkDerivation rec {
pname = "SDL2_gfx";
@ -10,12 +10,12 @@ stdenv.mkDerivation rec {
};
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")]
++ 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";
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 {
pname = "SDL2_image";
@ -10,14 +10,14 @@ stdenv.mkDerivation rec {
};
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;
meta = with stdenv.lib; {
meta = with lib; {
description = "SDL image library";
homepage = "http://www.libsdl.org/projects/SDL_image/";
platforms = platforms.unix;

View File

@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
, pkg-config
, AudioToolbox
@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
buildInputs = lib.optionals stdenv.isDarwin [
AudioToolbox
AudioUnit
CoreServices
@ -51,12 +51,12 @@ stdenv.mkDerivation rec {
"--disable-music-mp3-mpg123-shared"
"--disable-music-opus-shared"
"--disable-music-midi-fluidsynth-shared"
] ++ stdenv.lib.optionals stdenv.isDarwin [
] ++ lib.optionals stdenv.isDarwin [
"--disable-sdltest"
"--disable-smpegtest"
];
meta = with stdenv.lib; {
meta = with lib; {
description = "SDL multi-channel audio mixer library";
platforms = platforms.unix;
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 {
pname = "SDL2_net";
@ -9,13 +9,13 @@ stdenv.mkDerivation rec {
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 ];
meta = with stdenv.lib; {
meta = with lib; {
description = "SDL multiplatform networking library";
homepage = "https://www.libsdl.org/projects/SDL_net";
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 {
pname = "SDL2_ttf";
@ -9,12 +9,12 @@ stdenv.mkDerivation rec {
sha256 = "0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59";
};
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
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";
platforms = platforms.unix;
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 {
pname = "SDL_Pango";
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [ SDL pango ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Connects the Pango rendering engine to SDL";
license = licenses.lgpl21Plus;
platforms = platforms.all;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, SDL }:
{ lib, stdenv, fetchurl, SDL }:
stdenv.mkDerivation rec {
pname = "SDL_gfx";
@ -12,9 +12,9 @@ stdenv.mkDerivation rec {
buildInputs = [ SDL ] ;
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";
longDescription = ''

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, SDL2, libGLU }:
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, libGLU }:
stdenv.mkDerivation {
pname = "SDL_gpu-unstable";
@ -26,7 +26,7 @@ stdenv.mkDerivation {
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";
homepage = "https://github.com/grimfang4/sdl-gpu";
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 {
pname = "SDL_image";
@ -22,11 +22,11 @@ stdenv.mkDerivation rec {
"--disable-jpg-shared"
"--disable-png-shared"
"--disable-tif-shared"
] ++ stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
] ++ lib.optional stdenv.isDarwin "--disable-sdltest";
buildInputs = [ SDL libpng libjpeg libtiff libungif libXpm ];
meta = with stdenv.lib; {
meta = with lib; {
description = "SDL image library";
homepage = "http://www.libsdl.org/projects/SDL_image/";
maintainers = with maintainers; [ lovek323 ];

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, SDL, freetype }:
{ lib, stdenv, fetchurl, fetchpatch, SDL, freetype }:
stdenv.mkDerivation rec {
pname = "SDL_ttf";
@ -21,9 +21,9 @@ stdenv.mkDerivation rec {
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";
license = licenses.zlib;
platforms = platforms.all;

View File

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

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{lib, stdenv, fetchurl}:
stdenv.mkDerivation rec {
pname = "a52dec";
@ -15,11 +15,11 @@ stdenv.mkDerivation rec {
# fails 1 out of 1 tests with "BAD GLOBAL SYMBOLS" on i686
# 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
doCheck = !stdenv.isi686;
meta = with stdenv.lib; {
meta = with lib; {
description = "ATSC A/52 stream decoder";
homepage = "https://liba52.sourceforge.net/";
platforms = platforms.unix;

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, ncurses, automake}:
{lib, stdenv, fetchurl, ncurses, automake}:
stdenv.mkDerivation {
name = "aalib-1.4rc5";
@ -11,7 +11,7 @@ stdenv.mkDerivation {
outputs = [ "bin" "dev" "out" "man" "info" ];
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
preConfigure = ''
@ -35,7 +35,7 @@ stdenv.mkDerivation {
meta = {
description = "ASCII art graphics library";
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.lgpl2;
platforms = lib.platforms.unix;
license = lib.licenses.lgpl2;
};
}

View File

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

View File

@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
, fetchpatch
, 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";
homepage = "https://www.freedesktop.org/wiki/Software/AccountsService";
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 {
pname = "ace";
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
> include/makeinclude/platform_macros.GNU
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "ADAPTIVE Communication Environment";
homepage = "http://www.dre.vanderbilt.edu/~schmidt/ACE.html";
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
# cannot use fetchpatch! All mutable patches (generated by GitHub or
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
patchShebangs .
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://savannah.nongnu.org/projects/acl";
description = "Library and tools for manipulating access control lists";
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
}:
@ -15,14 +15,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib curl expat openssl python3 ]
++ stdenv.lib.optionals stdenv.isLinux [ fuse ];
++ lib.optionals stdenv.isLinux [ fuse ];
meta = {
homepage = "http://afflib.sourceforge.net/";
description = "Advanced forensic format library";
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.bsdOriginal;
maintainers = [ stdenv.lib.maintainers.raskin ];
platforms = lib.platforms.unix;
license = lib.licenses.bsdOriginal;
maintainers = [ lib.maintainers.raskin ];
inherit version;
downloadPage = "https://github.com/sshock/AFFLIBv3/tags";
};

View File

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

View File

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

View File

@ -13,7 +13,7 @@ mkDerivation rec {
sha256 = "09ri3jmgp9jjwi1mzv4c3w6rvcmyx6spa2qxpwlcn0f4bmfva6wm";
};
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/ryanorendorff/functional-linear-algebra";
description = ''
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 {
version = "1.5.0";
@ -22,10 +22,10 @@ mkDerivation (rec {
meta = {
homepage = "https://github.com/cedille/ial";
description = "Agda standard library developed at Iowa";
license = stdenv.lib.licenses.free;
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.free;
platforms = lib.platforms.unix;
# broken since Agda 2.6.1
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 {
pname = "standard-library";
@ -16,11 +16,11 @@ mkDerivation rec {
runhaskell GenerateEverything.hs
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
description = "A standard library for use with the Agda compiler";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.mit;
platforms = lib.platforms.unix;
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 }:
stdenv.mkDerivation rec {
@ -40,8 +40,8 @@ stdenv.mkDerivation rec {
of course, AGG can do much more than that.
'';
license = stdenv.lib.licenses.gpl2Plus;
license = lib.licenses.gpl2Plus;
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
{
@ -34,7 +34,7 @@ stdenv.mkDerivation rec
mv $out/include $dev/
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "An open framework for storing and sharing scene data";
homepage = "http://alembic.io/";
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
, libXxf86dga, libXxf86misc
, libXxf86vm, openal, libGLU, libGL, libjpeg, flac
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A game programming library";
homepage = "https://liballeg.org/";
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
, libXxf86dga, libXxf86misc
, libXxf86vm, openal, libGLU, libGL }:
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DCMAKE_SKIP_RPATH=ON" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A game programming library";
homepage = "https://liballeg.org/";
license = licenses.free; # giftware

View File

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

View File

@ -66,7 +66,7 @@ in stdenv.mkDerivation rec {
cmakeDir = "../drivers/xgl";
# 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 = ''
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
dontPatchELF = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "AMD Open Source Driver For Vulkan";
homepage = "https://github.com/GPUOpen-Drivers/AMDVLK";
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 {
pname = "aml";
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ meson pkg-config ninja ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Another main loop";
inherit (src.meta) homepage;
license = licenses.isc;

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, substituteAll
, docbook_xml_dtd_42
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "hughsie";
repo = "appstream-glib";
rev = stdenv.lib.replaceStrings [ "." "-" ] [ "_" "_" ] name;
rev = lib.replaceStrings [ "." "-" ] [ "_" "_" ] name;
sha256 = "12s7d3nqjs1fldnppbg2mkjg4280f3h8yzj3q1hiz3chh1w0vjbx";
};
@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
moveToOutput "share/installed-tests" "$installedTests"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Objects and helper methods to read and write AppStream metadata";
homepage = "https://people.freedesktop.org/~hughsient/appstream-glib/";
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
, libstemmer, glib, xapian, libxml2, libyaml, gobject-introspection
, pcre, itstool, gperf, vala, lmdb, libsoup
@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
"-Dvapi=true"
];
meta = with stdenv.lib; {
meta = with lib; {
description = "Software metadata handling library";
homepage = "https://www.freedesktop.org/wiki/Distributions/AppStream/";
longDescription = ''

View File

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

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "apr-1.7.0";
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
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
postPatch = ''
@ -23,22 +23,22 @@ stdenv.mkDerivation rec {
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_func_setpgrp_void=0"
"apr_cv_process_shared_works=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.
# Based on ftp://sourceware.org/pub/cygwin/release/libapr1/libapr1-1.3.8-2-src.tar.bz2
"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;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://apr.apache.org/";
description = "The Apache Portable Runtime library";
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
}:
@ -27,7 +27,7 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config gettext ];
meta = with stdenv.lib; {
meta = with lib; {
description = "An interface to banking tasks, file formats and country information";
homepage = "https://www.aquamaniac.de/";
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
# GUI support
@ -34,7 +34,7 @@ in stdenv.mkDerivation rec {
isRelative = path: builtins.substring 0 1 path != "/";
mkSearchPath = path: ''
p; g; s,\<PLUGINDIR\>,"${path}",g;
'' + stdenv.lib.optionalString (isRelative path) ''
'' + lib.optionalString (isRelative path) ''
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/ {
/^#if/,/^#endif/ {
H; /^#endif/ {
${stdenv.lib.concatMapStrings mkSearchPath pluginSearchPaths}
${lib.concatMapStrings mkSearchPath pluginSearchPaths}
}
}
}' src/gwenhywfar.c
@ -57,7 +57,7 @@ in stdenv.mkDerivation rec {
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";
homepage = "http://www2.aquamaniac.de/sites/download/packages.php?package=01&showall=1";
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
inherit ((import ./sources.nix).libchipcard) sha256 releaseId version;
@ -19,7 +19,7 @@ in stdenv.mkDerivation rec {
configureFlags = [ "--with-gwen-dir=${gwenhywfar}" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Library for access to chipcards";
homepage = "https://www.aquamaniac.de/rdm/projects/libchipcard";
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
, wrapGAppsHook
, gstreamer ? null
@ -19,11 +19,11 @@
let
gstreamerAtLeastVersion1 =
stdenv.lib.all
(pkg: pkg != null && stdenv.lib.versionAtLeast (stdenv.lib.getVersion pkg) "1.0")
lib.all
(pkg: pkg != null && lib.versionAtLeast (stdenv.lib.getVersion pkg) "1.0")
[ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ];
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 -> libnotify != null;
assert enableViewer -> gnome3 != null;
@ -49,26 +49,26 @@ in
pkg-config
intltool
gtk-doc
] ++ stdenv.lib.optional enableViewer wrapGAppsHook;
] ++ lib.optional enableViewer wrapGAppsHook;
buildInputs =
[ glib libxml2 ]
++ stdenv.lib.optional enableUsb libusb1
++ stdenv.lib.optional enablePacketSocket audit
++ stdenv.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.optional enableUsb libusb1
++ lib.optional enablePacketSocket audit
++ lib.optionals (enableViewer || enableGstPlugin) [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad ]
++ lib.optionals (enableViewer) [ libnotify gtk3 gnome3.adwaita-icon-theme ];
preAutoreconf = ''./autogen.sh'';
configureFlags =
stdenv.lib.optional enableUsb "--enable-usb"
++ stdenv.lib.optional enablePacketSocket "--enable-packet-socket"
++ stdenv.lib.optional enableViewer "--enable-viewer"
++ stdenv.lib.optional enableGstPlugin
lib.optional enableUsb "--enable-usb"
++ lib.optional enablePacketSocket "--enable-packet-socket"
++ lib.optional enableViewer "--enable-viewer"
++ lib.optional enableGstPlugin
(if gstreamerAtLeastVersion1 then "--enable-gst-plugin" else "--enable-gst-0.10-plugin")
++ stdenv.lib.optional enableCppTest "--enable-cpp-test"
++ stdenv.lib.optional enableFastHeartbeat "--enable-fast-heartbeat"
++ stdenv.lib.optional enableAsan "--enable-asan";
++ lib.optional enableCppTest "--enable-cpp-test"
++ lib.optional enableFastHeartbeat "--enable-fast-heartbeat"
++ lib.optional enableAsan "--enable-asan";
postPatch = ''
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.
'';
homepage = "https://aravisproject.github.io/docs/aravis-0.5";
license = stdenv.lib.licenses.lgpl2;
license = lib.licenses.lgpl2;
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 {
pname = "arb";
version = "2.17.0";
@ -16,11 +16,11 @@ stdenv.mkDerivation rec {
"--with-flint=${flint}"
];
doCheck = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "A library for arbitrary-precision interval arithmetic";
homepage = "https://arblib.org/";
license = stdenv.lib.licenses.lgpl21Plus;
license = lib.licenses.lgpl21Plus;
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
patch-argp-fmtstream = fetchpatch {
@ -28,12 +28,12 @@ stdenv.mkDerivation {
};
patches =
stdenv.lib.optionals stdenv.hostPlatform.isDarwin [ patch-argp-fmtstream ]
++ stdenv.lib.optionals stdenv.hostPlatform.isLinux [ patch-throw-in-funcdef patch-shared ];
lib.optionals stdenv.hostPlatform.isDarwin [ patch-argp-fmtstream ]
++ 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 = ''
mkdir -p $out/lib $out/include
@ -47,7 +47,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://www.lysator.liu.se/~nisse/misc/";
description = "Standalone version of arguments parsing functions from GLIBC";
platforms = with platforms; darwin ++ linux;

View File

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

View File

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

View File

@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
buildFlags =
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";
description = "Sample implementation of the ARIB STD-B25 standard";
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 {
pname = "armadillo";
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
patches = [ ./use-unix-config-on-OS-X.patch ];
meta = with stdenv.lib; {
meta = with lib; {
description = "C++ linear algebra library";
homepage = "http://arma.sourceforge.net";
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
, blas, lapack, boost, mesa, libGLU, libGL
, freeimage, python, clfft, clblas
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
"-DAF_BUILD_OPENCL=OFF"
"-DAF_BUILD_EXAMPLES=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 ];
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
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}"
'';
@ -48,11 +48,11 @@ stdenv.mkDerivation rec {
libGLU libGL
mesa freeimage
boost.out boost.dev
] ++ (stdenv.lib.optional stdenv.isLinux ocl-icd)
++ (stdenv.lib.optional cudaSupport cudatoolkit)
++ (stdenv.lib.optional buildDocs doxygen);
] ++ (lib.optional stdenv.isLinux ocl-icd)
++ (lib.optional cudaSupport cudatoolkit)
++ (lib.optional buildDocs doxygen);
meta = with stdenv.lib; {
meta = with lib; {
description = "A general-purpose library for parallel and massively-parallel computations";
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.";

View File

@ -1,8 +1,8 @@
{stdenv, fetchurl, boost, openssl
{lib, stdenv, fetchurl, boost, openssl
, version, sha256, ...
}:
with stdenv.lib;
with lib;
stdenv.mkDerivation {
pname = "asio";
@ -21,7 +21,7 @@ stdenv.mkDerivation {
homepage = "http://asio.sourceforge.net/";
description = "Cross-platform C++ library for network and low-level I/O programming";
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;
};
}

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
, meson
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
version = "2.38.0";
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=";
};
@ -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)";
homepage = "https://gitlab.gnome.org/GNOME/at-spi2-atk";
license = licenses.lgpl21Plus;

View File

@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchurl
, meson
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
version = "2.38.0";
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=";
};
@ -51,11 +51,11 @@ stdenv.mkDerivation rec {
postFixup = ''
# Cannot use wrapGAppsHook'due to a dependency cycle
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}
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Assistive Technology Service Provider Interface protocol definitions and daemon for D-Bus";
homepage = "https://gitlab.gnome.org/GNOME/at-spi2-core";
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
}:
@ -11,14 +11,14 @@ stdenv.mkDerivation rec {
name = "${pname}-${version}";
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";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ meson ninja pkg-config gettext gobject-introspection glib ]
++ stdenv.lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
propagatedBuildInputs = [
# Required by atk.pc
@ -52,10 +52,10 @@ stdenv.mkDerivation rec {
homepage = "http://library.gnome.org/devel/atk/";
license = stdenv.lib.licenses.lgpl2Plus;
license = lib.licenses.lgpl2Plus;
maintainers = with stdenv.lib.maintainers; [ raskin ];
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
maintainers = with lib.maintainers; [ raskin ];
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 {
pname = "atkmm";
version = "2.28.0";
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";
};
@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
meta = {
description = "C++ wrappers for ATK accessibility toolkit";
license = stdenv.lib.licenses.lgpl21Plus;
license = lib.licenses.lgpl21Plus;
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
# cannot use fetchpatch! All mutable patches (generated by GitHub or
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
done
'';
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://savannah.nongnu.org/projects/attr/";
description = "Library and tools for manipulating extended attributes";
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
}:
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config python wafHook ];
buildInputs = [ alsaLib fftw libjack2 libsamplerate libsndfile ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Library for audio labelling";
homepage = "https://aubio.org/";
license = licenses.gpl2;

View File

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

View File

@ -1,4 +1,4 @@
{ stdenv, unzip, fetchurl }:
{ lib, stdenv, unzip, fetchurl }:
# Upstream changes files in-place, to update:
# 1. Check latest version at http://www.un4seen.com/
@ -55,7 +55,7 @@ let
install -m644 -t $out/include/ ${bass.h}
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Shareware audio library";
homepage = "https://www.un4seen.com/";
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 {
pname = "libbs2b";
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://bs2b.sourceforge.net/";
description = "Bauer stereophonic-to-binaural DSP library";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.unix;
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
}

View File

@ -1,11 +1,11 @@
{ stdenv, fetchFromBitbucket, cmake, removeReferencesTo }:
{ lib, stdenv, fetchFromBitbucket, cmake, removeReferencesTo }:
let
version = "0.6.3";
in stdenv.mkDerivation {
pname = "libgme";
inherit version;
meta = with stdenv.lib; {
meta = with lib; {
description = "A collection of video game music chip emulators";
homepage = "https://bitbucket.org/mpyne/game-music-emu/overview";
license = licenses.lgpl21;
@ -26,7 +26,7 @@ in stdenv.mkDerivation {
# it doesn't.
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)"
'';
}

View File

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

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, zlib }:
{ lib, stdenv, fetchFromGitHub, cmake, zlib }:
stdenv.mkDerivation rec {
pname = "libmysofa";
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DBUILD_TESTS=OFF" "-DCODE_COVERAGE=OFF" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Reader for AES SOFA files to get better HRTFs";
homepage = "https://github.com/hoene/libmysofa";
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 {
version = "1.3";
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ glib ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A C library for reading and writing Standard MIDI Files";
homepage = "https://github.com/stump/libsmf";
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 {
pname = "lilv";
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildInputs = [ serd sord sratom ];
propagatedBuildInputs = [ lv2 ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://drobilla.net/software/lilv";
description = "A C library to make the use of LV2 plugins";
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 {
pname = "lv2";
@ -12,9 +12,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config wafHook ];
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";
description = "A plugin standard for audio systems";
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 {
pname = "lvtk";
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
"--boost-libs=${boost.out}/lib"
];
meta = with stdenv.lib; {
meta = with lib; {
description = "A set C++ wrappers around the LV2 C API";
homepage = "https://lvtk.org/";
license = licenses.gpl3;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake }:
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "mbelib";
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
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";
homepage = https://github.com/szechyjs/mbelib;
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 {
pname = "ntk";
@ -19,8 +19,8 @@ stdenv.mkDerivation rec {
description = "Fork of FLTK 1.3.0 with additional functionality";
version = version;
homepage = "http://non.tuxfamily.org/";
license = stdenv.lib.licenses.lgpl21;
maintainers = with stdenv.lib.maintainers; [ magnetophon nico202 ];
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.lgpl21;
maintainers = with lib.maintainers; [ magnetophon nico202 ];
platforms = lib.platforms.linux;
};
}

View File

@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, fetchFromGitHub
, fetchpatch
, kissfft
@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
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";
homepage = "https://code.soundsoftware.ac.uk/projects/qm-dsp";
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 {
pname = "raul";
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config wafHook ];
buildInputs = [ boost gtk2 python ];
meta = with stdenv.lib; {
meta = with lib; {
description = "A C++ utility library primarily aimed at audio/musical applications";
homepage = "http://drobilla.net/software/raul";
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 {
version = "5.1.0";
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
./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";
homepage = "http://www.music.mcgill.ca/~gary/rtaudio/";
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 {
version = "4.0.0";
@ -24,8 +24,8 @@ stdenv.mkDerivation rec {
meta = {
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/";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.magnetophon ];
platforms = with stdenv.lib.platforms; linux ++ darwin;
license = lib.licenses.mit;
maintainers = [ lib.maintainers.magnetophon ];
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 {
pname = "sratom";
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config wafHook python3 ];
buildInputs = [ lv2 serd sord ];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "http://drobilla.net/software/sratom";
description = "A library for serialising LV2 atoms to/from RDF";
license = licenses.mit;

View File

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

View File

@ -1,7 +1,7 @@
# set VAMP_PATH ?
# 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 {
pname = "vamp-plugin-sdk";
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = with lib; {
description = "Audio processing plugin system for plugins that extract descriptive information from audio data";
homepage = "https://vamp-plugins.org/";
license = licenses.bsd3;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl , alsaLib, }:
{ lib, stdenv, fetchurl , alsaLib, }:
stdenv.mkDerivation rec {
pname = "zita-alsa-pcmi";
@ -57,8 +57,8 @@ stdenv.mkDerivation rec {
description = "The successor of clalsadrv, provides easy access to ALSA PCM devices";
version = version;
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
license = stdenv.lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.magnetophon ];
platforms = lib.platforms.linux;
};
}

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fftwFloat }:
{ lib, stdenv, fetchurl, fftwFloat }:
stdenv.mkDerivation rec {
pname = "zita-convolver";
@ -22,15 +22,15 @@ stdenv.mkDerivation rec {
postInstall = ''
# 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 = {
description = "Convolution library by Fons Adriaensen";
version = version;
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.gpl2;
maintainers = [ lib.maintainers.magnetophon ];
platforms = lib.platforms.linux;
};
}

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "zita-resampler";
@ -26,8 +26,8 @@ stdenv.mkDerivation rec {
description = "Resample library by Fons Adriaensen";
version = version;
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux;
license = lib.licenses.gpl2;
maintainers = [ lib.maintainers.magnetophon ];
platforms = lib.platforms.linux;
};
}

View File

@ -14,9 +14,9 @@ stdenv.mkDerivation rec {
name = "audiofile-0.3.6";
buildInputs =
stdenv.lib.optionals stdenv.isLinux [
lib.optionals stdenv.isLinux [
alsaLib
] ++ stdenv.lib.optionals stdenv.isDarwin [
] ++ lib.optionals stdenv.isDarwin [
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";
homepage = "http://www.68k.org/~michael/audiofile/";
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
, gtk3Support ? false, gtk3 ? null
, qt4 ? null
@ -17,7 +17,7 @@ let
in
stdenv.mkDerivation rec {
name = "avahi${stdenv.lib.optionalString withLibdnssdCompat "-compat"}-${version}";
name = "avahi${lib.optionalString withLibdnssdCompat "-compat"}-${version}";
version = "0.8";
src = fetchurl {
@ -36,32 +36,32 @@ stdenv.mkDerivation rec {
buildInputs = [ libdaemon dbus glib expat libiconv libevent ]
++ (with perlPackages; [ perl XMLParser ])
++ (stdenv.lib.optional gtk3Support gtk3)
++ (stdenv.lib.optional qt4Support qt4)
++ (stdenv.lib.optional qt5Support qt5);
++ (lib.optional gtk3Support gtk3)
++ (lib.optional qt4Support qt4)
++ (lib.optional qt5Support qt5);
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 ];
configureFlags =
[ "--disable-qt3" "--disable-gdbm" "--disable-mono"
"--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 qt5Support then "enable" else "disable"}-qt5"
(stdenv.lib.enableFeature withPython "python")
(lib.enableFeature withPython "python")
"--localstatedir=/var" "--with-distro=none"
# A systemd unit is provided by the avahi-daemon NixOS module
"--with-systemdsystemunitdir=no" ]
++ stdenv.lib.optional withLibdnssdCompat "--enable-compat-libdns_sd"
++ lib.optional withLibdnssdCompat "--enable-compat-libdns_sd"
# 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\"";
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
preBuild = lib.optionalString stdenv.isDarwin ''
sed -i '20 i\
#define __APPLE_USE_RFC_2292' \
avahi-core/socket.c
@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
postInstall =
# 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"
'';
/* # these don't exist (anymore?)
@ -77,7 +77,7 @@ stdenv.mkDerivation rec {
ln -s avahi-compat-howl.pc $out/lib/pkgconfig/howl.pc
*/
meta = with stdenv.lib; {
meta = with lib; {
description = "mDNS/DNS-SD implementation";
homepage = "http://avahi.org";
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
@ -22,8 +22,8 @@ stdenv.mkDerivation {
meta = {
description = "A C++ library which implements parts of the Avro Specification";
homepage = "https://avro.apache.org/";
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [ rasendubi ];
platforms = stdenv.lib.platforms.all;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ rasendubi ];
platforms = lib.platforms.all;
};
}

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