Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: be3978105857
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 48caae504502
Choose a head ref

Commits on Oct 2, 2018

  1. Document make-channel.nix

    lheckemann authored and roberth committed Oct 2, 2018
    Copy the full SHA
    bbffdfc View commit details

Commits on Oct 25, 2018

  1. Copy the full SHA
    eec630f View commit details

Commits on Oct 29, 2018

  1. nixos/tomcat: add purifyOnStart option

    With this option enabled, before creating file/directories/symlinks in baseDir
    according to configuration, old occurences of them are removed.
    
    This prevents remainders of an old configuration (libraries, webapps, you name
    it) from persisting after activating a new configuration.
    pvgoran committed Oct 29, 2018
    Copy the full SHA
    a57bbf4 View commit details

Commits on Oct 30, 2018

  1. Copy the full SHA
    c3a7194 View commit details

Commits on Nov 2, 2018

  1. Copy the full SHA
    62429fe View commit details
  2. Copy the full SHA
    61aa7e0 View commit details
  3. Copy the full SHA
    6a449c0 View commit details
  4. Copy the full SHA
    de6d025 View commit details

Commits on Nov 3, 2018

  1. Copy the full SHA
    7959f77 View commit details
  2. asmfmt: init at 1.1

    kalbasit committed Nov 3, 2018
    Copy the full SHA
    126e64e View commit details
  3. errcheck: init at 1.1.0

    kalbasit committed Nov 3, 2018
    Copy the full SHA
    6d7413e View commit details
  4. Copy the full SHA
    f6e78e4 View commit details
  5. Copy the full SHA
    f5e4939 View commit details
  6. Copy the full SHA
    9795ad3 View commit details
  7. go-tools: init at 2017.2.2

    kalbasit committed Nov 3, 2018
    Copy the full SHA
    d225933 View commit details
  8. Copy the full SHA
    df46a94 View commit details
  9. Copy the full SHA
    63d9863 View commit details
  10. goconst: init at 1.1.0

    kalbasit committed Nov 3, 2018
    Copy the full SHA
    fe83c5c View commit details
  11. Copy the full SHA
    f10fcf2 View commit details
  12. Copy the full SHA
    1efe4d9 View commit details
  13. Copy the full SHA
    ed31a46 View commit details
  14. Copy the full SHA
    cfa5c7f View commit details
  15. gosec: init at 1.1.0

    kalbasit committed Nov 3, 2018
    Copy the full SHA
    a1faa70 View commit details
  16. Copy the full SHA
    6a09bfc View commit details
  17. Copy the full SHA
    fce50a7 View commit details
  18. Copy the full SHA
    e2355c6 View commit details
  19. Copy the full SHA
    e09e529 View commit details
  20. Copy the full SHA
    b3ab4d1 View commit details
  21. treewide: remove pkgs_i686

    This was getting evaluated eagerly causing assertion failures in
    aarch64 systems. We can replace usages of pkgs_i686 with
    pkgs.pkgsi686Linux.
    matthewbauer committed Nov 3, 2018
    Copy the full SHA
    4a8fc5b View commit details
  22. stage.nix: throw error on incorrect pkgsi686Linux usage

    pkgsi686Linux now throws an error with a message as opposed to the
    previous assertion.
    matthewbauer committed Nov 3, 2018
    Copy the full SHA
    370ce8f View commit details
  23. Copy the full SHA
    666e0ab View commit details

