Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a88ad6c6795a
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a4581f521dac
Choose a head ref
Loading
Showing with 1,740 additions and 1,520 deletions.
  1. +11 −1 doc/package-notes.xml
  2. +11 −3 nixos/lib/make-system-tarball.nix
  3. +2 −3 nixos/lib/make-system-tarball.sh
  4. +1 −3 nixos/modules/profiles/docker-container.nix
  5. +3 −2 nixos/modules/services/misc/nix-daemon.nix
  6. +1 −0 nixos/modules/services/networking/dhcpd.nix
  7. +2 −2 nixos/modules/services/torrent/transmission.nix
  8. +4 −4 nixos/modules/system/boot/stage-2-init.sh
  9. +0 −29 nixos/modules/tasks/network-interfaces.nix
  10. +1 −1 nixos/tests/openldap.nix
  11. +3 −3 pkgs/applications/misc/rofi/default.nix
  12. +17 −0 pkgs/applications/misc/rofi/wrapper.nix
  13. +2 −1 pkgs/applications/networking/cluster/kubernetes/default.nix
  14. +9 −1 pkgs/applications/networking/irc/weechat/default.nix
  15. +37 −34 pkgs/data/fonts/tex-gyre-math/default.nix
  16. +5 −1 pkgs/desktops/lxqt/base/libqtxdg/default.nix
  17. +70 −0 pkgs/development/compilers/gambit/build.nix
  18. +5 −67 pkgs/development/compilers/gambit/default.nix
  19. +11 −0 pkgs/development/compilers/gambit/unstable.nix
  20. +88 −0 pkgs/development/compilers/gerbil/build.nix
  21. +7 −87 pkgs/development/compilers/gerbil/default.nix
  22. +12 −0 pkgs/development/compilers/gerbil/unstable.nix
  23. +193 −0 pkgs/development/compilers/ghc/8.4.2.nix
  24. +19 −5 pkgs/development/compilers/glslang/default.nix
  25. +2 −2 pkgs/development/compilers/go/1.10.nix
  26. +2 −2 pkgs/development/compilers/go/1.9.nix
  27. +8 −4 pkgs/development/haskell-modules/configuration-common.nix
  28. +0 −1 pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix
  29. +49 −49 pkgs/development/haskell-modules/configuration-hackage2nix.yaml
  30. +966 −1,153 pkgs/development/haskell-modules/hackage-packages.nix
  31. +2 −2 pkgs/development/libraries/dlib/default.nix
  32. +2 −1 pkgs/development/libraries/gsl/default.nix
  33. +1 −0 pkgs/development/libraries/lightstep-tracer-cpp/default.nix
  34. +6 −6 pkgs/development/libraries/rocksdb/default.nix
  35. +10 −5 pkgs/development/libraries/vulkan-loader/default.nix
  36. +21 −0 pkgs/development/libraries/vulkan-loader/rev-file.patch
  37. +5 −5 pkgs/development/python-modules/face_recognition/default.nix
  38. +2 −2 pkgs/development/tools/build-managers/doit/default.nix
  39. +32 −0 pkgs/development/tools/gron/default.nix
  40. +35 −0 pkgs/development/tools/gron/deps.nix
  41. +28 −0 pkgs/development/tools/jl/default.nix
  42. +6 −7 pkgs/development/tools/spirv-tools/default.nix
  43. +6 −6 pkgs/games/factorio/default.nix
  44. +0 −1 pkgs/misc/cups/filters.nix
  45. +0 −5 pkgs/os-specific/darwin/apple-sdk/frameworks.nix
  46. +2 −1 pkgs/os-specific/linux/firmware/firmware-linux-nonfree/default.nix
  47. +3 −3 pkgs/os-specific/linux/spl/default.nix
  48. +6 −6 pkgs/os-specific/linux/zfs/default.nix
  49. +2 −2 pkgs/servers/nosql/arangodb/default.nix
  50. +2 −0 pkgs/tools/misc/xburst-tools/default.nix
  51. +4 −0 pkgs/top-level/aliases.nix
  52. +13 −10 pkgs/top-level/all-packages.nix
  53. +11 −0 pkgs/top-level/haskell-packages.nix
