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: e34ac949d1b9
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: 8d3c8b9aef16
Choose a head ref
  • 19 commits
  • 17 files changed
  • 6 contributors

Commits on Sep 23, 2019

  1. Revert systemd interface version to 2

    The new systemd in 19.09 gives an "Access Denied" error when doing
    "systemctl daemon-reexec" on an 19.03 system. The fix is to use the
    previous systemctl to signal the daemon to re-exec itself. This
    ensures that users don't have to reboot when upgrading from NixOS
    19.03 to 19.09.
    
    (cherry picked from commit b20a0e4)
    edolstra authored and flokli committed Sep 23, 2019
    Copy the full SHA
    579f204 View commit details

Commits on Sep 25, 2019

  1. Merge pull request #69267 from edolstra/revert-interface-version-19.09

    Revert systemd interface version to 2 [19.09 backport]
    edolstra authored Sep 25, 2019
    Copy the full SHA
    d958752 View commit details
  2. virtualboxGuestAdditions: Fix clipboard integration.

    VBoxClient needs a RUNPATH entry to dlopen libXfixes successfully.
    
    Fixes NixOS/nixpkgs#65542
    
    (cherry picked from commit 7dcef37)
    ambrop72 authored and flokli committed Sep 25, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5d92232 View commit details
  3. IPMIView: fix indentation

    (cherry picked from commit 96b2c4c)
    László Vaskó authored and Mic92 committed Sep 25, 2019
    Copy the full SHA
    5205e5f View commit details
  4. IPMIView: 2.14.0 --> 2.16.0

    Notes:
     * Previous URL is no longer accesible
     * build has to be adjusted for the updated JRE bundle
    (cherry picked from commit 13cd9e1)
    László Vaskó authored and Mic92 committed Sep 25, 2019
    Copy the full SHA
    784940a View commit details
  5. IPMIView: fix iKVM console

    This commit fixes #26650
    
    The main problem was that the iKVM related libraries are always loaded
    from the current working directory. The bundled wrapper script makes
    sure to CD to the package root folder. This is a no-go in nix as the
    application writes its settings in the current working directory and the
    store is read-only.
    
    Workaround: create a directory in the users home, where the required
    binaries are symlinked and is writable for the current user.
    
    There was an additional issue that for some BMCs IPMIView relies on
    the bundled `stunnel` binary to wrap the iKVM traffic in a TLS tunnel.
    Therefore it has to be patched to make it executable and the `killall`
    command is needed on the PATH because it is used to terminate the
    `stunnel` process upon exit.
    
    (cherry picked from commit 15b8478)
    László Vaskó authored and Mic92 committed Sep 25, 2019
    Copy the full SHA
    9a94674 View commit details
  6. IPMIView: create desktop file

    (cherry picked from commit 3848206)
    László Vaskó authored and Mic92 committed Sep 25, 2019
    Copy the full SHA
    b133bff View commit details
  7. paulstretch: fix build

    (cherry picked from commit fb6595e)
    globin committed Sep 25, 2019
    Copy the full SHA
    f3739e6 View commit details
  8. pythonPackages.pycountry: 19.7.15 -> 19.8.18

    (cherry picked from commit f2b2838)
    JohnAZoidberg authored and globin committed Sep 25, 2019
    Copy the full SHA
    46cbfea View commit details
  9. pythonPackages.cairosvg: 2.3.0 -> 2.4.2

    (cherry picked from commit a739373)
    JohnAZoidberg authored and globin committed Sep 25, 2019
    Copy the full SHA
    c5d408b View commit details
  10. pythonPackages.dict2xml: init at 1.6.1

    (cherry picked from commit d769048)
    JohnAZoidberg authored and globin committed Sep 25, 2019
    Copy the full SHA
    c10e6c8 View commit details
  11. pythonPackages.xml2rfc: 2.18.0 -> 2.27.1

    (cherry picked from commit bf050e9)
    JohnAZoidberg authored and globin committed Sep 25, 2019
    Copy the full SHA
    1851ab8 View commit details
  12. xml2rfc: Use pythonPackages.xml2rfc

    (cherry picked from commit 8fd8f3a)
    JohnAZoidberg authored and globin committed Sep 25, 2019
    Copy the full SHA
    12c51ea View commit details
  13. pythonPackages.qiskit: Mark as broken

    (cherry picked from commit 5c65c2e)
    JohnAZoidberg authored and globin committed Sep 25, 2019
    Copy the full SHA
    7c267b5 View commit details
  14. pythonPackages.weasyprint: 47 -> 50

    (cherry picked from commit cedb0ec)
    JohnAZoidberg authored and globin committed Sep 25, 2019
    Copy the full SHA
    9d1d901 View commit details
  15. pythonPackages.weasyprint: disable test

    Needs an extra font for that test
    
    (cherry picked from commit 6d71209)
    globin committed Sep 25, 2019
    Copy the full SHA
    64c6551 View commit details
  16. tamarin-prover: mark as broken because upstream is broken

    (cherry picked from commit 815d940)
    Kierán Meinhardt authored and globin committed Sep 25, 2019
    Copy the full SHA
    3c3a377 View commit details
  17. idrisPackages.heyting-algebra: mark as broken

    The functionality provided by this package has been added to the Idris contrib library (module `Interfaces.Verified`).
    Therefore identifiers cannot be disambiguated anymore.
    
    (cherry picked from commit 7df8575)
    Kierán Meinhardt authored and globin committed Sep 25, 2019
    Copy the full SHA
    bb46e0f View commit details
  18. idrisPackages.heyting-algebra: remove

    (cherry picked from commit 8eb0413)
    Kierán Meinhardt authored and globin committed Sep 25, 2019
    Copy the full SHA
    8d3c8b9 View commit details