Commits on Nov 4, 2018

  1. Copy the full SHA
    2900f82 View commit details
  2. ibm-plex: 1.1.6 -> 1.2.1

    marsam committed Nov 4, 2018
    Copy the full SHA
    b81a375 View commit details
  3. 1password: 0.5.3 -> 0.5.4

    marsam committed Nov 4, 2018
    Copy the full SHA
    b065bb2 View commit details
  4. chrootenv: strip the binary

    pbogdan committed Nov 4, 2018
    Copy the full SHA
    ccb76ee View commit details
  5. acgtk: 1.3.1 -> 1.5.0

    vbgl committed Nov 4, 2018
    Copy the full SHA
    08ac103 View commit details
  6. Copy the full SHA
    71449e7 View commit details
  7. chrootenv: use meson

    lukateras committed Nov 4, 2018
    Copy the full SHA
    cea0e92 View commit details
  8. Copy the full SHA
    1ee4c64 View commit details
  9. Copy the full SHA
    2e49503 View commit details
  10. Copy the full SHA
    6f34258 View commit details
  11. Copy the full SHA
    354379d View commit details
  12. matrix-synapse: 0.33.6 -> 0.33.8

    Also reworked dependencies:
     * blist and ujson are marked as no longer needed
     * pytz has no mention throughout `git log -p` on synapse's repository
     * systemd and affinity are optional (but turned on by default)
    Ekleog committed Nov 4, 2018
    Copy the full SHA
    bb86056 View commit details
  13. phototonic: 1.7.1 -> 2.1

    woffs committed Nov 4, 2018
    Copy the full SHA
    fc84be0 View commit details
  14. Merge pull request #49579 from plumelo/feature/brightnessctl-tweaks

    brightnessctl: fix udev and clean unnecessary make flags
    joachifm authored Nov 4, 2018
    Copy the full SHA
    e594af8 View commit details
  15. Add dhallPackages and add current Prelude

    Dhall is a non-turing complete programming language.
    Profpatsch committed Nov 4, 2018
    Copy the full SHA
    34bf218 View commit details
  16. haskellPackages.*.env: Fixed shellHook being ignored

    The problem was introduced in 2bafa93
    FPtje committed Nov 4, 2018
    Copy the full SHA
    0ff9a7a View commit details
  17. Copy the full SHA
    df88170 View commit details
  18. graalvm 1.0.0-rc8 fixes

    volth authored and NeQuissimus committed Nov 4, 2018
    Copy the full SHA
    7bd7738 View commit details
  19. graalvm: More fixes

    NeQuissimus committed Nov 4, 2018
    Copy the full SHA
    23deb67 View commit details