12 changes: 11 additions & 1 deletion doc/package-notes.xml
Original file line number Diff line number Diff line change
@@ -713,13 +713,23 @@ the <literal>inotify.py</literal> script in weechat-scripts requires
D-Bus or libnotify, and the <literal>fish.py</literal> script requires
pycrypto. To use these scripts, use the <literal>python</literal>
plugin's <literal>withPackages</literal> attribute:
<programlisting>weechat.override {configure = {availablePlugins, ...}: {
<programlisting>weechat.override { configure = {availablePlugins, ...}: {
plugins = with availablePlugins; [
(python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
];
}
}
</programlisting>
</para>
<para>
In order to also keep all default plugins installed, it is possible to use
the following method:
<programlisting>weechat.override { configure = { availablePlugins, ... }: {
plugins = builtins.attrValues (availablePlugins // {
python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]);
});
}; }
</programlisting>
</para>
</section>
</chapter>
14 changes: 11 additions & 3 deletions nixos/lib/make-system-tarball.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, perl, xz, pathsFromGraph
{ stdenv, perl, pixz, pathsFromGraph

, # The file name of the resulting tarball
fileName ? "nixos-system-${stdenv.system}"
@@ -21,14 +21,20 @@

# Extra tar arguments
, extraArgs ? ""
# Command used for compression
, compressCommand ? "pixz"
# Extension for the compressed tarball
, compressionExtension ? ".xz"
# extra inputs, like the compressor to use
, extraInputs ? [ pixz ]
}:

stdenv.mkDerivation {
name = "tarball";
builder = ./make-system-tarball.sh;
buildInputs = [perl xz];
buildInputs = [ perl ] ++ extraInputs;

inherit fileName pathsFromGraph extraArgs extraCommands;
inherit fileName pathsFromGraph extraArgs extraCommands compressCommand;

# !!! should use XML.
sources = map (x: x.source) contents;
@@ -41,4 +47,6 @@ stdenv.mkDerivation {
# For obtaining the closure of `storeContents'.
exportReferencesGraph =
map (x: [("closure-" + baseNameOf x.object) x.object]) storeContents;

extension = compressionExtension;
}
5 changes: 2 additions & 3 deletions nixos/lib/make-system-tarball.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
source $stdenv/setup
set -x

sources_=($sources)
targets_=($targets)
@@ -54,8 +53,8 @@ mkdir -p $out/tarball

rm env-vars

tar --sort=name --mtime='@1' --owner=0 --group=0 --numeric-owner -cvJf $out/tarball/$fileName.tar.xz * $extraArgs
time tar --sort=name --mtime='@1' --owner=0 --group=0 --numeric-owner -c * $extraArgs | $compressCommand > $out/tarball/$fileName.tar${extension}

mkdir -p $out/nix-support
echo $system > $out/nix-support/system
echo "file system-tarball $out/tarball/$fileName.tar.xz" > $out/nix-support/hydra-build-products
echo "file system-tarball $out/tarball/$fileName.tar${extension}" > $out/nix-support/hydra-build-products
4 changes: 1 addition & 3 deletions nixos/modules/profiles/docker-container.nix
Original file line number Diff line number Diff line change
@@ -14,9 +14,7 @@ in {
];

# Create the tarball
system.build.tarball = import ../../lib/make-system-tarball.nix {
inherit (pkgs) stdenv perl xz pathsFromGraph;

system.build.tarball = pkgs.callPackage ../../lib/make-system-tarball.nix {
contents = [];
extraArgs = "--owner=0";

5 changes: 3 additions & 2 deletions nixos/modules/services/misc/nix-daemon.nix
Original file line number Diff line number Diff line change
@@ -439,17 +439,18 @@ in

services.xserver.displayManager.hiddenUsers = map ({ name, ... }: name) nixbldUsers;

# FIXME: use systemd-tmpfiles to create Nix directories.
system.activationScripts.nix = stringAfter [ "etc" "users" ]
''
# Nix initialisation.
mkdir -m 0755 -p \
install -m 0755 -d \
/nix/var/nix/gcroots \
/nix/var/nix/temproots \
/nix/var/nix/userpool \
/nix/var/nix/profiles \
/nix/var/nix/db \
/nix/var/log/nix/drvs
mkdir -m 1777 -p \
install -m 1777 -d \
/nix/var/nix/gcroots/per-user \
/nix/var/nix/profiles/per-user \
/nix/var/nix/gcroots/tmp
1 change: 1 addition & 0 deletions nixos/modules/services/networking/dhcpd.nix
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@ let

preStart = ''
mkdir -m 755 -p ${cfg.stateDir}
chown dhcpd:nogroup ${cfg.stateDir}
touch ${cfg.stateDir}/dhcpd.leases
'';

4 changes: 2 additions & 2 deletions nixos/modules/services/torrent/transmission.nix
Original file line number Diff line number Diff line change
@@ -59,8 +59,8 @@ in
time the service starts). String values must be quoted, integer and
boolean values must not.
See https://trac.transmissionbt.com/wiki/EditConfigFiles for
documentation.
See https://github.com/transmission/transmission/wiki/Editing-Configuration-Files
for documentation.
'';
};

8 changes: 4 additions & 4 deletions nixos/modules/system/boot/stage-2-init.sh
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ if [ ! -e /proc/1 ]; then
local options="$3"
local fsType="$4"

mkdir -m 0755 -p "$mountPoint"
install -m 0755 -d "$mountPoint"
mount -n -t "$fsType" -o "$options" "$device" "$mountPoint"
}
source @earlyMountScript@
@@ -71,16 +71,16 @@ fi