19 changes: 13 additions & 6 deletions nixos/modules/system/activation/switch-to-configuration.pl
Original file line number Diff line number Diff line change
@@ -10,6 +10,9 @@

my $out = "@out@";

# FIXME: maybe we should use /proc/1/exe to get the current systemd.
my $curSystemd = abs_path("/run/current-system/sw/bin");

# To be robust against interruption, record what units need to be started etc.
my $startListFile = "/run/systemd/start-list";
my $restartListFile = "/run/systemd/restart-list";
@@ -267,7 +270,7 @@ sub fingerprintUnit {
sub pathToUnitName {
my ($path) = @_;
# Use current version of systemctl binary before daemon is reexeced.
open my $cmd, "-|", "/run/current-system/sw/bin/systemd-escape", "--suffix=mount", "-p", $path
open my $cmd, "-|", "$curSystemd/systemd-escape", "--suffix=mount", "-p", $path
or die "Unable to escape $path!\n";
my $escaped = join "", <$cmd>;
chomp $escaped;
@@ -370,7 +373,7 @@ sub filterUnits {
print STDERR "stopping the following units: ", join(", ", @unitsToStopFiltered), "\n"
if scalar @unitsToStopFiltered;
# Use current version of systemctl binary before daemon is reexeced.
system("/run/current-system/sw/bin/systemctl", "stop", "--", sort(keys %unitsToStop)); # FIXME: ignore errors?
system("$curSystemd/systemctl", "stop", "--", sort(keys %unitsToStop)); # FIXME: ignore errors?
}

print STDERR "NOT restarting the following changed units: ", join(", ", sort(keys %unitsToSkip)), "\n"
@@ -382,10 +385,12 @@ sub filterUnits {
print STDERR "activating the configuration...\n";
system("$out/activate", "$out") == 0 or $res = 2;

# Restart systemd if necessary.
# Restart systemd if necessary. Note that this is done using the
# current version of systemd, just in case the new one has trouble
# communicating with the running pid 1.
if ($restartSystemd) {
print STDERR "restarting systemd...\n";
system("@systemd@/bin/systemctl", "daemon-reexec") == 0 or $res = 2;
system("$curSystemd/systemctl", "daemon-reexec") == 0 or $res = 2;
}

# Forget about previously failed services.
@@ -401,8 +406,10 @@ sub filterUnits {
my ($uid, $name) = ($+{uid}, $+{user});
print STDERR "reloading user units for $name...\n";

system("@su@", "-s", "@shell@", "-l", $name, "-c", "XDG_RUNTIME_DIR=/run/user/$uid @systemd@/bin/systemctl --user daemon-reload");
system("@su@", "-s", "@shell@", "-l", $name, "-c", "XDG_RUNTIME_DIR=/run/user/$uid @systemd@/bin/systemctl --user start nixos-activation.service");
system("@su@", "-s", "@shell@", "-l", $name, "-c",
"export XDG_RUNTIME_DIR=/run/user/$uid; " .
"$curSystemd/systemctl --user daemon-reexec; " .
"@systemd@/bin/systemctl --user start nixos-activation.service");
}

close $listActiveUsers;
13 changes: 11 additions & 2 deletions pkgs/applications/audio/paulstretch/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{ stdenv, fetchFromGitHub, audiofile, libvorbis, fltk, fftw, fftwFloat,
minixml, pkgconfig, libmad, libjack2, portaudio, libsamplerate }:
{ stdenv, fetchFromGitHub, fetchpatch
, audiofile, libvorbis, fltk, fftw, fftwFloat
, minixml, pkgconfig, libmad, libjack2, portaudio, libsamplerate
}:

stdenv.mkDerivation {
pname = "paulstretch";
@@ -27,6 +29,13 @@ stdenv.mkDerivation {
libsamplerate
];

patches = [
(fetchpatch {
url = "https://github.com/paulnasca/paulstretch_cpp/pull/12.patch";
sha256 = "0lx1rfrs53afkiz1drp456asqgj5yv6hx3lkc01165cv1jsbw6q4";
})
];

buildPhase = ''
bash compile_linux_fftw_jack.sh
'';
87 changes: 63 additions & 24 deletions pkgs/applications/misc/ipmiview/default.nix
Original file line number Diff line number Diff line change
@@ -1,33 +1,72 @@
{ stdenv, fetchurl, patchelf, makeWrapper, xorg, gcc, gcc-unwrapped }:
{ stdenv
, fetchurl
, makeDesktopItem
, makeWrapper
, patchelf
, fontconfig
, freetype
, gcc
, gcc-unwrapped
, iputils
, psmisc
, xorg }:

stdenv.mkDerivation rec {
pname = "IPMIView";
version = "2.14.0";
buildVersion = "180213";
pname = "IPMIView";
version = "2.16.0";
buildVersion = "190815";

src = fetchurl {
url = "ftp://ftp.supermicro.com/utility/IPMIView/Linux/IPMIView_${version}_build.${buildVersion}_bundleJRE_Linux_x64.tar.gz";
sha256 = "1wp22wm7smlsb25x0cck4p660cycfczxj381930crd1qrf68mw4h";
src = fetchurl {
url = "https://www.supermicro.com/wftp/utility/IPMIView/Linux/IPMIView_${version}_build.${buildVersion}_bundleJRE_Linux_x64.tar.gz";
sha256 = "0qw9zfnj0cyvab7ndamlw2y0gpczjhh1jkz8340kl42r2xmhkvpl";
};

nativeBuildInputs = [ patchelf makeWrapper ];
nativeBuildInputs = [ patchelf makeWrapper ];
buildPhase = with xorg;
let
stunnelBinary = if stdenv.hostPlatform.system == "x86_64-linux" then "linux/stunnel64"
else if stdenv.hostPlatform.system == "i686-linux" then "linux/stunnel32"
else throw "IPMIView is not supported on this platform";
in
''
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libX11 libXext libXrender libXtst libXi ]}" ./jre/lib/amd64/libawt_xawt.so
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ freetype ]}" ./jre/lib/amd64/libfontmanager.so
patchelf --set-rpath "${gcc-unwrapped.lib}/lib" ./libiKVM64.so
patchelf --set-rpath "${gcc.cc}/lib:$out/jre/lib/amd64/jli" --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./jre/bin/java
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./BMCSecurity/${stunnelBinary}
'';

buildPhase = with xorg; ''
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libX11 libXext libXrender libXtst libXi ]}" ./jre/lib/amd64/xawt/libmawt.so
patchelf --set-rpath "${gcc-unwrapped.lib}/lib" ./libiKVM64.so
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libXcursor libX11 libXext libXrender libXtst libXi ]}" --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./jre/bin/javaws
patchelf --set-rpath "${gcc.cc}/lib:$out/jre/lib/amd64/jli" --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./jre/bin/java
'';
desktopItem = makeDesktopItem rec {
name = "IPMIView";
exec = "IPMIView";
desktopName = name;
genericName = "Supermicro BMC manager";
categories = "Network;Configuration";
};