Showing with 2,293 additions and 1,287 deletions.
  1. +4 −0 .github/CODEOWNERS
  2. +4 −5 doc/languages-frameworks/python.section.md
  3. +4 −0 nixos/lib/make-channel.nix
  4. +1 −2 nixos/lib/test-driver/Machine.pm
  5. +4 −4 nixos/modules/config/pulseaudio.nix
  6. +2 −2 nixos/modules/hardware/opengl.nix
  7. +2 −2 nixos/modules/hardware/video/amdgpu-pro.nix
  8. +2 −2 nixos/modules/hardware/video/ati.nix
  9. +2 −2 nixos/modules/hardware/video/nvidia.nix
  10. +0 −1 nixos/modules/misc/nixpkgs.nix
  11. +1 −1 nixos/modules/security/rngd.nix
  12. +26 −1 nixos/modules/services/web-servers/tomcat.nix
  13. +2 −2 nixos/modules/virtualisation/parallels-guest.nix
  14. +3 −5 pkgs/applications/graphics/phototonic/default.nix
  15. +4 −4 pkgs/applications/misc/1password/default.nix
  16. +27 −44 pkgs/applications/misc/mupdf/darwin.patch
  17. +6 −12 pkgs/applications/misc/mupdf/default.nix
  18. +0 −45 pkgs/applications/misc/mupdf/mupdf-1.13-shared_libs-1.patch
  19. +39 −0 pkgs/applications/misc/mupdf/mupdf-1.14-shared_libs.patch
  20. +3 −3 pkgs/applications/networking/feedreaders/canto-curses/default.nix
  21. +4 −5 pkgs/applications/networking/feedreaders/canto-daemon/default.nix
  22. +14 −43 pkgs/applications/networking/mailreaders/notmuch/default.nix
  23. +1 −1 pkgs/applications/networking/remote/remmina/default.nix
  24. +10 −40 pkgs/applications/science/logic/acgtk/default.nix
  25. +0 −23 pkgs/applications/science/logic/acgtk/install-emacs-to-site-lisp.patch
  26. +0 −11 pkgs/applications/science/logic/acgtk/use-nix-ocaml-byteflags.patch
  27. +3 −3 pkgs/applications/version-management/git-and-tools/git-big-picture/default.nix
  28. +4 −7 pkgs/build-support/build-fhs-userenv/chrootenv/default.nix
  29. +5 −0 pkgs/build-support/build-fhs-userenv/chrootenv/meson.build
  30. +2 −2 pkgs/build-support/build-fhs-userenv/default.nix
  31. +2 −2 pkgs/data/fonts/ibm-plex/default.nix
  32. +1 −0 pkgs/development/compilers/ghc/8.2.1-binary.nix
  33. +32 −12 pkgs/development/compilers/graalvm/default.nix
  34. +1 −0 pkgs/development/coq-modules/autosubst/default.nix
  35. +1 −1 pkgs/development/coq-modules/contribs/default.nix
  36. +41 −5 pkgs/development/coq-modules/mathcomp/default.nix
  37. +0 −42 pkgs/development/coq-modules/mathcomp/generic.nix
  38. +42 −5 pkgs/development/coq-modules/ssreflect/default.nix
  39. +0 −49 pkgs/development/coq-modules/ssreflect/generic.nix
  40. +9 −0 pkgs/development/dhall-modules/default.nix
  41. +25 −0 pkgs/development/dhall-modules/prelude/v3.nix
  42. +2 −2 pkgs/development/haskell-modules/configuration-common.nix
  43. +2 −2 pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix
  44. +6 −6 pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
  45. +54 −0 pkgs/development/haskell-modules/configuration-hackage2nix.yaml
  46. +1 −0 pkgs/development/haskell-modules/generic-builder.nix
  47. +523 −206 pkgs/development/haskell-modules/hackage-packages.nix
  48. +0 −214 pkgs/development/interpreters/python/cpython/3.4/default.nix
  49. +0 −51 pkgs/development/interpreters/python/cpython/3.4/ld_library_path.patch
  50. +0 −147 pkgs/development/interpreters/python/cpython/3.4/no-ldconfig.patch
  51. +0 −48 pkgs/development/interpreters/python/cpython/3.4/use-correct-tcl-tk-on-darwin.patch
  52. +10 −30 pkgs/development/libraries/http-parser/default.nix
  53. +2 −2 pkgs/development/libraries/java/lombok/default.nix
  54. +1 −5 pkgs/development/libraries/libui/default.nix
  55. +0 −1 pkgs/development/libraries/pcl/default.nix
  56. +4 −4 pkgs/development/libraries/talloc/default.nix
  57. +0 −2 pkgs/development/libraries/vtk/default.nix
  58. +0 −4 pkgs/development/mobile/xpwn/default.nix
  59. +22 −0 pkgs/development/python-modules/httmock/default.nix
  60. +23 −9 pkgs/development/python-modules/imageio/default.nix
  61. +1 −0 pkgs/development/python-modules/moviepy/default.nix
  62. +22 −0 pkgs/development/python-modules/python-gitlab/default.nix
  63. +37 −0 pkgs/development/tools/asmfmt/default.nix
  64. +20 −0 pkgs/development/tools/asmfmt/deps.nix
  65. +5 −4 pkgs/development/tools/build-managers/bazel/bazel-deps/default.nix
  66. +10 −10 pkgs/development/tools/build-managers/meson/default.nix
  67. +30 −0 pkgs/development/tools/check/default.nix
  68. +11 −0 pkgs/development/tools/check/deps.nix
  69. +31 −0 pkgs/development/tools/deadcode/default.nix
  70. +29 −0 pkgs/development/tools/errcheck/default.nix
  71. +20 −0 pkgs/development/tools/errcheck/deps.nix
  72. +29 −0 pkgs/development/tools/go-tools/default.nix
  73. +20 −0 pkgs/development/tools/go-tools/deps.nix
  74. +27 −0 pkgs/development/tools/goconst/default.nix
  75. +28 −0 pkgs/development/tools/gocyclo/default.nix
  76. +31 −0 pkgs/development/tools/gogetdoc/default.nix
  77. +13 −0 pkgs/development/tools/gogetdoc/deps.nix
  78. +70 −0 pkgs/development/tools/gometalinter/default.nix
  79. +29 −0 pkgs/development/tools/gosec/default.nix
  80. +193 −0 pkgs/development/tools/gosec/deps.nix
  81. +28 −0 pkgs/development/tools/iferr/default.nix
  82. +30 −0 pkgs/development/tools/impl/default.nix
  83. +11 −0 pkgs/development/tools/impl/deps.nix
  84. +29 −0 pkgs/development/tools/ineffassign/default.nix
  85. +31 −0 pkgs/development/tools/interfacer/default.nix
  86. +29 −0 pkgs/development/tools/interfacer/deps.nix
  87. +30 −0 pkgs/development/tools/maligned/default.nix
  88. +20 −0 pkgs/development/tools/maligned/deps.nix
  89. +29 −0 pkgs/development/tools/reftools/default.nix
  90. +31 −0 pkgs/development/tools/unconvert/default.nix
  91. +29 −0 pkgs/development/tools/unconvert/deps.nix
  92. +6 −24 pkgs/development/web/mailcatcher/default.nix
  93. +5 −7 pkgs/misc/brightnessctl/default.nix
  94. +2 −2 pkgs/misc/emulators/retroarch/default.nix
  95. +34 −0 pkgs/misc/vim-plugins/overrides.nix
  96. +19 −20 pkgs/os-specific/linux/firmware/raspberrypi-wireless/default.nix
  97. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  98. +2 −2 pkgs/os-specific/linux/kernel/linux-4.18.nix
  99. +2 −2 pkgs/os-specific/linux/kernel/linux-4.19.nix
  100. +4 −4 pkgs/os-specific/linux/kernel/linux-testing.nix
  101. +39 −12 pkgs/servers/matrix-synapse/default.nix
  102. +3 −3 pkgs/servers/plex/default.nix
  103. +5 −5 pkgs/tools/admin/fastlane/Gemfile.lock
  104. +8 −8 pkgs/tools/admin/fastlane/gemset.nix
  105. +2 −2 pkgs/tools/backup/bup/default.nix
  106. +6 −6 pkgs/tools/misc/svtplay-dl/default.nix
  107. +2 −2 pkgs/tools/misc/tmux/default.nix
  108. +32 −0 pkgs/tools/networking/ip2unix/default.nix
  109. +2 −0 pkgs/tools/typesetting/scdoc/default.nix
  110. +75 −0 pkgs/tools/typesetting/scdoc/use-source-date-epoch.patch
  111. +89 −47 pkgs/top-level/all-packages.nix
  112. +10 −1 pkgs/top-level/coq-packages.nix
  113. +1 −0 pkgs/top-level/haskell-packages.nix
  114. +4 −0 pkgs/top-level/python-packages.nix
  115. +1 −1 pkgs/top-level/release-lib.nix
  116. +2 −2 pkgs/top-level/stage.nix
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -113,3 +113,7 @@
/nixos/modules/services/databases/postgresql.xml @thoughtpolice
/nixos/modules/services/databases/postgresql.nix @thoughtpolice
/nixos/tests/postgresql.nix @thoughtpolice

