From 1ad836b326e36700f9e9cefe8f7933ad87d165d6 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:10 +0000 Subject: [PATCH 01/38] dwm: cleanup whitespace --- pkgs/applications/window-managers/dwm/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/window-managers/dwm/default.nix b/pkgs/applications/window-managers/dwm/default.nix index f18afb93527..e8b8fe0eb95 100644 --- a/pkgs/applications/window-managers/dwm/default.nix +++ b/pkgs/applications/window-managers/dwm/default.nix @@ -5,21 +5,21 @@ let in stdenv.mkDerivation { inherit name; - + src = fetchurl { url = "https://dl.suckless.org/dwm/${name}.tar.gz"; sha256 = "1zkmwb6df6m254shx06ly90c0q4jl70skk1pvkixpb7hcxhwbxn2"; }; - + buildInputs = [ libX11 libXinerama libXft ]; - + prePatch = ''sed -i "s@/usr/local@$out@" config.mk''; # Allow users set their own list of patches inherit patches; buildPhase = " make "; - + meta = { homepage = https://suckless.org/; description = "Dynamic window manager for X"; From d35c199422325a1a125096cd45a79241819d1c84 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:11 +0000 Subject: [PATCH 02/38] dysnomia: cleanup whitespace --- pkgs/tools/package-management/disnix/dysnomia/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/package-management/disnix/dysnomia/default.nix b/pkgs/tools/package-management/disnix/dysnomia/default.nix index ab0ce5d7521..14c07df6ffa 100644 --- a/pkgs/tools/package-management/disnix/dysnomia/default.nix +++ b/pkgs/tools/package-management/disnix/dysnomia/default.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation { }; preConfigure = if enableEjabberdDump then "export PATH=$PATH:${ejabberd}/sbin" else ""; - + configureFlags = [ (if enableApacheWebApplication then "--with-apache" else "--without-apache") (if enableAxis2WebService then "--with-axis2" else "--without-axis2") @@ -39,7 +39,7 @@ stdenv.mkDerivation { (if enableMongoDatabase then "--with-mongodb" else "--without-mongodb") "--with-job-template=${jobTemplate}" ]; - + buildInputs = [ getopt ] ++ stdenv.lib.optional enableEjabberdDump ejabberd ++ stdenv.lib.optional enableMySQLDatabase mysql.out From 735d2877ccb3c02be0e1f508a7aad02705da92bf Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:12 +0000 Subject: [PATCH 03/38] pulseaudioFull, libpulseaudio-vanilla: cleanup These are already inherited in the parent derivation. --- pkgs/top-level/all-packages.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dace0f0ceb7..f35da853602 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13734,13 +13734,11 @@ in bluetoothSupport = true; remoteControlSupport = true; zeroconfSupport = true; - inherit (darwin.apple_sdk.frameworks) CoreServices AudioUnit Cocoa; }; # libpulse implementations libpulseaudio-vanilla = pulseaudio.override { libOnly = true; - inherit (darwin.apple_sdk.frameworks) CoreServices AudioUnit Cocoa; }; apulse = callPackage ../misc/apulse { }; From 849b10a41949cf510db02adaa20d615a2014ba10 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:13 +0000 Subject: [PATCH 04/38] top-level: fix a typo --- pkgs/top-level/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index dcd443a1c29..f2de6d6f81d 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -73,7 +73,7 @@ in let # whatever arguments it doesn't explicitly provide. This way, # `all-packages.nix` doesn't know more than it needs too. # - # It's OK that `args` doesn't include default arguemtns from this file: + # It's OK that `args` doesn't include default arguments from this file: # they'll be deterministically inferred. In fact we must *not* include them, # because it's important that if some parameter which affects the default is # substituted with a different argument, the default is re-inferred. From 107f0fc9e712996674ce7f67ac4d2e6163f88822 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:14 +0000 Subject: [PATCH 05/38] top-level: cleanup whitespace --- pkgs/top-level/impure.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/top-level/impure.nix b/pkgs/top-level/impure.nix index dafa351c4e4..b0532ceb5db 100644 --- a/pkgs/top-level/impure.nix +++ b/pkgs/top-level/impure.nix @@ -52,22 +52,22 @@ in map (n: import (path + ("/" + n))) (builtins.filter (n: builtins.match ".*\\.nix" n != null || pathExists (path + ("/" + n + "/default.nix"))) (attrNames content)) - else + else # it's a file, so the result is the contents of the file itself import path; in if pathOverlays != "" && pathExists pathOverlays then overlays pathOverlays - else if pathExists homeOverlaysFile && pathExists homeOverlaysDir then + else if pathExists homeOverlaysFile && pathExists homeOverlaysDir then throw '' Nixpkgs overlays can be specified with ${homeOverlaysFile} or ${homeOverlaysDir}, but not both. Please remove one of them and try again. '' - else if pathExists homeOverlaysFile then - if isDir homeOverlaysFile then + else if pathExists homeOverlaysFile then + if isDir homeOverlaysFile then throw (homeOverlaysFile + " should be a file") else overlays homeOverlaysFile else if pathExists homeOverlaysDir then - if !(isDir homeOverlaysDir) then + if !(isDir homeOverlaysDir) then throw (homeOverlaysDir + " should be a directory") else overlays homeOverlaysDir else [] From 51687d9a7fdce50d46d75f16e2dffac148141305 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:15 +0000 Subject: [PATCH 06/38] lib: tiny cleanup --- lib/customisation.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/customisation.nix b/lib/customisation.nix index 68062dd0daf..1f5eb0d11e8 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -121,7 +121,7 @@ rec { auto = builtins.intersectAttrs (lib.functionArgs f) autoArgs; origArgs = auto // args; pkgs = f origArgs; - mkAttrOverridable = name: pkg: makeOverridable (newArgs: (f newArgs).${name}) origArgs; + mkAttrOverridable = name: _: makeOverridable (newArgs: (f newArgs).${name}) origArgs; in lib.mapAttrs mkAttrOverridable pkgs; From 6832a42b7fbc1ef33ef464b7876e3853a2247074 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:16 +0000 Subject: [PATCH 07/38] avahi: move defaults to the package file --- pkgs/top-level/all-packages.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f35da853602..51436f8690a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -822,9 +822,7 @@ in autorandr = callPackage ../tools/misc/autorandr {}; - avahi = callPackage ../development/libraries/avahi { - qt4Support = config.avahi.qt4Support or false; - }; + avahi = callPackage ../development/libraries/avahi (config.avahi or {}); avro-c = callPackage ../development/libraries/avro-c { }; From 6cb5666bdb5711a6cea4c9a604e5d45b74d621f7 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:17 +0000 Subject: [PATCH 08/38] profanity: move defaults to package file --- .../networking/instant-messengers/profanity/default.nix | 6 +++--- pkgs/top-level/all-packages.nix | 7 ++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/profanity/default.nix b/pkgs/applications/networking/instant-messengers/profanity/default.nix index cf852ada369..ae2f6f10304 100644 --- a/pkgs/applications/networking/instant-messengers/profanity/default.nix +++ b/pkgs/applications/networking/instant-messengers/profanity/default.nix @@ -2,9 +2,9 @@ , glibcLocales, expect, ncurses, libotr, curl, readline, libuuid , cmocka, libmicrohttpd, stabber, expat, libmesode -, autoAwaySupport ? false, libXScrnSaver ? null, libX11 ? null -, notifySupport ? false, libnotify ? null, gdk_pixbuf ? null -, traySupport ? false, gnome2 ? null +, autoAwaySupport ? true, libXScrnSaver ? null, libX11 ? null +, notifySupport ? true, libnotify ? null, gdk_pixbuf ? null +, traySupport ? true, gnome2 ? null , pgpSupport ? true, gpgme ? null , pythonPluginSupport ? true, python ? null }: diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51436f8690a..0e600648f69 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18865,12 +18865,9 @@ in # And I don't want to rewrite all rules procmail = callPackage ../applications/misc/procmail { }; - profanity = callPackage ../applications/networking/instant-messengers/profanity { - notifySupport = config.profanity.notifySupport or true; - traySupport = config.profanity.traySupport or true; - autoAwaySupport = config.profanity.autoAwaySupport or true; + profanity = callPackage ../applications/networking/instant-messengers/profanity ({ python = python3; - }; + } // (config.profanity or {})); protonmail-bridge = libsForQt5.callPackage ../applications/networking/protonmail-bridge { }; From 5da88a18c9fc30d3926c1ff10acfa1082abaddcc Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:18 +0000 Subject: [PATCH 09/38] rsync: move defaults to package file --- pkgs/applications/networking/sync/rsync/default.nix | 2 +- pkgs/top-level/all-packages.nix | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/sync/rsync/default.nix b/pkgs/applications/networking/sync/rsync/default.nix index 0b4d580cd20..4045c1f0fc5 100644 --- a/pkgs/applications/networking/sync/rsync/default.nix +++ b/pkgs/applications/networking/sync/rsync/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, perl, libiconv, zlib, popt -, enableACLs ? true, acl ? null +, enableACLs ? !(stdenv.isDarwin || stdenv.isSunOS || stdenv.isFreeBSD), acl ? null , enableCopyDevicesPatch ? false }: diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0e600648f69..db91b61ac35 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19117,10 +19117,7 @@ in llvmPackages = llvmPackages_7; }; - rsync = callPackage ../applications/networking/sync/rsync { - enableACLs = !(stdenv.isDarwin || stdenv.isSunOS || stdenv.isFreeBSD); - enableCopyDevicesPatch = (config.rsync.enableCopyDevicesPatch or false); - }; + rsync = callPackage ../applications/networking/sync/rsync (config.rsync or {}); rrsync = callPackage ../applications/networking/sync/rsync/rrsync.nix {}; rtl_433 = callPackage ../applications/misc/rtl_433 { }; From d064592f368a26fb4860edeaa870d6b769597bba Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:19 +0000 Subject: [PATCH 10/38] ghostscript: move defaults to package file --- pkgs/misc/ghostscript/default.nix | 7 ++++--- pkgs/top-level/all-packages.nix | 5 +---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/misc/ghostscript/default.nix b/pkgs/misc/ghostscript/default.nix index 722f5344905..cd944a6788f 100644 --- a/pkgs/misc/ghostscript/default.nix +++ b/pkgs/misc/ghostscript/default.nix @@ -1,12 +1,13 @@ -{ stdenv, lib, fetchurl, pkgconfig, zlib, expat, openssl, autoconf +{ config, stdenv, lib, fetchurl, pkgconfig, zlib, expat, openssl, autoconf , libjpeg, libpng, libtiff, freetype, fontconfig, libpaper, jbig2dec , libiconv, ijs -, x11Support ? false, xlibsWrapper ? null -, cupsSupport ? false, cups ? null +, cupsSupport ? config.ghostscript.cups or (!stdenv.isDarwin), cups ? null +, x11Support ? cupsSupport, xlibsWrapper ? null # with CUPS, X11 only adds very little }: assert x11Support -> xlibsWrapper != null; assert cupsSupport -> cups != null; + let version = "9.${ver_min}"; ver_min = "26"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index db91b61ac35..98d98e9e524 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22347,10 +22347,7 @@ in gensgs = pkgsi686Linux.callPackage ../misc/emulators/gens-gs { }; - ghostscript = callPackage ../misc/ghostscript rec { - cupsSupport = config.ghostscript.cups or (!stdenv.isDarwin); - x11Support = cupsSupport; # with CUPS, X11 only adds very little - }; + ghostscript = callPackage ../misc/ghostscript { }; ghostscriptX = appendToName "with-X" (ghostscript.override { cupsSupport = true; From 35a09f9923b3130a5f62a83af6bef17064053099 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:20 +0000 Subject: [PATCH 11/38] evilvte: move defaults to package file --- pkgs/applications/misc/evilvte/default.nix | 2 +- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/evilvte/default.nix b/pkgs/applications/misc/evilvte/default.nix index f088016938a..c7fcf18e4e3 100644 --- a/pkgs/applications/misc/evilvte/default.nix +++ b/pkgs/applications/misc/evilvte/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchgit, makeWrapper, pkgconfig, gnome2, glib, pango, cairo, gdk_pixbuf, atk, freetype, xorg, - configH + configH ? "" }: stdenv.mkDerivation rec { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 98d98e9e524..387cb6fda80 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16920,9 +16920,7 @@ in etherape = callPackage ../applications/networking/sniffers/etherape { }; - evilvte = callPackage ../applications/misc/evilvte { - configH = config.evilvte.config or ""; - }; + evilvte = callPackage ../applications/misc/evilvte (config.evilvte or {}); evopedia = callPackage ../applications/misc/evopedia { }; From 7706253e5942eb85f4af957b58d31a3efba8efd4 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:21 +0000 Subject: [PATCH 12/38] libspotify: move defaults to package file --- pkgs/development/libraries/libspotify/default.nix | 2 +- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/libspotify/default.nix b/pkgs/development/libraries/libspotify/default.nix index e472fe014ee..5bae04a88f9 100644 --- a/pkgs/development/libraries/libspotify/default.nix +++ b/pkgs/development/libraries/libspotify/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, libspotify, alsaLib, readline, pkgconfig, apiKey, unzip, gnused }: +{ stdenv, fetchurl, libspotify, alsaLib, readline, pkgconfig, apiKey ? null, unzip, gnused }: let version = "12.1.51"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 387cb6fda80..645a80c6b4b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19395,9 +19395,7 @@ in }; }; - libspotify = callPackage ../development/libraries/libspotify { - apiKey = config.libspotify.apiKey or null; - }; + libspotify = callPackage ../development/libraries/libspotify (config.libspotify or {}); sourcetrail = callPackage ../development/tools/sourcetrail { }; From 679bf2a2b205df0f849a8973c592c6bef8dc69fe Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:22 +0000 Subject: [PATCH 13/38] flashplayer: move defaults to package file --- pkgs/top-level/all-packages.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 645a80c6b4b..03dce713e7e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17236,13 +17236,9 @@ in flameshot = libsForQt5.callPackage ../tools/misc/flameshot { }; - flashplayer = callPackage ../applications/networking/browsers/mozilla-plugins/flashplayer { - debug = config.flashplayer.debug or false; - }; + flashplayer = callPackage ../applications/networking/browsers/mozilla-plugins/flashplayer (config.flashplayer or {}); - flashplayer-standalone = callPackage ../applications/networking/browsers/mozilla-plugins/flashplayer/standalone.nix { - debug = config.flashplayer.debug or false; - }; + flashplayer-standalone = callPackage ../applications/networking/browsers/mozilla-plugins/flashplayer/standalone.nix (config.flashplayer or {}); flashplayer-standalone-debugger = flashplayer-standalone.override { debug = true; From 25709dfe50ff8322604f995814425131fb0e06b3 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:23 +0000 Subject: [PATCH 14/38] tomahawk: move defaults to package file --- pkgs/top-level/all-packages.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 03dce713e7e..0d899a78ac6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19627,14 +19627,11 @@ in toggldesktop = libsForQt5.callPackage ../applications/misc/toggldesktop { }; - tomahawk = callPackage ../applications/audio/tomahawk { + tomahawk = callPackage ../applications/audio/tomahawk ({ taglib = taglib_1_9; - enableXMPP = config.tomahawk.enableXMPP or true; - enableKDE = config.tomahawk.enableKDE or false; - enableTelepathy = config.tomahawk.enableTelepathy or false; quazip = quazip_qt4; boost = boost155; - }; + } // (config.tomahawk or {})); topydo = callPackage ../applications/misc/topydo {}; From 8cbe72a9234f30ad4866c88e8678d9d1c37312b6 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:24 +0000 Subject: [PATCH 15/38] w3m: move defaults to package file --- pkgs/applications/networking/browsers/w3m/default.nix | 2 +- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/browsers/w3m/default.nix b/pkgs/applications/networking/browsers/w3m/default.nix index 75998662f7f..c1fa364a2d2 100644 --- a/pkgs/applications/networking/browsers/w3m/default.nix +++ b/pkgs/applications/networking/browsers/w3m/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchFromGitHub, fetchpatch , ncurses, boehmgc, gettext, zlib , sslSupport ? true, openssl ? null -, graphicsSupport ? true, imlib2 ? null +, graphicsSupport ? !stdenv.isDarwin, imlib2 ? null , x11Support ? graphicsSupport, libX11 ? null , mouseSupport ? !stdenv.isDarwin, gpm-ncurses ? null , perl, man, pkgconfig, buildPackages, w3m diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0d899a78ac6..27b1242a6bd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19896,9 +19896,7 @@ in vym = qt5.callPackage ../applications/misc/vym { }; - w3m = callPackage ../applications/networking/browsers/w3m { - graphicsSupport = !stdenv.isDarwin; - }; + w3m = callPackage ../applications/networking/browsers/w3m { }; # Should always be the version with the most features w3m-full = w3m; From ec122ccfb8a52ea31cbd583b74cc92d59f895995 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:25 +0000 Subject: [PATCH 16/38] dysnomia: move defaults to package file --- pkgs/top-level/all-packages.nix | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 27b1242a6bd..fe03d940973 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22638,15 +22638,7 @@ in disnix = callPackage ../tools/package-management/disnix { }; - dysnomia = callPackage ../tools/package-management/disnix/dysnomia { - enableApacheWebApplication = config.disnix.enableApacheWebApplication or false; - enableAxis2WebService = config.disnix.enableAxis2WebService or false; - enableEjabberdDump = config.disnix.enableEjabberdDump or false; - enableMySQLDatabase = config.disnix.enableMySQLDatabase or false; - enablePostgreSQLDatabase = config.disnix.enablePostgreSQLDatabase or false; - enableSubversionRepository = config.disnix.enableSubversionRepository or false; - enableTomcatWebApplication = config.disnix.enableTomcatWebApplication or false; - }; + dysnomia = callPackage ../tools/package-management/disnix/dysnomia (config.disnix or {}); disnixos = callPackage ../tools/package-management/disnix/disnixos { }; From bdd69a9b0c99757a9dc6eccc66177a38d91dad4a Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:26 +0000 Subject: [PATCH 17/38] sane-backends, sane-backends-git: move defaults to package file --- pkgs/top-level/all-packages.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fe03d940973..5d0eede6ba3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22780,15 +22780,9 @@ in samsung-unified-linux-driver_4_01_17 = callPackage ../misc/cups/drivers/samsung/4.01.17.nix { }; samsung-unified-linux-driver = res.samsung-unified-linux-driver_4_01_17; - sane-backends = callPackage ../applications/graphics/sane/backends { - gt68xxFirmware = config.sane.gt68xxFirmware or null; - snapscanFirmware = config.sane.snapscanFirmware or null; - }; + sane-backends = callPackage ../applications/graphics/sane/backends (config.sane or {}); - sane-backends-git = callPackage ../applications/graphics/sane/backends/git.nix { - gt68xxFirmware = config.sane.gt68xxFirmware or null; - snapscanFirmware = config.sane.snapscanFirmware or null; - }; + sane-backends-git = callPackage ../applications/graphics/sane/backends/git.nix (config.sane or {}); brlaser = callPackage ../misc/cups/drivers/brlaser { }; From a4f20976fbd8b118f02e2a897de186e59054ba71 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:27 +0000 Subject: [PATCH 18/38] fetchsvnssh: move defaults to package file --- pkgs/build-support/fetchsvnssh/default.nix | 2 +- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/build-support/fetchsvnssh/default.nix b/pkgs/build-support/fetchsvnssh/default.nix index f76bd10247b..fbd74efd750 100644 --- a/pkgs/build-support/fetchsvnssh/default.nix +++ b/pkgs/build-support/fetchsvnssh/default.nix @@ -1,4 +1,4 @@ -{stdenvNoCC, subversion, sshSupport ? false, openssh ? null, expect}: +{stdenvNoCC, subversion, sshSupport ? true, openssh ? null, expect}: {username, password, url, rev ? "HEAD", md5 ? "", sha256 ? ""}: diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5d0eede6ba3..31220caacc0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -230,9 +230,7 @@ in fetchsvnrevision = import ../build-support/fetchsvnrevision runCommand subversion; - fetchsvnssh = callPackage ../build-support/fetchsvnssh { - sshSupport = true; - }; + fetchsvnssh = callPackage ../build-support/fetchsvnssh { }; fetchhg = callPackage ../build-support/fetchhg { }; From 4bc9404b158a3b10417e955b482a5c84008f4843 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:28 +0000 Subject: [PATCH 19/38] grub: move defaults to package file --- pkgs/top-level/all-packages.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 31220caacc0..9fdb03560d0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3066,10 +3066,9 @@ in grpcurl = callPackage ../tools/networking/grpcurl { }; - grub = pkgsi686Linux.callPackage ../tools/misc/grub { - buggyBiosCDSupport = config.grub.buggyBiosCDSupport or true; + grub = pkgsi686Linux.callPackage ../tools/misc/grub ({ stdenv = overrideCC stdenv pkgsi686Linux.gcc6; - }; + } // (config.grub or {})); trustedGrub = pkgsi686Linux.callPackage ../tools/misc/grub/trusted.nix { }; From 546c8ffef81ebd375252bb31c15620a0801eadeb Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:29 +0000 Subject: [PATCH 20/38] ssmtp: move defaults to package file --- pkgs/tools/networking/ssmtp/default.nix | 2 +- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/ssmtp/default.nix b/pkgs/tools/networking/ssmtp/default.nix index 22f60bfcee5..ebe31dc8b5a 100644 --- a/pkgs/tools/networking/ssmtp/default.nix +++ b/pkgs/tools/networking/ssmtp/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, tlsSupport ? false, openssl ? null}: +{stdenv, fetchurl, tlsSupport ? true, openssl ? null}: assert tlsSupport -> openssl != null; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9fdb03560d0..bee9676158b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5551,9 +5551,7 @@ in sslmate = callPackage ../development/tools/sslmate { }; - ssmtp = callPackage ../tools/networking/ssmtp { - tlsSupport = true; - }; + ssmtp = callPackage ../tools/networking/ssmtp { }; ssocr = callPackage ../applications/misc/ssocr { }; From 6e1e0bb21317df8d063c51fe1c2e9233b62b981f Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:30 +0000 Subject: [PATCH 21/38] urjtag: move defaults to package file --- pkgs/tools/misc/urjtag/default.nix | 8 ++++---- pkgs/top-level/all-packages.nix | 7 +------ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/misc/urjtag/default.nix b/pkgs/tools/misc/urjtag/default.nix index 60a1ab325b1..545d7c554ac 100644 --- a/pkgs/tools/misc/urjtag/default.nix +++ b/pkgs/tools/misc/urjtag/default.nix @@ -1,10 +1,10 @@ { stdenv, autoconf, automake, pkgconfig, gettext, libtool, bison , flex, which, subversion, fetchsvn, makeWrapper, libftdi, libusb, readline , python3 -, svfSupport ? false -, bsdlSupport ? false -, staplSupport ? false -, jedecSupport ? false +, svfSupport ? true +, bsdlSupport ? true +, staplSupport ? true +, jedecSupport ? true }: stdenv.mkDerivation rec { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bee9676158b..b26c7634ad7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6197,12 +6197,7 @@ in uptimed = callPackage ../tools/system/uptimed { }; - urjtag = callPackage ../tools/misc/urjtag { - svfSupport = true; - bsdlSupport = true; - staplSupport = true; - jedecSupport = true; - }; + urjtag = callPackage ../tools/misc/urjtag { }; urlwatch = callPackage ../tools/networking/urlwatch { }; From c1ee0a4980f7b7a5e532a784a619f0b1f5a4b87e Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:31 +0000 Subject: [PATCH 22/38] aprutil: move defaults to package file --- pkgs/development/libraries/apr-util/default.nix | 2 +- pkgs/top-level/all-packages.nix | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/libraries/apr-util/default.nix b/pkgs/development/libraries/apr-util/default.nix index fe159afe685..87563d6a9cb 100644 --- a/pkgs/development/libraries/apr-util/default.nix +++ b/pkgs/development/libraries/apr-util/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, makeWrapper, apr, expat, gnused , sslSupport ? true, openssl -, bdbSupport ? false, db +, bdbSupport ? true, db , ldapSupport ? !stdenv.isCygwin, openldap , libiconv , cyrus_sasl, autoreconfHook diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b26c7634ad7..c45ba40ba28 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9272,7 +9272,6 @@ in apr = callPackage ../development/libraries/apr { }; aprutil = callPackage ../development/libraries/apr-util { - bdbSupport = true; db = if stdenv.isFreeBSD then db4 else db; # XXX: only the db_185 interface was available through # apr with db58 on freebsd (nov 2015), for unknown reasons From 4ec5cbc77a07532366321f5f339866e73b879c5e Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:32 +0000 Subject: [PATCH 23/38] libgpod: move defaults to package file --- pkgs/development/libraries/libgpod/default.nix | 2 +- pkgs/top-level/all-packages.nix | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libgpod/default.nix b/pkgs/development/libraries/libgpod/default.nix index f178af34908..7126d027c7a 100644 --- a/pkgs/development/libraries/libgpod/default.nix +++ b/pkgs/development/libraries/libgpod/default.nix @@ -1,7 +1,7 @@ {stdenv, lib, fetchurl, gettext, perlPackages, intltool, pkgconfig, glib, libxml2, sqlite, zlib, sg3_utils, gdk_pixbuf, taglib, libimobiledevice, pythonPackages, mutagen, - monoSupport ? true, mono, gtk-sharp-2_0 + monoSupport ? false, mono, gtk-sharp-2_0 }: let diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c45ba40ba28..62fa902778d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10895,7 +10895,6 @@ in libgpod = callPackage ../development/libraries/libgpod { inherit (pkgs.pythonPackages) mutagen; - monoSupport = false; }; libgssglue = callPackage ../development/libraries/libgssglue { }; From 866944ff52322989ff751147a3eced64ea87547e Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:33 +0000 Subject: [PATCH 24/38] mpd: move defaults to package file --- pkgs/top-level/all-packages.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 62fa902778d..41af1c17d67 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13601,13 +13601,7 @@ in mod_python = pkgs.apacheHttpdPackages.mod_python; mod_wsgi = pkgs.apacheHttpdPackages.mod_wsgi; - mpd = callPackage ../servers/mpd { - aacSupport = config.mpd.aacSupport or true; - clientSupport = config.mpd.clientSupport or true; - ffmpegSupport = config.mpd.ffmpegSupport or true; - opusSupport = config.mpd.opusSupport or true; - - }; + mpd = callPackage ../servers/mpd (config.mpd or {}); mpd_clientlib = callPackage ../servers/mpd/clientlib.nix { }; From a4cebde4f6caf5f298dad1aac049dba442aaef18 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:34 +0000 Subject: [PATCH 25/38] mercurial: move defaults to package file --- pkgs/top-level/all-packages.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 41af1c17d67..d88d1abf2da 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18128,7 +18128,6 @@ in mercurial = callPackage ../applications/version-management/mercurial { inherit (darwin.apple_sdk.frameworks) ApplicationServices; - guiSupport = false; # use mercurialFull to get hgk GUI }; mercurialFull = appendToName "full" (pkgs.mercurial.override { guiSupport = true; }); From b5e511db7c45a55da1d4dc2c00b441d17e36146f Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:35 +0000 Subject: [PATCH 26/38] rxvt_unicode: move defaults to package file --- pkgs/applications/misc/rxvt_unicode/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/misc/rxvt_unicode/default.nix b/pkgs/applications/misc/rxvt_unicode/default.nix index 2ae33a1eaa5..d198c595135 100644 --- a/pkgs/applications/misc/rxvt_unicode/default.nix +++ b/pkgs/applications/misc/rxvt_unicode/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchurl, makeDesktopItem, perlSupport, libX11, libXt, libXft, +{ stdenv, fetchurl, makeDesktopItem, perlSupport ? true, libX11, libXt, libXft, ncurses, perl, fontconfig, freetype, pkgconfig, libXrender, - gdkPixbufSupport, gdk_pixbuf, unicode3Support }: + gdkPixbufSupport ? true, gdk_pixbuf, unicode3Support ? true }: let pname = "rxvt-unicode"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d88d1abf2da..ab21195a794 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19108,11 +19108,7 @@ in rxvt = callPackage ../applications/misc/rxvt { }; # urxvt - rxvt_unicode = callPackage ../applications/misc/rxvt_unicode { - perlSupport = true; - gdkPixbufSupport = true; - unicode3Support = true; - }; + rxvt_unicode = callPackage ../applications/misc/rxvt_unicode { }; rxvt_unicode-with-plugins = callPackage ../applications/misc/rxvt_unicode/wrapper.nix { plugins = [ From 1b784e5f6f82efba3f7ff593ae642b8b59398da7 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:36 +0000 Subject: [PATCH 27/38] subversion: move defaults to package file --- .../version-management/subversion/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 11 +---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/version-management/subversion/default.nix b/pkgs/applications/version-management/subversion/default.nix index a7f51713994..64e8e5d2d25 100644 --- a/pkgs/applications/version-management/subversion/default.nix +++ b/pkgs/applications/version-management/subversion/default.nix @@ -1,6 +1,6 @@ -{ bdbSupport ? false # build support for Berkeley DB repositories +{ bdbSupport ? true # build support for Berkeley DB repositories , httpServer ? false # build Apache DAV module -, httpSupport ? false # client must support http +, httpSupport ? true # client must support http , pythonBindings ? false , perlBindings ? false , javahlBindings ? false diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ab21195a794..736d5cdd900 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19411,16 +19411,7 @@ in sublime3-dev = sublime3Packages.sublime3-dev; - inherit (callPackages ../applications/version-management/subversion { - bdbSupport = true; - httpServer = false; - httpSupport = true; - pythonBindings = false; - perlBindings = false; - javahlBindings = false; - saslSupport = false; - sasl = cyrus_sasl; - }) + inherit (callPackages ../applications/version-management/subversion { sasl = cyrus_sasl; }) subversion18 subversion19 subversion_1_10 subversion_1_11; subversion = subversion_1_11; From 2cf14077f46cd52d4d98ab191af4de27c7e47a23 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:37 +0000 Subject: [PATCH 28/38] residualvm: move defaults to package file --- pkgs/games/residualvm/default.nix | 3 ++- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/games/residualvm/default.nix b/pkgs/games/residualvm/default.nix index d0f1d500eaf..f6969af30c2 100644 --- a/pkgs/games/residualvm/default.nix +++ b/pkgs/games/residualvm/default.nix @@ -1,5 +1,6 @@ { stdenv, fetchurl, SDL, zlib, libmpeg2, libmad, libogg, libvorbis, flac, alsaLib -, openglSupport ? false, libGLU_combined ? null +, libGLSupported +, openglSupport ? libGLSupported, libGLU_combined ? null }: assert openglSupport -> libGLU_combined != null; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 736d5cdd900..9f1686ffe64 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20851,9 +20851,7 @@ in racer = callPackage ../games/racer { }; - residualvm = callPackage ../games/residualvm { - openglSupport = libGLSupported; - }; + residualvm = callPackage ../games/residualvm { }; rftg = callPackage ../games/rftg { }; From 50153afe8ed3b37d02f2ffab6aeed33a33414074 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:38 +0000 Subject: [PATCH 29/38] arduino-core: move defaults to package file --- pkgs/top-level/all-packages.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9f1686ffe64..d992f5d382e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -500,10 +500,7 @@ in arduino = arduino-core.override { withGui = true; }; - arduino-core = callPackage ../development/arduino/arduino-core { - jdk = jdk; - withGui = false; - }; + arduino-core = callPackage ../development/arduino/arduino-core { }; apitrace = libsForQt5.callPackage ../applications/graphics/apitrace {}; From 58a2757aaa10b22076496f42ba28f505b82400c8 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:39 +0000 Subject: [PATCH 30/38] ibus-with-plugins: move defaults to package file --- pkgs/tools/inputmethods/ibus/wrapper.nix | 2 +- pkgs/top-level/all-packages.nix | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/tools/inputmethods/ibus/wrapper.nix b/pkgs/tools/inputmethods/ibus/wrapper.nix index 2b93274b79a..3196c5b4e8a 100644 --- a/pkgs/tools/inputmethods/ibus/wrapper.nix +++ b/pkgs/tools/inputmethods/ibus/wrapper.nix @@ -1,5 +1,5 @@ { stdenv, runCommand, makeWrapper, lndir -, dconf, hicolor-icon-theme, ibus, librsvg, plugins +, dconf, hicolor-icon-theme, ibus, librsvg, plugins ? [] }: let diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d992f5d382e..a8b96feeb5d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2006,7 +2006,6 @@ in ibus-with-plugins = callPackage ../tools/inputmethods/ibus/wrapper.nix { inherit (gnome3) dconf; - plugins = [ ]; }; interception-tools = callPackage ../tools/inputmethods/interception-tools { }; From caff8b7f4ca90d8f33196df7f3bb6779ba0b4ae9 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:40 +0000 Subject: [PATCH 31/38] mjpegtools: move defaults to package file --- pkgs/tools/video/mjpegtools/default.nix | 2 +- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/video/mjpegtools/default.nix b/pkgs/tools/video/mjpegtools/default.nix index 197caca0d86..31d26a6c72a 100644 --- a/pkgs/tools/video/mjpegtools/default.nix +++ b/pkgs/tools/video/mjpegtools/default.nix @@ -1,5 +1,5 @@ { stdenv, lib, fetchurl, gtk2, libdv, libjpeg, libpng, libX11, pkgconfig, SDL, SDL_gfx -, withMinimal ? false +, withMinimal ? true }: # TODO: diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a8b96feeb5d..6e181cc8f5c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4181,9 +4181,7 @@ in mitmproxy = callPackage ../tools/networking/mitmproxy { }; - mjpegtools = callPackage ../tools/video/mjpegtools { - withMinimal = true; - }; + mjpegtools = callPackage ../tools/video/mjpegtools { }; mjpegtoolsFull = mjpegtools.override { withMinimal = false; From ce753447923a12e3fb9bda021df717c143de6923 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:41 +0000 Subject: [PATCH 32/38] stoken: move defaults to package file --- pkgs/top-level/all-packages.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6e181cc8f5c..b9e1b3c61fb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5557,9 +5557,7 @@ in stress-ng = callPackage ../tools/system/stress-ng { }; - stoken = callPackage ../tools/security/stoken { - withGTK3 = config.stoken.withGTK3 or true; - }; + stoken = callPackage ../tools/security/stoken (config.stoken or {}); storeBackup = callPackage ../tools/backup/store-backup { }; From f56be70f3f4549c9dac929cc34b308dc78e6d40c Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:42 +0000 Subject: [PATCH 33/38] uwsgi: move defaults to package file --- pkgs/servers/uwsgi/default.nix | 6 +++--- pkgs/top-level/all-packages.nix | 6 +----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/pkgs/servers/uwsgi/default.nix b/pkgs/servers/uwsgi/default.nix index 91053019ac1..99eac2760dd 100644 --- a/pkgs/servers/uwsgi/default.nix +++ b/pkgs/servers/uwsgi/default.nix @@ -1,8 +1,8 @@ { stdenv, lib, fetchurl, pkgconfig, jansson, pcre # plugins: list of strings, eg. [ "python2" "python3" ] -, plugins -, pam, withPAM ? false -, systemd, withSystemd ? false +, plugins ? [] +, pam, withPAM ? stdenv.isLinux +, systemd, withSystemd ? stdenv.isLinux , python2, python3, ncurses , ruby, php-embed, mysql }: diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b9e1b3c61fb..d1f0749075a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5916,11 +5916,7 @@ in usync = callPackage ../applications/misc/usync { }; - uwsgi = callPackage ../servers/uwsgi { - plugins = []; - withPAM = stdenv.isLinux; - withSystemd = stdenv.isLinux; - }; + uwsgi = callPackage ../servers/uwsgi { }; vacuum = callPackage ../applications/networking/instant-messengers/vacuum {}; From 56ee5bca693b8e845ca9008edc12f06165d7af75 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:43 +0000 Subject: [PATCH 34/38] wireshark: move defaults to package file --- pkgs/applications/networking/sniffers/wireshark/default.nix | 2 +- pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/applications/networking/sniffers/wireshark/default.nix b/pkgs/applications/networking/sniffers/wireshark/default.nix index 99e44269898..db093310ca1 100644 --- a/pkgs/applications/networking/sniffers/wireshark/default.nix +++ b/pkgs/applications/networking/sniffers/wireshark/default.nix @@ -2,7 +2,7 @@ , gnutls, libgcrypt, libgpgerror, geoip, openssl, lua5, python, libcap, glib , libssh, zlib, cmake, extra-cmake-modules, fetchpatch, makeWrapper , withGtk ? false, gtk3 ? null, librsvg ? null, gsettings-desktop-schemas ? null, wrapGAppsHook ? null -, withQt ? false, qt5 ? null +, withQt ? true, qt5 ? null , ApplicationServices, SystemConfiguration, gmp }: diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d1f0749075a..d2cb636f91d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17107,9 +17107,7 @@ in welle-io = libsForQt5.callPackage ../applications/misc/welle-io { }; wireshark = callPackage ../applications/networking/sniffers/wireshark { - withQt = true; qt5 = qt59; - withGtk = false; inherit (darwin.apple_sdk.frameworks) ApplicationServices SystemConfiguration; }; wireshark-qt = wireshark; From 4f066da1de2f443bcc606b75f781d5da0d3ab987 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:44 +0000 Subject: [PATCH 35/38] quassel: move defaults to package file --- pkgs/applications/networking/irc/quassel/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/networking/irc/quassel/default.nix b/pkgs/applications/networking/irc/quassel/default.nix index ce6215908ae..75645fdb33a 100644 --- a/pkgs/applications/networking/irc/quassel/default.nix +++ b/pkgs/applications/networking/irc/quassel/default.nix @@ -1,14 +1,14 @@ { monolithic ? true # build monolithic Quassel , daemon ? false # build Quassel daemon , client ? false # build Quassel client -, tag ? "" # tag added to the package name +, tag ? "-kf5" # tag added to the package name , static ? false # link statically , stdenv, fetchFromGitHub, cmake, makeWrapper, dconf , qtbase, qtscript , phonon, libdbusmenu, qca-qt5 -, withKDE ? stdenv.isLinux # enable KDE integration +, withKDE ? true # enable KDE integration , extra-cmake-modules , kconfigwidgets , kcoreaddons diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d2cb636f91d..9b241008a76 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18932,12 +18932,7 @@ in quantomatic = callPackage ../applications/science/physics/quantomatic { }; quassel = libsForQt5.callPackage ../applications/networking/irc/quassel { - monolithic = true; - daemon = false; - client = false; - withKDE = true; - dconf = gnome3.dconf; - tag = "-kf5"; + inherit (gnome3) dconf; }; quasselClient = quassel.override { @@ -18949,8 +18944,8 @@ in quasselDaemon = quassel.override { monolithic = false; daemon = true; - tag = "-daemon-qt5"; withKDE = false; + tag = "-daemon-qt5"; }; quirc = callPackage ../tools/graphics/quirc {}; From ec2452dac17d492e09f65b8f8eca6366fb6858a2 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:45 +0000 Subject: [PATCH 36/38] scilab: move defaults to package file --- pkgs/applications/science/math/scilab/default.nix | 6 +++--- pkgs/top-level/all-packages.nix | 8 +------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/science/math/scilab/default.nix b/pkgs/applications/science/math/scilab/default.nix index 96b7dec19c2..01fb58403ca 100644 --- a/pkgs/applications/science/math/scilab/default.nix +++ b/pkgs/applications/science/math/scilab/default.nix @@ -2,13 +2,13 @@ , ncurses , withXaw3d ? false #, withPVMlib ? false -, tcl, tk, withTk ? false +, tcl, tk, withTk ? true , gtk2, withGtk ? false # working ? #, withF2c ? false -, ocaml, withOCaml ? false +, ocaml, withOCaml ? true #, withJava ? false #, atlasMath, withAtlas ? false -, xlibsWrapper, withX ? false +, xlibsWrapper, withX ? true }: stdenv.mkDerivation rec { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9b241008a76..22efa454676 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21969,13 +21969,7 @@ in singular = callPackage ../applications/science/math/singular { }; - scilab = callPackage ../applications/science/math/scilab { - withXaw3d = false; - withTk = true; - withGtk = false; - withOCaml = true; - withX = true; - }; + scilab = callPackage ../applications/science/math/scilab { }; scilab-bin = callPackage ../applications/science/math/scilab-bin {}; From f37effbc998e1fe81547c48b7d7382f9f66261a5 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:46 +0000 Subject: [PATCH 37/38] gams: move defaults to package file --- pkgs/tools/misc/gams/default.nix | 2 +- pkgs/top-level/all-packages.nix | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/gams/default.nix b/pkgs/tools/misc/gams/default.nix index 990282b2d58..011231692f3 100644 --- a/pkgs/tools/misc/gams/default.nix +++ b/pkgs/tools/misc/gams/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, unzip, file, licenseFile, optgamsFile}: +{ stdenv, fetchurl, unzip, file, licenseFile ? null, optgamsFile ? null}: assert licenseFile != null; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 22efa454676..73112b71d1f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -674,10 +674,7 @@ in gamecube-tools = callPackage ../development/tools/gamecube-tools { }; - gams = callPackage ../tools/misc/gams { - licenseFile = config.gams.licenseFile or null; - optgamsFile = config.gams.optgamsFile or null; - }; + gams = callPackage ../tools/misc/gams (config.gams or {}); git-fire = callPackage ../tools/misc/git-fire { }; From 88ca6dd78a320d8eb8ee99a074e7ffceedeabc1e Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 3 Feb 2019 15:30:47 +0000 Subject: [PATCH 38/38] cplex: move defaults to package file --- pkgs/applications/science/math/cplex/default.nix | 2 +- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/math/cplex/default.nix b/pkgs/applications/science/math/cplex/default.nix index fe3913648f8..dae5e1b76d3 100644 --- a/pkgs/applications/science/math/cplex/default.nix +++ b/pkgs/applications/science/math/cplex/default.nix @@ -1,4 +1,4 @@ -{ stdenv, makeWrapper, openjdk, gtk2, xorg, glibcLocales, releasePath }: +{ stdenv, makeWrapper, openjdk, gtk2, xorg, glibcLocales, releasePath ? null }: # To use this package, you need to download your own cplex installer from IBM # and override the releasePath attribute to point to the location of the file. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 73112b71d1f..a9c07edc2c8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1156,7 +1156,7 @@ in coprthr = callPackage ../development/libraries/coprthr { }; - cplex = callPackage ../applications/science/math/cplex { releasePath = config.cplex.releasePath or null; }; + cplex = callPackage ../applications/science/math/cplex (config.cplex or {}); cpulimit = callPackage ../tools/misc/cpulimit { };