installPhase = ''
mkdir -p $out/bin
cp -R . $out/
installPhase = ''
mkdir -p $out/bin
cp -R . $out/
makeWrapper $out/jre/bin/java $out/bin/IPMIView \
--prefix PATH : "$out/jre/bin" \
--add-flags "-jar $out/IPMIView20.jar"
'';
ln -s ${desktopItem}/share $out/share
meta = with stdenv.lib; {
# LD_LIBRARY_PATH: fontconfig is used from java code
# PATH: iputils is used for ping, and psmisc is for killall
# WORK_DIR: unfortunately the ikvm related binaries are loaded from
# and user configuration is written to files in the CWD
makeWrapper $out/jre/bin/java $out/bin/IPMIView \
--set LD_LIBRARY_PATH "${stdenv.lib.makeLibraryPath [ fontconfig ]}" \
--prefix PATH : "$out/jre/bin:${iputils}/bin:${psmisc}/bin" \
--add-flags "-jar $out/IPMIView20.jar" \
--run 'WORK_DIR=''${XDG_DATA_HOME:-~/.local/share}/ipmiview
mkdir -p $WORK_DIR
ln -snf '$out'/iKVM.jar '$out'/libiKVM* '$out'/libSharedLibrary* $WORK_DIR
cd $WORK_DIR'
'';

meta = with stdenv.lib; {
license = licenses.unfree;
};
}
maintainers = with maintainers; [ vlaci ];
platforms = [ "x86_64-linux" "i686-linux" ];
};
}
2 changes: 2 additions & 0 deletions pkgs/applications/science/logic/tamarin-prover/default.nix
Original file line number Diff line number Diff line change
@@ -104,4 +104,6 @@ mkDerivation (common "tamarin-prover" src // {
tamarin-prover-term
tamarin-prover-theory
];