# Dhall
/pkgs/development/dhall-modules @Gabriel439 @Profpatsch
/pkgs/development/interpreters/dhall @Gabriel439 @Profpatsch
9 changes: 4 additions & 5 deletions doc/languages-frameworks/python.section.md
Original file line number Diff line number Diff line change
@@ -483,8 +483,8 @@ and in this case the `python35` interpreter is automatically used.

### Interpreters

Versions 2.7, 3.4, 3.5, 3.6 and 3.7 of the CPython interpreter are available as
respectively `python27`, `python34`, `python35`, `python36` and `python37`. The PyPy interpreter
Versions 2.7, 3.5, 3.6 and 3.7 of the CPython interpreter are available as
respectively `python27`, `python35`, `python36` and `python37`. The PyPy interpreter
is available as `pypy`. The aliases `python2` and `python3` correspond to respectively `python27` and
`python37`. The default interpreter, `python`, maps to `python2`.
The Nix expressions for the interpreters can be found in
@@ -507,7 +507,7 @@ Each interpreter has the following attributes:
- `buildEnv`. Function to build python interpreter environments with extra packages bundled together. See section *python.buildEnv function* for usage and documentation.
- `withPackages`. Simpler interface to `buildEnv`. See section *python.withPackages function* for usage and documentation.
- `sitePackages`. Alias for `lib/${libPrefix}/site-packages`.
- `executable`. Name of the interpreter executable, e.g. `python3.4`.
- `executable`. Name of the interpreter executable, e.g. `python3.7`.
- `pkgs`. Set of Python packages for that specific interpreter. The package set can be modified by overriding the interpreter and passing `packageOverrides`.