# Provide a /etc/mtab.
mkdir -m 0755 -p /etc
install -m 0755 -d /etc
test -e /etc/fstab || touch /etc/fstab # to shut up mount
rm -f /etc/mtab* # not that we care about stale locks
ln -s /proc/mounts /etc/mtab


# More special file systems, initialise required directories.
[ -e /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb # UML doesn't have USB by default
mkdir -m 01777 -p /tmp
mkdir -m 0755 -p /var/{log,lib,db} /nix/var /etc/nixos/ \
install -m 01777 -d /tmp
install -m 0755 -d /var/{log,lib,db} /nix/var /etc/nixos/ \
/run/lock /home /bin # for the /bin/sh symlink


29 changes: 0 additions & 29 deletions nixos/modules/tasks/network-interfaces.nix
Original file line number Diff line number Diff line change
@@ -62,35 +62,6 @@ let
then mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n==device) interfaces) ++ mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n!=device) interfaces)
else mapAttrsToList (n: v: v // {_iName = n;}) interfaces;

# udev script that configures a physical wlan device and adds virtual interfaces
wlanDeviceUdevScript = device: interfaceList: pkgs.writeScript "wlan-${device}-udev-script" ''
#!${pkgs.runtimeShell}
# Change the wireless phy device to a predictable name.
if [ -e "/sys/class/net/${device}/phy80211/name" ]; then
${pkgs.iw}/bin/iw phy `${pkgs.coreutils}/bin/cat /sys/class/net/${device}/phy80211/name` set name ${device} || true
fi
# Crate new, virtual interfaces and configure them at the same time
${flip concatMapStrings (drop 1 interfaceList) (i: ''
${pkgs.iw}/bin/iw dev ${device} interface add ${i._iName} type ${i.type} \
${optionalString (i.type == "mesh" && i.meshID != null) "mesh_id ${i.meshID}"} \
${optionalString (i.type == "monitor" && i.flags != null) "flags ${i.flags}"} \
${optionalString (i.type == "managed" && i.fourAddr != null) "4addr ${if i.fourAddr then "on" else "off"}"} \
${optionalString (i.mac != null) "addr ${i.mac}"}
'')}
# Reconfigure and rename the default interface that already exists
${flip concatMapStrings (take 1 interfaceList) (i: ''
${pkgs.iw}/bin/iw dev ${device} set type ${i.type}
${optionalString (i.type == "mesh" && i.meshID != null) "${pkgs.iw}/bin/iw dev ${device} set meshid ${i.meshID}"}
${optionalString (i.type == "monitor" && i.flags != null) "${pkgs.iw}/bin/iw dev ${device} set monitor ${i.flags}"}
${optionalString (i.type == "managed" && i.fourAddr != null) "${pkgs.iw}/bin/iw dev ${device} set 4addr ${if i.fourAddr then "on" else "off"}"}
${optionalString (i.mac != null) "${pkgs.iproute}/bin/ip link set dev ${device} address ${i.mac}"}
${optionalString (device != i._iName) "${pkgs.iproute}/bin/ip link set dev ${device} name ${i._iName}"}
'')}
'';

# We must escape interfaces due to the systemd interpretation
subsystemDevice = interface:
"sys-subsystem-net-devices-${escapeSystemdPath interface}.device";
2 changes: 1 addition & 1 deletion nixos/tests/openldap.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ./make-test.nix {
name = "dovecot";
name = "openldap";

machine = { pkgs, ... }: {
services.openldap = {
6 changes: 3 additions & 3 deletions pkgs/applications/misc/rofi/default.nix
Original file line number Diff line number Diff line change
@@ -5,10 +5,10 @@

stdenv.mkDerivation rec {
version = "1.5.1";
name = "rofi-${version}";
name = "rofi-unwrapped-${version}";

src = fetchurl {
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.gz";
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/rofi-${version}.tar.gz";
sha256 = "1dc33zf33z38jcxb0lxpyd31waalpf6d4cd9z5f9m5qphdk1g679";
};

@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
description = "Window switcher, run dialog and dmenu replacement";
homepage = https://davedavenport.github.io/rofi;
license = licenses.mit;
maintainers = with maintainers; [ mbakke garbas ];
maintainers = with maintainers; [ mbakke garbas ma27 ];
platforms = with platforms; unix;
};
}
17 changes: 17 additions & 0 deletions pkgs/applications/misc/rofi/wrapper.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ stdenv, rofi-unwrapped, makeWrapper, theme ? null, lib }:

stdenv.mkDerivation {
name = "rofi-${rofi-unwrapped.version}";
buildInputs = [ makeWrapper ];
preferLocalBuild = true;
passthru = { unwrapped = rofi-unwrapped; };
buildCommand = ''
mkdir -p $out/bin
ln -s ${rofi-unwrapped}/bin/rofi $out/bin/rofi
${lib.optionalString (theme != null) ''wrapProgram $out/bin/rofi --add-flags "-theme ${theme}"''}
'';

meta = rofi-unwrapped.meta // {
priority = (rofi-unwrapped.meta.priority or 0) - 1;
};
}
3 changes: 2 additions & 1 deletion pkgs/applications/networking/cluster/kubernetes/default.nix
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ stdenv.mkDerivation rec {
'';

installPhase = ''
mkdir -p "$out/bin" "$out/share/bash-completion/completions" "$man/share/man" "$pause/bin"
mkdir -p "$out/bin" "$out/share/bash-completion/completions" "$out/share/zsh/site-functions" "$man/share/man" "$pause/bin"
cp _output/local/go/bin/* "$out/bin/"
cp build/pause/pause "$pause/bin/pause"
@@ -74,6 +74,7 @@ stdenv.mkDerivation rec {
wrapProgram $out/bin/kube-addons --set "KUBECTL_BIN" "$out/bin/kubectl"
$out/bin/kubectl completion bash > $out/share/bash-completion/completions/kubectl
$out/bin/kubectl completion zsh > $out/share/zsh/site-functions/_kubectl
'';

preFixup = ''
10 changes: 9 additions & 1 deletion pkgs/applications/networking/irc/weechat/default.nix
Original file line number Diff line number Diff line change
@@ -72,6 +72,11 @@ let
meta = {
homepage = http://www.weechat.org/;
description = "A fast, light and extensible chat client";
longDescription = ''
You can find more documentation as to how to customize this package
(eg. adding python modules for scripts that would require them, etc.)
on https://nixos.org/nixpkgs/manual/#sec-weechat .
'';
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ lovek323 garbas the-kenny lheckemann ];
platforms = stdenv.lib.platforms.unix;
@@ -117,4 +122,7 @@ in if configure == null then weechat else
export WEECHAT_EXTRA_LIBDIR=${pluginsDir}
${lib.concatMapStringsSep "\n" (p: lib.optionalString (p ? extraEnv) p.extraEnv) plugins}
exec ${weechat}/bin/weechat "$@"
'') // { unwrapped = weechat; }
'') // {
unwrapped = weechat;
meta = weechat.meta;
}
71 changes: 37 additions & 34 deletions pkgs/data/fonts/tex-gyre-math/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ variant, stdenv, fetchzip }:
{ stdenv, fetchzip }:

let
variants = {
@@ -27,40 +27,43 @@ let
outputHash = "0pa433cgshlypbyrrlp3qq0wg972rngcp37pr8pxdfshgz13q1mm";
};
};
current = variants."${variant}";
dotless_version = builtins.replaceStrings ["."] [""] current.version;
in stdenv.mkDerivation rec {
name = "tex-gyre-${variant}-math-${current.version}";
version = "${current.version}";

src = fetchzip {
url = "www.gust.org.pl/projects/e-foundry/tg-math/download/texgyre${variant}-math-${dotless_version}.zip";
sha256 = current.sha256;
};
mkVariant = variant: current:
let dotless_version = builtins.replaceStrings ["."] [""] current.version; in
stdenv.mkDerivation rec {
name = "tex-gyre-${variant}-math-${current.version}";
version = "${current.version}";

installPhase = ''
mkdir -p $out/share/fonts/opentype/
mkdir -p $out/share/doc/${name}/
cp -v opentype/*.otf $out/share/fonts/opentype/
cp -v doc/*.txt $out/share/doc/${name}/
'';
src = fetchzip {
url = "www.gust.org.pl/projects/e-foundry/tg-math/download/texgyre${variant}-math-${dotless_version}.zip";
sha256 = current.sha256;
};

outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = current.outputHash;
installPhase = ''
mkdir -p $out/share/fonts/opentype/
mkdir -p $out/share/doc/${name}/
cp -v opentype/*.otf $out/share/fonts/opentype/
cp -v doc/*.txt $out/share/doc/${name}/
'';

meta = with stdenv.lib; {
longDescription = ''
TeX Gyre ${current.displayName} Math is a math companion for the TeX Gyre
${current.displayName} family of fonts (see
http://www.gust.org.pl/projects/e-foundry/tex-gyre/) in the OpenType format.
'';
homepage = http://www.gust.org.pl/projects/e-foundry/tg-math;
# "The TeX Gyre Math fonts are licensed under the GUST Font License (GFL),
# which is a free license, legally equivalent to the LaTeX Project Public
# License (LPPL), version 1.3c or later." - GUST website
license = licenses.lppl13c;
maintainers = with maintainers; [ siddharthist ];
platforms = platforms.all;
};
}
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = current.outputHash;

meta = with stdenv.lib; {
longDescription = ''
TeX Gyre ${current.displayName} Math is a math companion for the TeX Gyre
${current.displayName} family of fonts (see
http://www.gust.org.pl/projects/e-foundry/tex-gyre/) in the OpenType format.
'';
homepage = http://www.gust.org.pl/projects/e-foundry/tg-math;
# "The TeX Gyre Math fonts are licensed under the GUST Font License (GFL),
# which is a free license, legally equivalent to the LaTeX Project Public
# License (LPPL), version 1.3c or later." - GUST website
license = licenses.lppl13c;
maintainers = with maintainers; [ siddharthist ];
platforms = platforms.all;
};
};
in
stdenv.lib.mapAttrs mkVariant variants
6 changes: 5 additions & 1 deletion pkgs/desktops/lxqt/base/libqtxdg/default.nix
Original file line number Diff line number Diff line change
@@ -16,7 +16,11 @@ stdenv.mkDerivation rec {
buildInputs = [ qt5.qtbase qt5.qtsvg ];

preConfigure = ''
cmakeFlags+=" -DQTXDGX_ICONENGINEPLUGIN_INSTALL_PATH=$out/$qtPluginPrefix"
cmakeFlagsArray+=(
"-DQTXDGX_ICONENGINEPLUGIN_INSTALL_PATH=$out/$qtPluginPrefix"
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_INSTALL_LIBDIR=lib"
)
'';

meta = with stdenv.lib; {
Loading