broken = true;
})
Original file line number Diff line number Diff line change
@@ -12,9 +12,16 @@ let
# It's likely to work again in some future update.
xserverABI = let abi = xserverVListFunc 0 + xserverVListFunc 1;
in if abi == "119" || abi == "120" then "118" else abi;
in

stdenv.mkDerivation {
# Specifies how to patch binaries to make sure that libraries loaded using
# dlopen are found. We grep binaries for specific library names and patch
# RUNPATH in matching binaries to contain the needed library paths.
dlopenLibs = [
{ name = "libdbus-1.so"; pkg = dbus; }
{ name = "libXfixes.so"; pkg = xorg.libXfixes; }
];

in stdenv.mkDerivation {
name = "VirtualBox-GuestAdditions-${version}-${kernel.version}";

src = fetchurl {
@@ -134,13 +141,13 @@ stdenv.mkDerivation {
# Stripping breaks these binaries for some reason.
dontStrip = true;

# Some code dlopen() libdbus, patch RUNPATH in fixupPhase so it isn't stripped.
postFixup = ''
for i in $(grep -F libdbus-1.so -l -r $out/{lib,bin}); do
# Patch RUNPATH according to dlopenLibs (see the comment there).
postFixup = lib.concatMapStrings (library: ''
for i in $(grep -F ${lib.escapeShellArg library.name} -l -r $out/{lib,bin}); do
origRpath=$(patchelf --print-rpath "$i")
patchelf --set-rpath "$origRpath:${lib.makeLibraryPath [ dbus ]}" "$i"
patchelf --set-rpath "$origRpath:${lib.makeLibraryPath [ library.pkg ]}" "$i"
done
'';
'') dlopenLibs;

meta = {
description = "Guest additions for VirtualBox";
2 changes: 0 additions & 2 deletions pkgs/development/idris-modules/default.nix
Original file line number Diff line number Diff line change
@@ -103,8 +103,6 @@

html = callPackage ./html.nix {};

heyting-algebra = callPackage ./heyting-algebra.nix {};

hezarfen = callPackage ./hezarfen.nix {};

hrtime = callPackage ./hrtime.nix {};
25 changes: 0 additions & 25 deletions pkgs/development/idris-modules/heyting-algebra.nix

This file was deleted.

13 changes: 2 additions & 11 deletions pkgs/development/python-modules/cairosvg/default.nix
Original file line number Diff line number Diff line change
@@ -4,24 +4,15 @@

buildPythonPackage rec {
pname = "CairoSVG";
version = "2.3.0";
version = "2.4.2";

disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "66f333ef5dc79fdfbd3bbe98adc791b1f854e0461067d202fa7b15de66d517ec";
sha256 = "1bb7irxbaxxb9ahm3z5wsx1q96mm5gzskc7b6q07h9ikcnb8yrjf";
};

patches = [
# fix isort-check
(fetchpatch {
url = https://github.com/Kozea/CairoSVG/commit/b2534b0fc80b9f24a2bff2c938ac5da73ff1e478.patch;
excludes = [ "test_non_regression/__init__.py" ];
sha256 = "1bms75dd0fd978yhlr0k565zq45lzxf0vkihryb7gcwnd42bl6yf";
})
];

propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];

checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];
20 changes: 20 additions & 0 deletions pkgs/development/python-modules/dict2xml/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ lib, fetchPypi, buildPythonPackage, six }:

buildPythonPackage rec {
pname = "dict2xml";
version = "1.6.1";

src = fetchPypi {
inherit pname version;
sha256 = "17wsybqq0916i1yh7bpf2cmicldn7d0y2b9mzlgs503fkcpxda5w";
};

propagatedBuildInputs = [ six ];

meta = with lib; {
description = "Super simple library to convert a Python dictionary into an xml string";
homepage = "https://github.com/delfick/python-dict2xml";
license = licenses.mit;
maintainers = with maintainers; [ johnazoidberg ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pycountry/default.nix
Original file line number Diff line number Diff line change
@@ -6,11 +6,11 @@

buildPythonPackage rec {
pname = "pycountry";
version = "19.7.15";
version = "19.8.18";

src = fetchPypi {
inherit pname version;
sha256 = "15lhv18za0zv36laksr86rszjhp0slmqzcylm6ds9vpd7gyqprb8";
sha256 = "1jxkdjffrhn0il0nm14dlzxpd6f3v1hbxzxsprcksafgmm0almrw";
};

meta = with stdenv.lib; {
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/qiskit/default.nix
Original file line number Diff line number Diff line change
@@ -59,5 +59,7 @@ buildPythonPackage rec {
maintainers = with stdenv.lib.maintainers; [
pandaman
];
# Needs to be updated and have its new dependencies added
broken = true;
};
}
12 changes: 8 additions & 4 deletions pkgs/development/python-modules/weasyprint/default.nix
Original file line number Diff line number Diff line change
@@ -23,11 +23,15 @@

buildPythonPackage rec {
pname = "weasyprint";
version = "47";
version = "50";
disabled = !isPy3k;

# ignore failing pytest
checkPhase = "pytest -k 'not test_font_stretch'";
# excluded test needs the Ahem font
checkPhase = ''
runHook preCheck
pytest -k 'not test_font_stretch'
runHook postCheck
'';

# ignore failing flake8-test
prePatch = ''
@@ -55,7 +59,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit version;
pname = "WeasyPrint";
sha256 = "0hd1zwrkfnj7g0jaaf6jvarlj6l5imar6ar78zxdgv17a3s3k3dg";
sha256 = "0invs96zvmcr6wh5klj52jrcnr9qg150v9wpmbhcsf3vv1d1hbcw";
};

meta = with stdenv.lib; {
Loading