### Building packages and applications
@@ -529,7 +529,6 @@ attribute set is created for each available Python interpreter. The available
sets are

* `pkgs.python27Packages`
* `pkgs.python34Packages`
* `pkgs.python35Packages`
* `pkgs.python36Packages`
* `pkgs.python37Packages`
@@ -837,7 +836,7 @@ community to help save time. No tool is preferred at the moment.

### Deterministic builds

Python 2.7, 3.5 and 3.6 are now built deterministically and 3.4 mostly.
The Python interpreters are now built deterministically.
Minor modifications had to be made to the interpreters in order to generate
deterministic bytecode. This has security implications and is relevant for
those using Python in a `nix-shell`.
4 changes: 4 additions & 0 deletions nixos/lib/make-channel.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Build a channel tarball. These contain, in addition to the nixpkgs
* expressions themselves, files that indicate the version of nixpkgs
* that they represent.
*/
{ pkgs, nixpkgs, version, versionSuffix }:

pkgs.releaseTools.makeSourceTarball {
3 changes: 1 addition & 2 deletions nixos/lib/test-driver/Machine.pm
Original file line number Diff line number Diff line change
@@ -250,8 +250,7 @@ sub connect {
$self->start;

local $SIG{ALRM} = sub { die "timed out waiting for the VM to connect\n"; };
# 50 minutes -- increased as a test, see #49441
alarm 3000;
alarm 300;
readline $self->{socket} or die "the VM quit before connecting\n";
alarm 0;

8 changes: 4 additions & 4 deletions nixos/modules/config/pulseaudio.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, pkgs_i686, ... }:
{ config, lib, pkgs, ... }:

with pkgs;
with lib;
@@ -19,7 +19,7 @@ let

# Forces 32bit pulseaudio and alsaPlugins to be built/supported for apps
# using 32bit alsa on 64bit linux.
enable32BitAlsaPlugins = cfg.support32Bit && stdenv.isx86_64 && (pkgs_i686.alsaLib != null && pkgs_i686.libpulseaudio != null);
enable32BitAlsaPlugins = cfg.support32Bit && stdenv.isx86_64 && (pkgs.pkgsi686Linux.alsaLib != null && pkgs.pkgsi686Linux.libpulseaudio != null);


myConfigFile =
@@ -63,7 +63,7 @@ let
pcm_type.pulse {
libs.native = ${pkgs.alsaPlugins}/lib/alsa-lib/libasound_module_pcm_pulse.so ;
${lib.optionalString enable32BitAlsaPlugins
"libs.32Bit = ${pkgs_i686.alsaPlugins}/lib/alsa-lib/libasound_module_pcm_pulse.so ;"}
"libs.32Bit = ${pkgs.pkgsi686Linux.alsaPlugins}/lib/alsa-lib/libasound_module_pcm_pulse.so ;"}
}
pcm.!default {
type pulse
@@ -72,7 +72,7 @@ let
ctl_type.pulse {
libs.native = ${pkgs.alsaPlugins}/lib/alsa-lib/libasound_module_ctl_pulse.so ;
${lib.optionalString enable32BitAlsaPlugins
"libs.32Bit = ${pkgs_i686.alsaPlugins}/lib/alsa-lib/libasound_module_ctl_pulse.so ;"}
"libs.32Bit = ${pkgs.pkgsi686Linux.alsaPlugins}/lib/alsa-lib/libasound_module_ctl_pulse.so ;"}
}
ctl.!default {
type pulse
4 changes: 2 additions & 2 deletions nixos/modules/hardware/opengl.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, pkgs_i686, ... }:
{ config, lib, pkgs, ... }:

with lib;

@@ -148,7 +148,7 @@ in
[ "/run/opengl-driver/share" ] ++ optional cfg.driSupport32Bit "/run/opengl-driver-32/share";

hardware.opengl.package = mkDefault (makePackage pkgs);
hardware.opengl.package32 = mkDefault (makePackage pkgs_i686);
hardware.opengl.package32 = mkDefault (makePackage pkgs.pkgsi686Linux);

boot.extraModulePackages = optional (elem "virtualbox" videoDrivers) kernelPackages.virtualboxGuestAdditions;
};
4 changes: 2 additions & 2 deletions nixos/modules/hardware/video/amdgpu-pro.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This module provides the proprietary AMDGPU-PRO drivers.

{ config, lib, pkgs, pkgs_i686, ... }:
{ config, lib, pkgs, ... }:

with lib;

@@ -11,7 +11,7 @@ let
enabled = elem "amdgpu-pro" drivers;

package = config.boot.kernelPackages.amdgpu-pro;
package32 = pkgs_i686.linuxPackages.amdgpu-pro.override { libsOnly = true; kernel = null; };
package32 = pkgs.pkgsi686Linux.linuxPackages.amdgpu-pro.override { libsOnly = true; kernel = null; };

opengl = config.hardware.opengl;

4 changes: 2 additions & 2 deletions nixos/modules/hardware/video/ati.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This module provides the proprietary ATI X11 / OpenGL drivers.

{ config, lib, pkgs_i686, ... }:
{ config, lib, pkgs, ... }:

with lib;

@@ -24,7 +24,7 @@ in
{ name = "fglrx"; modules = [ ati_x11 ]; libPath = [ "${ati_x11}/lib" ]; };

hardware.opengl.package = ati_x11;
hardware.opengl.package32 = pkgs_i686.linuxPackages.ati_drivers_x11.override { libsOnly = true; kernel = null; };
hardware.opengl.package32 = pkgs.pkgsi686Linux.linuxPackages.ati_drivers_x11.override { libsOnly = true; kernel = null; };

environment.systemPackages = [ ati_x11 ];

4 changes: 2 additions & 2 deletions nixos/modules/hardware/video/nvidia.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This module provides the proprietary NVIDIA X11 / OpenGL drivers.

{ stdenv, config, lib, pkgs, pkgs_i686, ... }:
{ stdenv, config, lib, pkgs, ... }:

with lib;

@@ -25,7 +25,7 @@ let
nvidia_x11 = nvidiaForKernel config.boot.kernelPackages;
nvidia_libs32 =
if versionOlder nvidia_x11.version "391" then
((nvidiaForKernel pkgs_i686.linuxPackages).override { libsOnly = true; kernel = null; }).out
((nvidiaForKernel pkgs.pkgsi686Linux.linuxPackages).override { libsOnly = true; kernel = null; }).out
else
(nvidiaForKernel config.boot.kernelPackages).lib32;

1 change: 0 additions & 1 deletion nixos/modules/misc/nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -208,7 +208,6 @@ in
config = {
_module.args = {
pkgs = cfg.pkgs;
pkgs_i686 = cfg.pkgs.pkgsi686Linux;
};
};
}
2 changes: 1 addition & 1 deletion nixos/modules/security/rngd.nix
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ with lib;

description = "Hardware RNG Entropy Gatherer Daemon";

serviceConfig.ExecStart = "${pkgs.rng-tools}/sbin/rngd -f -v";
serviceConfig.ExecStart = "${pkgs.rng-tools}/sbin/rngd -f";
};
};
}
27 changes: 26 additions & 1 deletion nixos/modules/services/web-servers/tomcat.nix
Original file line number Diff line number Diff line change
@@ -31,10 +31,26 @@ in
'';
};

