Merge pull request #56088 from oxij/tree/move-defaults-to-package-trivial-leftovers

all-packages.nix: move defaults to package files continues^3
This commit is contained in:
Michael Raskin 2019-02-20 13:12:43 +00:00 committed by GitHub
commit 828759f9b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 113 additions and 158 deletions

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, zlib, pkgconfig, mpg123, libogg, libvorbis, portaudio, libsndfile, flac { config, stdenv, fetchurl, zlib, pkgconfig, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
, usePulseAudio ? false, libpulseaudio }: , usePulseAudio ? config.pulseaudio or false, libpulseaudio }:
let let
version = "0.4.1"; version = "0.4.1";

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, pkgconfig, libconfig, { config, stdenv, fetchFromGitHub, pkgconfig, libconfig
gtkmm2, glibmm, libxml2, libsecret, curl, libzip, , gtkmm2, glibmm, libxml2, libsecret, curl, libzip
librsvg, gst_all_1, autoreconfHook, makeWrapper, , librsvg, gst_all_1, autoreconfHook, makeWrapper
useUnrar ? false, unrar , useUnrar ? config.ahoviewer.useUnrar or false, unrar
}: }:
assert useUnrar -> unrar != null; assert useUnrar -> unrar != null;

View File

@ -1,7 +1,7 @@
{ lib, stdenv, fetchurl { config, lib, stdenv, fetchurl
, enableAlsa ? true, alsaLib ? null , enableAlsa ? true, alsaLib ? null
, enableLibao ? true, libao ? null , enableLibao ? true, libao ? null
, enableLame ? false, lame ? null , enableLame ? config.sox.enableLame or false, lame ? null
, enableLibmad ? true, libmad ? null , enableLibmad ? true, libmad ? null
, enableLibogg ? true, libogg ? null, libvorbis ? null , enableLibogg ? true, libogg ? null, libvorbis ? null
, enableFLAC ? true, flac ? null , enableFLAC ? true, flac ? null

View File

@ -1,4 +1,6 @@
{ pkgs, useMupdf ? true, synctexSupport ? true }: { config, pkgs
, useMupdf ? config.zathura.useMupdf or true
, synctexSupport ? true }:
let let
callPackage = pkgs.newScope self; callPackage = pkgs.newScope self;

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, wrapGAppsHook, autoreconfHook { config, fetchurl, stdenv, wrapGAppsHook, autoreconfHook
, curl, dbus, dbus-glib, enchant, gtk2, gnutls, gnupg, gpgme, hicolor-icon-theme , curl, dbus, dbus-glib, enchant, gtk2, gnutls, gnupg, gpgme, hicolor-icon-theme
, libarchive, libcanberra-gtk2, libetpan, libnotify, libsoup, libxml2, networkmanager , libarchive, libcanberra-gtk2, libetpan, libnotify, libsoup, libxml2, networkmanager
, openldap, perl, pkgconfig, poppler, python, shared-mime-info, webkitgtk24x-gtk2 , openldap, perl, pkgconfig, poppler, python, shared-mime-info, webkitgtk24x-gtk2
@ -10,7 +10,7 @@
# gdata requires libgdata # gdata requires libgdata
# geolocation requires libchamplain # geolocation requires libchamplain
, enableLdap ? false , enableLdap ? false
, enableNetworkManager ? false , enableNetworkManager ? config.networking.networkmanager.enable or false
, enablePgp ? true , enablePgp ? true
, enablePluginArchive ? false , enablePluginArchive ? false
, enablePluginFancy ? false , enablePluginFancy ? false

View File

@ -1,9 +1,9 @@
{ stdenv { config, stdenv
, callPackage , callPackage
, lib , lib
, fetchurl , fetchurl
, unzip , unzip
, licenseAccepted ? false , licenseAccepted ? config.sc2-headless.accept_license or false
}: }:
if !licenseAccepted then throw '' if !licenseAccepted then throw ''

View File

@ -1,9 +1,9 @@
{ stdenv, fetchurl, fetchFromGitHub, makeWrapper { config, stdenv, fetchurl, fetchFromGitHub, makeWrapper
, docutils, perl, pkgconfig, python3, which, ffmpeg_4 , docutils, perl, pkgconfig, python3, which, ffmpeg_4
, freefont_ttf, freetype, libass, libpthreadstubs, mujs , freefont_ttf, freetype, libass, libpthreadstubs, mujs
, lua, libuchardet, libiconv ? null, darwin , lua, libuchardet, libiconv ? null, darwin
, waylandSupport ? false , waylandSupport ? stdenv.isLinux
, wayland ? null , wayland ? null
, wayland-protocols ? null , wayland-protocols ? null
, libxkbcommon ? null , libxkbcommon ? null
@ -24,25 +24,25 @@
, vulkan-headers ? null , vulkan-headers ? null
, vulkan-loader ? null , vulkan-loader ? null
, alsaSupport ? true, alsaLib ? null , alsaSupport ? stdenv.isLinux, alsaLib ? null
, bluraySupport ? true, libbluray ? null , bluraySupport ? true, libbluray ? null
, bs2bSupport ? true, libbs2b ? null , bs2bSupport ? true, libbs2b ? null
, cacaSupport ? true, libcaca ? null , cacaSupport ? true, libcaca ? null
, cmsSupport ? true, lcms2 ? null , cmsSupport ? true, lcms2 ? null
, drmSupport ? true, libdrm ? null , drmSupport ? stdenv.isLinux, libdrm ? null
, dvdnavSupport ? true, libdvdnav ? null , dvdnavSupport ? stdenv.isLinux, libdvdnav ? null
, dvdreadSupport ? true, libdvdread ? null , dvdreadSupport ? stdenv.isLinux, libdvdread ? null
, libpngSupport ? true, libpng ? null , libpngSupport ? true, libpng ? null
, pulseSupport ? true, libpulseaudio ? null , pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null
, rubberbandSupport ? true, rubberband ? null , rubberbandSupport ? stdenv.isLinux, rubberband ? null
, screenSaverSupport ? true, libXScrnSaver ? null , screenSaverSupport ? true, libXScrnSaver ? null
, sdl2Support ? true, SDL2 ? null , sdl2Support ? true, SDL2 ? null
, speexSupport ? true, speex ? null , speexSupport ? true, speex ? null
, theoraSupport ? true, libtheora ? null , theoraSupport ? true, libtheora ? null
, vaapiSupport ? true, libva ? null , vaapiSupport ? stdenv.isLinux, libva ? null
, vdpauSupport ? true, libvdpau ? null , vdpauSupport ? true, libvdpau ? null
, xineramaSupport ? true, libXinerama ? null , xineramaSupport ? stdenv.isLinux, libXinerama ? null
, xvSupport ? true, libXv ? null , xvSupport ? stdenv.isLinux, libXv ? null
, youtubeSupport ? true, youtube-dl ? null , youtubeSupport ? true, youtube-dl ? null
, archiveSupport ? false, libarchive ? null , archiveSupport ? false, libarchive ? null
, jackaudioSupport ? false, libjack2 ? null , jackaudioSupport ? false, libjack2 ? null
@ -92,7 +92,7 @@ let
"http://www.freehackers.org/~tnagy/release/waf-${wafVersion}" ]; "http://www.freehackers.org/~tnagy/release/waf-${wafVersion}" ];
sha256 = "0j7sbn3w6bgslvwwh5v9527w3gi2sd08kskrgxamx693y0b0i3ia"; sha256 = "0j7sbn3w6bgslvwwh5v9527w3gi2sd08kskrgxamx693y0b0i3ia";
}; };
luaEnv = lua.withPackages(ps: with ps; [ luasocket]); luaEnv = lua.withPackages(ps: with ps; [ luasocket ]);
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "mpv-${version}"; name = "mpv-${version}";

View File

@ -1,4 +1,4 @@
{ stdenv { config, stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, cmake , cmake
@ -26,9 +26,9 @@
, swig , swig
, python3 , python3
, alsaSupport ? false , alsaSupport ? stdenv.isLinux
, alsaLib , alsaLib
, pulseaudioSupport ? false , pulseaudioSupport ? config.pulseaudio or stdenv.isLinux
, libpulseaudio , libpulseaudio
}: }:

View File

@ -1,4 +1,4 @@
{stdenvNoCC, subversion, glibcLocales, sshSupport ? false, openssh ? null}: {stdenvNoCC, subversion, glibcLocales, sshSupport ? true, openssh ? null}:
{url, rev ? "HEAD", md5 ? "", sha256 ? "" {url, rev ? "HEAD", md5 ? "", sha256 ? ""
, ignoreExternals ? false, ignoreKeywords ? false, name ? null , ignoreExternals ? false, ignoreKeywords ? false, name ? null
, preferLocalBuild ? true }: , preferLocalBuild ? true }:

View File

@ -1,4 +1,4 @@
{ stdenv { config, stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, which , which
@ -14,7 +14,7 @@
, liburcu , liburcu
, libuuid , libuuid
, libkrb5 , libkrb5
, debug ? false , debug ? config.coreclr.debug or false
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {

View File

@ -17,7 +17,8 @@
, installjdk ? true , installjdk ? true
, pluginSupport ? true , pluginSupport ? true
, installjce ? false , installjce ? false
, licenseAccepted ? false , config
, licenseAccepted ? config.oraclejdk.accept_license or false
, glib , glib
, libxml2 , libxml2
, libav_0_8 , libav_0_8

View File

@ -1,5 +1,6 @@
{ lib, stdenv, zlib, lzo, libtasn1, nettle, pkgconfig, lzip { config, lib, stdenv, zlib, lzo, libtasn1, nettle, pkgconfig, lzip
, guileBindings, guile, perl, gmp, autogen, libidn, p11-kit, unbound, libiconv , perl, gmp, autogen, libidn, p11-kit, unbound, libiconv
, guileBindings ? config.gnutls.guile or false, guile
, tpmSupport ? true, trousers, nettools, gperftools, gperf, gettext, automake , tpmSupport ? true, trousers, nettools, gperftools, gperf, gettext, automake
, yacc, texinfo , yacc, texinfo

View File

@ -1,5 +1,6 @@
{ lib, stdenv, zlib, lzo, libtasn1, nettle, pkgconfig, lzip { config, lib, stdenv, zlib, lzo, libtasn1, nettle, pkgconfig, lzip
, guileBindings, guile, perl, gmp, autogen, libidn, p11-kit, libiconv , perl, gmp, autogen, libidn, p11-kit, libiconv
, guileBindings ? config.gnutls.guile or false, guile
, tpmSupport ? false, trousers, which, nettools, libunistring , tpmSupport ? false, trousers, which, nettools, libunistring
, unbound, dns-root-data, gettext , unbound, dns-root-data, gettext

View File

@ -1,4 +1,5 @@
{ stdenv, fetchurl, pkgconfig, gtk2, Carbon, useGTK ? false }: { config, stdenv, fetchurl, pkgconfig, gtk2, Carbon
, useGTK ? config.libiodbc.gtk or false }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libiodbc-3.52.12"; name = "libiodbc-3.52.12";

View File

@ -8,13 +8,13 @@
, enablePNG ? true, libpng , enablePNG ? true, libpng
, enableTIFF ? true, libtiff , enableTIFF ? true, libtiff
, enableWebP ? true, libwebp , enableWebP ? true, libwebp
, enableEXR ? (!stdenv.isDarwin), openexr, ilmbase , enableEXR ? !stdenv.isDarwin, openexr, ilmbase
, enableJPEG2K ? true, jasper , enableJPEG2K ? true, jasper
, enableEigen ? true, eigen , enableEigen ? true, eigen
, enableOpenblas ? true, openblas , enableOpenblas ? true, openblas
, enableContrib ? true , enableContrib ? true
, enableCuda ? (config.cudaSupport or false), cudatoolkit , enableCuda ? config.cudaSupport or false, cudatoolkit
, enableUnfree ? false , enableUnfree ? false
, enableIpp ? false , enableIpp ? false

View File

@ -8,13 +8,13 @@
, enablePNG ? true, libpng , enablePNG ? true, libpng
, enableTIFF ? true, libtiff , enableTIFF ? true, libtiff
, enableWebP ? true, libwebp , enableWebP ? true, libwebp
, enableEXR ? (!stdenv.isDarwin), openexr, ilmbase , enableEXR ? !stdenv.isDarwin, openexr, ilmbase
, enableJPEG2K ? true, jasper , enableJPEG2K ? true, jasper
, enableEigen ? true, eigen , enableEigen ? true, eigen
, enableOpenblas ? true, openblas , enableOpenblas ? true, openblas
, enableContrib ? true , enableContrib ? true
, enableCuda ? (config.cudaSupport or false), cudatoolkit , enableCuda ? config.cudaSupport or false, cudatoolkit
, enableUnfree ? false , enableUnfree ? false
, enableIpp ? false , enableIpp ? false

View File

@ -6,7 +6,8 @@
, cursorSupport ? true, libXcursor ? null , cursorSupport ? true, libXcursor ? null
, threadSupport ? true , threadSupport ? true
, mysqlSupport ? false, mysql ? null , mysqlSupport ? false, mysql ? null
, openglSupport ? false, libGLU_combined ? null, libXmu ? null , libGLSupported
, openglSupport ? libGLSupported, libGLU_combined ? null, libXmu ? null
, xlibsWrapper, xorgproto, zlib, libjpeg, libpng, which , xlibsWrapper, xorgproto, zlib, libjpeg, libpng, which
}: }:

View File

@ -1,6 +1,7 @@
{ stdenv, fetchurl, pkgconfig, gtk2, libXinerama, libSM, libXxf86vm, xorgproto { stdenv, fetchurl, pkgconfig, gtk2, libXinerama, libSM, libXxf86vm, xorgproto
, gstreamer, gst-plugins-base, GConf, libX11, cairo , gstreamer, gst-plugins-base, GConf, libX11, cairo
, withMesa ? true, libGLU ? null, libGL ? null , libGLSupported
, withMesa ? libGLSupported, libGLU ? null, libGL ? null
, compat24 ? false, compat26 ? true, unicode ? true, , compat24 ? false, compat26 ? true, unicode ? true,
}: }:

View File

@ -1,6 +1,7 @@
{ stdenv, fetchurl, pkgconfig, gtk2, libXinerama, libSM, libXxf86vm, xorgproto { stdenv, fetchurl, pkgconfig, gtk2, libXinerama, libSM, libXxf86vm, xorgproto
, gstreamer, gst-plugins-base, GConf, setfile , gstreamer, gst-plugins-base, GConf, setfile
, withMesa ? true, libGLU ? null, libGL ? null , libGLSupported
, withMesa ? libGLSupported, libGLU ? null, libGL ? null
, compat24 ? false, compat26 ? true, unicode ? true , compat24 ? false, compat26 ? true, unicode ? true
, Carbon ? null, Cocoa ? null, Kernel ? null, QuickTime ? null, AGL ? null , Carbon ? null, Cocoa ? null, Kernel ? null, QuickTime ? null, AGL ? null
}: }:

View File

@ -1,7 +1,8 @@
{ stdenv, fetchFromGitHub, fetchurl, fetchpatch, pkgconfig { stdenv, fetchFromGitHub, fetchurl, fetchpatch, pkgconfig
, gtk2, gtk3, libXinerama, libSM, libXxf86vm , gtk2, gtk3, libXinerama, libSM, libXxf86vm
, xorgproto, gstreamer, gst-plugins-base, GConf, setfile , xorgproto, gstreamer, gst-plugins-base, GConf, setfile
, withMesa ? true, libGLU ? null, libGL ? null , libGLSupported
, withMesa ? libGLSupported, libGLU ? null, libGL ? null
, compat24 ? false, compat26 ? true, unicode ? true , compat24 ? false, compat26 ? true, unicode ? true
, withGtk2 ? true , withGtk2 ? true
, withWebKit ? false, webkitgtk24x-gtk2 ? null, webkitgtk ? null , withWebKit ? false, webkitgtk24x-gtk2 ? null, webkitgtk ? null

View File

@ -1,6 +1,6 @@
{ pkgs ? import <nixpkgs> {} { config, pkgs ? import <nixpkgs> {}
, pkgs_i686 ? import <nixpkgs> { system = "i686-linux"; } , pkgs_i686 ? import <nixpkgs> { system = "i686-linux"; }
, licenseAccepted ? false , licenseAccepted ? config.android_sdk.accept_license or false
}: }:
rec { rec {

View File

@ -8,7 +8,10 @@
, python3 ? null , python3 ? null
, ruby ? null , ruby ? null
, lua ? null , lua ? null
, useX11, rubyBindings, pythonBindings, luaBindings , useX11 ? false
, rubyBindings ? false
, pythonBindings ? false
, luaBindings ? false
}: }:
assert useX11 -> (gtk2 != null && vte != null && gtkdialog != null); assert useX11 -> (gtk2 != null && vte != null && gtkdialog != null);

View File

@ -1,11 +1,13 @@
{ stdenv, lib, writeScript, buildFHSUserEnv, steam, glxinfo-i686 { config, stdenv, lib, writeScript, buildFHSUserEnv, steam, glxinfo-i686
, steam-runtime-wrapped, steam-runtime-wrapped-i686 ? null , steam-runtime-wrapped, steam-runtime-wrapped-i686 ? null
, withJava ? false
, withPrimus ? false
, extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs , extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs
, extraProfile ? "" # string to append to profile , extraProfile ? "" # string to append to profile
, nativeOnly ? false , nativeOnly ? false
, runtimeOnly ? false , runtimeOnly ? false
# DEPRECATED
, withJava ? config.steam.java or false
, withPrimus ? config.steam.primus or false
}: }:
let let

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, cmake { config, stdenv, fetchFromGitHub, pkgconfig, cmake
# dependencies # dependencies
, glib, libXinerama , glib, libXinerama
@ -27,7 +27,7 @@
, wirelessSupport ? true , wirelesstools ? null , wirelessSupport ? true , wirelesstools ? null
, nvidiaSupport ? false , libXNVCtrl ? null , nvidiaSupport ? false , libXNVCtrl ? null
, pulseSupport ? false , libpulseaudio ? null , pulseSupport ? config.pulseaudio or false, libpulseaudio ? null
, curlSupport ? true , curl ? null , curlSupport ? true , curl ? null
, rssSupport ? curlSupport , rssSupport ? curlSupport

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, intltool, pkgconfig { config, stdenv, fetchurl, intltool, pkgconfig
, gtk3, portaudio, SDL2, ffmpeg, udev, libusb1, libv4l, alsaLib, gsl , gtk3, portaudio, SDL2, ffmpeg, udev, libusb1, libv4l, alsaLib, gsl
, pulseaudioSupport ? true, libpulseaudio ? null }: , pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null }:
assert pulseaudioSupport -> libpulseaudio != null; assert pulseaudioSupport -> libpulseaudio != null;

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse { config, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse
, enableDebugBuild ? false }: , enableDebugBuild ? config.lxcfs.enableDebugBuild or false }:
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {

View File

@ -1,7 +1,7 @@
{ stdenv, lib, fetchurl { config, stdenv, lib, fetchurl
, perl , perl
, libcap, libtool, libxml2, openssl , libcap, libtool, libxml2, openssl
, enablePython ? false, python3 ? null , enablePython ? config.bind.enablePython or false, python3 ? null
, enableSeccomp ? false, libseccomp ? null, buildPackages , enableSeccomp ? false, libseccomp ? null, buildPackages
}: }:
@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
buildInputs = [ libtool libxml2 openssl ] buildInputs = [ libtool libxml2 openssl ]
++ lib.optional stdenv.isLinux libcap ++ lib.optional stdenv.isLinux libcap
++ lib.optional enableSeccomp libseccomp ++ lib.optional enableSeccomp libseccomp
++ lib.optional enablePython python3; ++ lib.optional enablePython (python3.withPackages (ps: with ps; [ ply ]));
STD_CDEFINES = [ "-DDIG_SIGCHASE=1" ]; # support +sigchase STD_CDEFINES = [ "-DDIG_SIGCHASE=1" ]; # support +sigchase

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, rpmextract, glibc { config, stdenv, fetchurl, rpmextract, glibc
, dataDir ? "/var/lib/plex" # Plex's data directory must be baked into the package due to symlinks. , dataDir ? "/var/lib/plex" # Plex's data directory must be baked into the package due to symlinks.
, enablePlexPass ? false , enablePlexPass ? config.plex.enablePlexPass or false
}: }:
let let

View File

@ -1,7 +1,7 @@
{ stdenv, lib, fetchurl, intltool, pkgconfig, python3Packages, bluez, gtk3 { config, stdenv, lib, fetchurl, intltool, pkgconfig, python3Packages, bluez, gtk3
, obex_data_server, xdg_utils, libnotify, dnsmasq, dhcp , obex_data_server, xdg_utils, libnotify, dnsmasq, dhcp
, hicolor-icon-theme, librsvg, wrapGAppsHook, gobject-introspection , hicolor-icon-theme, librsvg, wrapGAppsHook, gobject-introspection
, withPulseAudio ? true, libpulseaudio }: , withPulseAudio ? config.pulseaudio or stdenv.isLinux, libpulseaudio }:
let let
pythonPackages = python3Packages; pythonPackages = python3Packages;

View File

@ -226,9 +226,7 @@ in
fetchs3 = callPackage ../build-support/fetchs3 { }; fetchs3 = callPackage ../build-support/fetchs3 { };
fetchsvn = callPackage ../build-support/fetchsvn { fetchsvn = callPackage ../build-support/fetchsvn { };
sshSupport = true;
};
fetchsvnrevision = import ../build-support/fetchsvnrevision runCommand subversion; fetchsvnrevision = import ../build-support/fetchsvnrevision runCommand subversion;
@ -785,7 +783,6 @@ in
androidenv = callPackage ../development/mobile/androidenv { androidenv = callPackage ../development/mobile/androidenv {
pkgs_i686 = pkgsi686Linux; pkgs_i686 = pkgsi686Linux;
licenseAccepted = config.android_sdk.accept_license or false;
}; };
androidndkPkgs = androidndkPkgs_18b; androidndkPkgs = androidndkPkgs_18b;
@ -1764,9 +1761,7 @@ in
inherit (python27Packages) pillow; inherit (python27Packages) pillow;
}; };
blueman = callPackage ../tools/bluetooth/blueman { blueman = callPackage ../tools/bluetooth/blueman { };
withPulseAudio = config.pulseaudio or true;
};
bmrsa = callPackage ../tools/security/bmrsa/11.nix { }; bmrsa = callPackage ../tools/security/bmrsa/11.nix { };
@ -4041,9 +4036,7 @@ in
ltris = callPackage ../games/ltris { }; ltris = callPackage ../games/ltris { };
lxc = callPackage ../os-specific/linux/lxc { }; lxc = callPackage ../os-specific/linux/lxc { };
lxcfs = callPackage ../os-specific/linux/lxcfs { lxcfs = callPackage ../os-specific/linux/lxcfs { };
enableDebugBuild = config.lxcfs.enableDebugBuild or false;
};
lxd = callPackage ../tools/admin/lxd { }; lxd = callPackage ../tools/admin/lxd { };
lzfse = callPackage ../tools/compression/lzfse { }; lzfse = callPackage ../tools/compression/lzfse { };
@ -4882,7 +4875,7 @@ in
playbar2 = libsForQt5.callPackage ../applications/audio/playbar2 { }; playbar2 = libsForQt5.callPackage ../applications/audio/playbar2 { };
plex = callPackage ../servers/plex { enablePlexPass = config.plex.enablePlexPass or false; }; plex = callPackage ../servers/plex { };
plexpy = callPackage ../servers/plexpy { python = python2; }; plexpy = callPackage ../servers/plexpy { python = python2; };
@ -7204,14 +7197,12 @@ in
(if pluginSupport then appendToName "with-plugin" else x: x) (if pluginSupport then appendToName "with-plugin" else x: x)
(callPackage ../development/compilers/oraclejdk/jdk8cpu-linux.nix { (callPackage ../development/compilers/oraclejdk/jdk8cpu-linux.nix {
inherit installjdk pluginSupport; inherit installjdk pluginSupport;
licenseAccepted = config.oraclejdk.accept_license or false;
}); });
oraclejdk8psu_distro = installjdk: pluginSupport: oraclejdk8psu_distro = installjdk: pluginSupport:
(if pluginSupport then appendToName "with-plugin" else x: x) (if pluginSupport then appendToName "with-plugin" else x: x)
(callPackage ../development/compilers/oraclejdk/jdk8psu-linux.nix { (callPackage ../development/compilers/oraclejdk/jdk8psu-linux.nix {
inherit installjdk pluginSupport; inherit installjdk pluginSupport;
licenseAccepted = config.oraclejdk.accept_license or false;
}); });
javacard-devkit = pkgsi686Linux.callPackage ../development/compilers/javacard-devkit { }; javacard-devkit = pkgsi686Linux.callPackage ../development/compilers/javacard-devkit { };
@ -9016,14 +9007,10 @@ in
r10k = callPackage ../tools/system/r10k { }; r10k = callPackage ../tools/system/r10k { };
inherit (callPackages ../development/tools/analysis/radare2 { inherit (callPackages ../development/tools/analysis/radare2 ({
inherit (gnome2) vte; inherit (gnome2) vte;
lua = lua5; lua = lua5;
useX11 = config.radare.useX11 or false; } // (config.radare or {}))) radare2 r2-for-cutter;
pythonBindings = config.radare.pythonBindings or false;
rubyBindings = config.radare.rubyBindings or false;
luaBindings = config.radare.luaBindings or false;
}) radare2 r2-for-cutter;
radare2-cutter = libsForQt5.callPackage ../development/tools/analysis/radare2/cutter.nix { }; radare2-cutter = libsForQt5.callPackage ../development/tools/analysis/radare2/cutter.nix { };
@ -10126,12 +10113,9 @@ in
# https://github.com/NixOS/nixpkgs/commit/d6454e6a1 # https://github.com/NixOS/nixpkgs/commit/d6454e6a1
then ../development/libraries/gnutls/3.5.10.nix then ../development/libraries/gnutls/3.5.10.nix
else ../development/libraries/gnutls/3.6.nix) else ../development/libraries/gnutls/3.6.nix)
{ { };
guileBindings = config.gnutls.guile or false;
};
gnutls-kdh = callPackage ../development/libraries/gnutls-kdh/3.5.nix { gnutls-kdh = callPackage ../development/libraries/gnutls-kdh/3.5.nix {
guileBindings = config.gnutls.guile or false;
gperf = gperf_3_0; gperf = gperf_3_0;
}; };
@ -10980,7 +10964,6 @@ in
libinotify-kqueue = callPackage ../development/libraries/libinotify-kqueue { }; libinotify-kqueue = callPackage ../development/libraries/libinotify-kqueue { };
libiodbc = callPackage ../development/libraries/libiodbc { libiodbc = callPackage ../development/libraries/libiodbc {
useGTK = config.libiodbc.gtk or false;
inherit (darwin.apple_sdk.frameworks) Carbon; inherit (darwin.apple_sdk.frameworks) Carbon;
}; };
@ -11870,7 +11853,6 @@ in
}; };
opencv3 = callPackage ../development/libraries/opencv/3.x.nix { opencv3 = callPackage ../development/libraries/opencv/3.x.nix {
enableCuda = config.cudaSupport or false;
inherit (darwin) cf-private; inherit (darwin) cf-private;
inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa QTKit VideoDecodeAcceleration; inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa QTKit VideoDecodeAcceleration;
}; };
@ -11880,7 +11862,6 @@ in
}; };
opencv4 = callPackage ../development/libraries/opencv/4.x.nix { opencv4 = callPackage ../development/libraries/opencv/4.x.nix {
enableCuda = config.cudaSupport or false;
inherit (darwin) cf-private; inherit (darwin) cf-private;
inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa QTKit VideoDecodeAcceleration; inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa QTKit VideoDecodeAcceleration;
}; };
@ -12103,7 +12084,6 @@ in
qolibri = libsForQt5.callPackage ../applications/misc/qolibri { }; qolibri = libsForQt5.callPackage ../applications/misc/qolibri { };
qt3 = callPackage ../development/libraries/qt-3 { qt3 = callPackage ../development/libraries/qt-3 {
openglSupport = libGLSupported;
libpng = libpng12; libpng = libpng12;
}; };
@ -13015,21 +12995,18 @@ in
wxGTK28 = callPackage ../development/libraries/wxwidgets/2.8 { wxGTK28 = callPackage ../development/libraries/wxwidgets/2.8 {
inherit (gnome2) GConf; inherit (gnome2) GConf;
withMesa = lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms;
}; };
wxGTK29 = callPackage ../development/libraries/wxwidgets/2.9 { wxGTK29 = callPackage ../development/libraries/wxwidgets/2.9 {
inherit (gnome2) GConf; inherit (gnome2) GConf;
inherit (darwin.stubs) setfile; inherit (darwin.stubs) setfile;
inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QuickTime; inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QuickTime;
withMesa = lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms;
}; };
wxGTK30 = callPackage ../development/libraries/wxwidgets/3.0 { wxGTK30 = callPackage ../development/libraries/wxwidgets/3.0 {
inherit (gnome2) GConf; inherit (gnome2) GConf;
inherit (darwin.stubs) setfile; inherit (darwin.stubs) setfile;
inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QTKit; inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QTKit;
withMesa = lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms;
}; };
wxGTK31 = callPackage ../development/libraries/wxwidgets/3.1 {}; wxGTK31 = callPackage ../development/libraries/wxwidgets/3.1 {};
@ -13469,10 +13446,7 @@ in
bftpd = callPackage ../servers/ftp/bftpd {}; bftpd = callPackage ../servers/ftp/bftpd {};
bind = callPackage ../servers/dns/bind { bind = callPackage ../servers/dns/bind { };
enablePython = config.bind.enablePython or false;
python3 = python3.withPackages (ps: with ps; [ ply ]);
};
dnsutils = bind.dnsutils; dnsutils = bind.dnsutils;
inherit (callPackages ../servers/bird { }) inherit (callPackages ../servers/bird { })
@ -14326,8 +14300,7 @@ in
conky = callPackage ../os-specific/linux/conky ({ conky = callPackage ../os-specific/linux/conky ({
lua = lua5_3_compat; lua = lua5_3_compat;
libXNVCtrl = linuxPackages.nvidia_x11.settings.libXNVCtrl; inherit (linuxPackages.nvidia_x11.settings) libXNVCtrl;
pulseSupport = config.pulseaudio or false;
} // config.conky or {}); } // config.conky or {});
conntrack-tools = callPackage ../os-specific/linux/conntrack-tools { }; conntrack-tools = callPackage ../os-specific/linux/conntrack-tools { };
@ -15472,9 +15445,7 @@ in
comic-relief = callPackage ../data/fonts/comic-relief {}; comic-relief = callPackage ../data/fonts/comic-relief {};
coreclr = callPackage ../development/compilers/coreclr { coreclr = callPackage ../development/compilers/coreclr { };
debug = config.coreclr.debug or false;
};
corefonts = callPackage ../data/fonts/corefonts { }; corefonts = callPackage ../data/fonts/corefonts { };
@ -16057,9 +16028,7 @@ in
agedu = callPackage ../tools/misc/agedu { }; agedu = callPackage ../tools/misc/agedu { };
ahoviewer = callPackage ../applications/graphics/ahoviewer { ahoviewer = callPackage ../applications/graphics/ahoviewer { };
useUnrar = config.ahoviewer.useUnrar or false;
};
airwave = callPackage ../applications/audio/airwave { }; airwave = callPackage ../applications/audio/airwave { };
@ -16417,7 +16386,6 @@ in
claws-mail = callPackage ../applications/networking/mailreaders/claws-mail { claws-mail = callPackage ../applications/networking/mailreaders/claws-mail {
inherit (gnome3) gsettings-desktop-schemas; inherit (gnome3) gsettings-desktop-schemas;
inherit (xorg) libSM; inherit (xorg) libSM;
enableNetworkManager = config.networking.networkmanager.enable or false;
}; };
clfswm = callPackage ../applications/window-managers/clfswm { }; clfswm = callPackage ../applications/window-managers/clfswm { };
@ -17540,9 +17508,7 @@ in
gv = callPackage ../applications/misc/gv { }; gv = callPackage ../applications/misc/gv { };
guvcview = callPackage ../os-specific/linux/guvcview { guvcview = callPackage ../os-specific/linux/guvcview { };
pulseaudioSupport = config.pulseaudio or true;
};
gxmessage = callPackage ../applications/misc/gxmessage { }; gxmessage = callPackage ../applications/misc/gxmessage { };
@ -18383,19 +18349,8 @@ in
# !!! should depend on MPlayer # !!! should depend on MPlayer
}; };
mpv = callPackage ../applications/video/mpv rec { mpv = callPackage ../applications/video/mpv {
inherit lua; inherit lua;
waylandSupport = stdenv.isLinux;
alsaSupport = !stdenv.isDarwin;
pulseSupport = !stdenv.isDarwin;
rubberbandSupport = !stdenv.isDarwin;
dvdreadSupport = !stdenv.isDarwin;
dvdnavSupport = !stdenv.isDarwin;
drmSupport = !stdenv.isDarwin;
vaapiSupport = !stdenv.isDarwin;
x11Support = !stdenv.isDarwin;
xineramaSupport = !stdenv.isDarwin;
xvSupport = !stdenv.isDarwin;
}; };
mpv-with-scripts = callPackage ../applications/video/mpv/wrapper.nix { }; mpv-with-scripts = callPackage ../applications/video/mpv/wrapper.nix { };
@ -18653,10 +18608,7 @@ in
obs-linuxbrowser = callPackage ../applications/video/obs-studio/linuxbrowser.nix { }; obs-linuxbrowser = callPackage ../applications/video/obs-studio/linuxbrowser.nix { };
obs-studio = libsForQt5.callPackage ../applications/video/obs-studio { obs-studio = libsForQt5.callPackage ../applications/video/obs-studio { };
alsaSupport = stdenv.isLinux;
pulseaudioSupport = config.pulseaudio or true;
};
octoprint = callPackage ../applications/misc/octoprint { }; octoprint = callPackage ../applications/misc/octoprint { };
@ -18720,9 +18672,7 @@ in
vivaldi-ffmpeg-codecs = callPackage ../applications/networking/browsers/vivaldi/ffmpeg-codecs.nix {}; vivaldi-ffmpeg-codecs = callPackage ../applications/networking/browsers/vivaldi/ffmpeg-codecs.nix {};
openmpt123 = callPackage ../applications/audio/openmpt123 { openmpt123 = callPackage ../applications/audio/openmpt123 { };
usePulseAudio = config.pulseaudio or false;
};
opusfile = callPackage ../applications/audio/opusfile { }; opusfile = callPackage ../applications/audio/opusfile { };
@ -19429,9 +19379,7 @@ in
soulseekqt = libsForQt5.callPackage ../applications/networking/p2p/soulseekqt { }; soulseekqt = libsForQt5.callPackage ../applications/networking/p2p/soulseekqt { };
sox = callPackage ../applications/misc/audio/sox { sox = callPackage ../applications/misc/audio/sox { };
enableLame = config.sox.enableLame or false;
};
soxr = callPackage ../applications/misc/audio/soxr { }; soxr = callPackage ../applications/misc/audio/soxr { };
@ -20411,9 +20359,7 @@ in
boost = boost160; boost = boost160;
}; };
zathura = callPackage ../applications/misc/zathura { zathura = callPackage ../applications/misc/zathura { };
useMupdf = config.zathura.useMupdf or true;
};
zeroc_ice = callPackage ../development/libraries/zeroc-ice { zeroc_ice = callPackage ../development/libraries/zeroc-ice {
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;
@ -21047,11 +20993,7 @@ in
steamPackages = callPackage ../games/steam { }; steamPackages = callPackage ../games/steam { };
steam = steamPackages.steam-chrootenv.override { steam = steamPackages.steam-chrootenv;
# DEPRECATED
withJava = config.steam.java or false;
withPrimus = config.steam.primus or false;
};
steam-run = steam.run; steam-run = steam.run;
steam-run-native = (steam.override { steam-run-native = (steam.override {
@ -21579,9 +21521,7 @@ in
### SCIENCE/MACHINE LEARNING ### SCIENCE/MACHINE LEARNING
sc2-headless = callPackage ../applications/science/machine-learning/sc2-headless { sc2-headless = callPackage ../applications/science/machine-learning/sc2-headless { };
licenseAccepted = (config.sc2-headless.accept_license or false);
};
### SCIENCE/MATH ### SCIENCE/MATH