purifyOnStart = mkOption {
type = types.bool;
default = false;
description = ''
On startup, the `baseDir` directory is populated with various files,
subdirectories and symlinks. If this option is enabled, these items
(except for the `logs` and `work` subdirectories) are first removed.
This prevents interference from remainders of an old configuration
(libraries, webapps, etc.), so it's recommended to enable this option.
'';
};

baseDir = mkOption {
type = lib.types.path;
default = "/var/tomcat";
description = "Location where Tomcat stores configuration files, webapplications and logfiles";
description = ''
Location where Tomcat stores configuration files, web applications
and logfiles. Note that it is partially cleared on each service startup
if `purifyOnStart` is enabled.
'';
};

logDirs = mkOption {
@@ -197,6 +213,15 @@ in
after = [ "network.target" ];

preStart = ''
${lib.optionalString cfg.purifyOnStart ''
# Delete most directories/symlinks we create from the existing base directory,
# to get rid of remainders of an old configuration.
# The list of directories to delete is taken from the "mkdir" command below,
# excluding "logs" (because logs are valuable) and "work" (because normally
# session files are there), and additionally including "bin".
rm -rf ${cfg.baseDir}/{conf,virtualhosts,temp,lib,shared/lib,webapps,bin}
''}
# Create the base directory
mkdir -p \
${cfg.baseDir}/{conf,virtualhosts,logs,temp,lib,shared/lib,webapps,work}
4 changes: 2 additions & 2 deletions nixos/modules/virtualisation/parallels-guest.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, pkgs_i686, ... }:
{ config, lib, pkgs, ... }:

with lib;

@@ -64,7 +64,7 @@ in
};

hardware.opengl.package = prl-tools;
hardware.opengl.package32 = pkgs_i686.linuxPackages.prl-tools.override { libsOnly = true; kernel = null; };
hardware.opengl.package32 = pkgs.pkgsi686Linux.linuxPackages.prl-tools.override { libsOnly = true; kernel = null; };

services.udev.packages = [ prl-tools ];

8 changes: 3 additions & 5 deletions pkgs/applications/graphics/phototonic/default.nix
Original file line number Diff line number Diff line change
@@ -2,15 +2,13 @@

stdenv.mkDerivation rec {
name = "phototonic-${version}";
version = "1.7.1";
version = "2.1";

src = fetchFromGitHub {
repo = "phototonic";
owner = "oferkv";
# There is currently no tag for 1.7.1 see
# https://github.com/oferkv/phototonic/issues/214
rev = "c37070e4a068570d34ece8de1e48aa0882c80c5b";
sha256 = "1agd3bsrpljd019qrjvlbim5l0bhpx53dhpc0gvyn0wmcdzn92gj";
rev = "v${version}";
sha256 = "0csidmxl1sfmn6gq81vn9f9jckb4swz3sgngnwqa4f75lr6604h7";
};

buildInputs = [ qtbase exiv2 ];
8 changes: 4 additions & 4 deletions pkgs/applications/misc/1password/default.nix
Original file line number Diff line number Diff line change
@@ -2,24 +2,24 @@

stdenv.mkDerivation rec {
name = "1password-${version}";
version = "0.5.3";
version = "0.5.4";
src =
if stdenv.hostPlatform.system == "i686-linux" then
fetchzip {
url = "https://cache.agilebits.com/dist/1P/op/pkg/v${version}/op_linux_386_v${version}.zip";
sha256 = "05s223h1yps4k9kmignl0r5sbh6w7m1hnlmafnf1kiwv7gacvxjc";
sha256 = "0wni2hk5b1qfr24vi24jiprpi08k3qgaw9lqp61k41a1sjp3izv0";
stripRoot = false;
}
else if stdenv.hostPlatform.system == "x86_64-linux" then
fetchzip {
url = "https://cache.agilebits.com/dist/1P/op/pkg/v${version}/op_linux_amd64_v${version}.zip";
sha256 = "0p9x1fx0309v8dxxaf88m8x8q15zzqywfmjn6v5wb9v3scp9396v";
sha256 = "169d5fl3cfw3xrlpm9nlmwbnp0xgh0la9qybzf8ragp0020nlyih";
stripRoot = false;
}
else if stdenv.hostPlatform.system == "x86_64-darwin" then
fetchzip {
url = "https://cache.agilebits.com/dist/1P/op/pkg/v${version}/op_darwin_amd64_v${version}.zip";
sha256 = "1z2xp9bn93gr4ha6zx65va1fb58a2xlnnmpv583y96gq3vbnqdcj";
sha256 = "1scikv7v33kzg9rqsrz97yklxaskvif84br13zg8annm43k5vlma";
stripRoot = false;
}
else throw "Architecture not supported";
71 changes: 27 additions & 44 deletions pkgs/applications/misc/mupdf/darwin.patch
Original file line number Diff line number Diff line change
@@ -1,47 +1,30 @@
diff --git a/Makerules b/Makerules
--- a/Makerules
+++ b/Makerules
@@ -81,22 +81,10 @@ HAVE_GLUT ?= yes
SYS_GLUT_CFLAGS := -Wno-deprecated-declarations
SYS_GLUT_LIBS := -framework GLUT -framework OpenGL

-CC = xcrun cc
-AR = xcrun ar
-LD = xcrun ld
-RANLIB_CMD = xcrun ranlib $@
-
-# Linux uses pkg-config for system libraries.
-else ifeq "$(OS)" "Linux"
diff -ruN mupdf-1.14.0-source.orig/Makerules mupdf-1.14.0-source/Makerules
--- mupdf-1.14.0-source.orig/Makerules 2018-11-02 06:57:12.114012496 +0100
+++ mupdf-1.14.0-source/Makerules 2018-11-02 10:11:56.717232992 +0100
@@ -80,13 +80,6 @@
HAVE_GLUT := yes
SYS_GLUT_CFLAGS := -Wno-deprecated-declarations
SYS_GLUT_LIBS := -framework GLUT -framework OpenGL
- CC = xcrun cc
- AR = xcrun ar
- LD = xcrun ld
- RANLIB = xcrun ranlib
-
HAVE_PTHREAD := yes
SYS_PTHREAD_CFLAGS :=
SYS_PTHREAD_LIBS := -lpthread
-else ifeq ($(OS),Linux)
- HAVE_OBJCOPY := yes

-HAVE_GLUT := yes
-SYS_GLUT_CFLAGS :=
-SYS_GLUT_LIBS := -lglut -lGL
-
ifeq "$(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)" "yes"
HAVE_LIBCRYPTO := yes
SYS_LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO $(shell pkg-config --cflags libcrypto)
@@ -113,7 +101,7 @@ SYS_CURL_CFLAGS += $(shell pkg-config --cflags openssl)
SYS_CURL_DEPS += $(shell pkg-config --libs openssl)
endif
endif
-SYS_CURL_DEPS += -lpthread -lrt
+SYS_CURL_DEPS += -lpthread
ifeq ($(shell pkg-config --exists freetype2 && echo yes),yes)
SYS_FREETYPE_CFLAGS := $(shell pkg-config --cflags freetype2)
@@ -119,12 +112,6 @@
SYS_CURL_LIBS := $(shell pkg-config --libs libcurl)
endif

ifeq "$(shell pkg-config --exists x11 xext && echo yes)" "yes"
HAVE_X11 := yes
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c
index d58f7ba..808af18 100644
--- a/platform/gl/gl-main.c
+++ b/platform/gl/gl-main.c
@@ -16,6 +16,7 @@ void glutExit(void) {}
void glutMouseWheelFunc(void *fn) {}
void glutInitErrorFunc(void *fn) {}
void glutInitWarningFunc(void *fn) {}
+#define glutSetOption(X,Y)
#endif

enum
- HAVE_GLUT := yes
- ifeq ($(HAVE_GLUT),yes)
- SYS_GLUT_CFLAGS :=
- SYS_GLUT_LIBS := -lglut -lGL
- endif
-
HAVE_X11 := $(shell pkg-config --exists x11 xext && echo yes)
ifeq ($(HAVE_X11),yes)
X11_CFLAGS := $(shell pkg-config --cflags x11 xext)
Loading