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: d994f1cfd4d9
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: 651414234847
Choose a head ref

Commits on Aug 21, 2018

  1. patchelf: 0.10-pre-20180108 -> 0.10-pre-20180509, minor touchup

    Useful update-- adds support for accepting multiple files as arguments
    and fixes handling of large executables (>2Gb).
    
    While touching this, modify version to include more info.
    
    Preserving version format previously used, although not usual style.
    dtzWill committed Aug 21, 2018
    Copy the full SHA
    e128719 View commit details

Commits on Aug 22, 2018

  1. Copy the full SHA
    7bf9b42 View commit details

Commits on Sep 28, 2018

  1. octave: 4.2.2 -> 4.4.1 (#47391)

    lsix authored and xeji committed Sep 28, 2018
    Copy the full SHA
    ddeeade View commit details
  2. linuxPackages.jool: 3.5.7 -> unstable-20180706 (#47284)

    3.5.7 doesn't build with kernel 4.14.71.
    Needs most recent upstream revision to build, which supports
    kernels up to 4.17.
    xeji authored Sep 28, 2018
    Copy the full SHA
    f0e4b31 View commit details
  3. Add ssh backdoor to VM tests infrastructure.

    Thanks to @dezgeg for prototype implementation, I've
    cleaned it up and added documentation.
    dezgeg authored and domenkozar committed Sep 28, 2018
    Copy the full SHA
    d6e3db4 View commit details
  4. Copy the full SHA
    50636fd View commit details
  5. Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    f14d4ba View commit details
  6. retroshare: mark as broken (#47350)

    Broken by libupnp: 1.6.21 -> 1.8.3 (#41684).
    orivej authored and xeji committed Sep 28, 2018

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    eeac44c View commit details
  7. Merge pull request #45449 from dtzWill/update/patchelf-0.10-pre-2018-…

    …05-09
    
    patchelf: 0.10-pre-20180108 -> 0.10-pre-20180509, minor touchup
    xeji authored Sep 28, 2018

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    487f7f4 View commit details
  8. Copy the full SHA
    c917407 View commit details
  9. systemd: don't restart user-runtime-dir@ on upgrades

    Likewise logind we should not try to restart this service after upgrade,
    the user's current session depends on it.
    Mic92 committed Sep 28, 2018
    Copy the full SHA
    aa69bb5 View commit details
  10. Merge pull request #47462 from Mic92/fix-logind-user-temp

    systemd: don't restart user-runtime-dir@ on upgrades
    Mic92 authored Sep 28, 2018
    Copy the full SHA
    1d65e47 View commit details
  11. systemd: Replace meta.available checks

    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018
    Copy the full SHA
    fe7919f View commit details
  12. nix: Replace meta.available checks

    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018
    Copy the full SHA
    cdeafe7 View commit details
  13. apparmor: Replace meta.available checks

    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018
    Copy the full SHA
    50d0360 View commit details
  14. treewide: Replace meta.available checks in shouldUsePackages copypasta

    This reverts commit 79d8353.
    
    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018

    Unverified

    No user is associated with the committer email.
    Copy the full SHA
    5e84926 View commit details
  15. ghc: Replace meta.available checks for enableIntegerSimple

    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018
    Copy the full SHA
    f4dd2fe View commit details
  16. nixos/kexec: Replace meta.available checks

    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018
    Copy the full SHA
    599c4df View commit details
  17. Merge pull request #47459 from Gerschtli/update/flask-sqlalchemy

    pythonPackages.flask_sqlalchemy: 2.1 -> 2.3.2
    lsix authored Sep 28, 2018
    Copy the full SHA
    6ef8d96 View commit details
  18. Merge pull request #47460 from Gerschtli/add/flask-jwt-extended

    pythonPackages.flask-jwt-extended: init at 3.13.1
    lsix authored Sep 28, 2018
    Copy the full SHA
    eabaf4e View commit details
  19. Copy the full SHA
    82cafa4 View commit details
  20. nixos/kexec: Fix typo in meta.platforms

    Evaluation error introduced in 599c4df.
    
    There is only a "platformS" attribute in kexectools.meta, so let's use
    this and from the code in the kexec module it operates on a list,
    matching the corresponding platforms, so this seems to be the attribute
    the original author intended.
    
    Tested by building nixos/tests/kexec.nix on x86_64-linux and while it
    evaluates now, the test still fails by timing out shortly after the
    kexec:
    
    machine: waiting for the VM to finish booting
    machine# Cannot find the ESP partition mount point.
    
    This however seems to be an unrelated issue and was also the case before
    the commit mentioned above.
    
    Signed-off-by: aszlig <aszlig@nix.build>
    Cc: @edolstra, @dezgeg
    aszlig committed Sep 28, 2018
    Copy the full SHA
    fd8bca4 View commit details
  21. ghcjs-*: Expose the version of GHC used

    This is more meaningful than the GHCJS version for most tasks.
    Ericson2314 committed Sep 28, 2018
    Copy the full SHA
    d892f1a View commit details
  22. Merge pull request #47487 from obsidiansystems/ghcjs-ghc-version

    ghcjs-*: Expose the version of GHC used
    Ericson2314 authored Sep 28, 2018
    Copy the full SHA
    6514142 View commit details
Showing with 150 additions and 55 deletions.
  1. +36 −0 nixos/doc/manual/development/debugging-nixos-tests.xml
  2. +1 −0 nixos/doc/manual/development/nixos-tests.xml
  3. +4 −2 nixos/lib/test-driver/Machine.pm
  4. +1 −1 nixos/modules/system/boot/kexec.nix
  5. +3 −0 nixos/modules/system/boot/systemd.nix
  6. +2 −1 nixos/modules/testing/test-instrumentation.nix
  7. +1 −0 pkgs/applications/networking/p2p/retroshare/default.nix
  8. +1 −1 pkgs/development/compilers/ghc/7.10.3.nix
  9. +1 −1 pkgs/development/compilers/ghc/8.0.2.nix
  10. +1 −1 pkgs/development/compilers/ghc/8.2.2.nix
  11. +1 −1 pkgs/development/compilers/ghc/8.4.3.nix
  12. +1 −1 pkgs/development/compilers/ghc/8.6.1.nix
  13. +1 −1 pkgs/development/compilers/ghc/head.nix
  14. +1 −0 pkgs/development/compilers/ghcjs-ng/default.nix
  15. +1 −0 pkgs/development/compilers/ghcjs/base.nix
  16. +6 −0 pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
  17. +6 −7 pkgs/development/interpreters/octave/default.nix
  18. +1 −1 pkgs/development/libraries/wiredtiger/default.nix
  19. +25 −0 pkgs/development/python-modules/flask-jwt-extended/default.nix
  20. +25 −0 pkgs/development/python-modules/flask-sqlalchemy/default.nix
  21. +9 −4 pkgs/development/tools/misc/patchelf/unstable.nix
  22. +1 −1 pkgs/misc/jackaudio/default.nix
  23. +1 −1 pkgs/misc/jackaudio/jack1.nix
  24. +3 −3 pkgs/os-specific/linux/apparmor/default.nix
  25. +1 −1 pkgs/os-specific/linux/ffado/default.nix
  26. +1 −1 pkgs/os-specific/linux/jool/default.nix
  27. +3 −3 pkgs/os-specific/linux/jool/source.nix
  28. +3 −3 pkgs/os-specific/linux/systemd/default.nix
  29. +1 −1 pkgs/servers/shishi/default.nix
  30. +2 −1 pkgs/tools/filesystems/ceph/generic.nix
  31. +1 −1 pkgs/tools/package-management/nix/default.nix
  32. +2 −0 pkgs/tools/security/vault/default.nix
  33. +3 −17 pkgs/top-level/python-packages.nix
36 changes: 36 additions & 0 deletions nixos/doc/manual/development/debugging-nixos-tests.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
version="5.0"
xml:id="sec-debugging-nixos-tests">
<title>Debugging NixOS tests</title>

<para>
Tests may fail and infrastructure offers access to inspect machine state.
</para>

<para>
To prevent test from stopping and cleaning up, insert a sleep command:
</para>

<programlisting>
$machine->succeed("sleep 84000");
</programlisting>

<para>
As soon as machine starts run as root:
</para>

<programlisting>
nix-shell -p socat --run "socat STDIO,raw,echo=0,escape=0x11 UNIX:/tmp/nix-build-vm-test-run-*.drv-0/vm-state-machine/backdoor"
</programlisting>

<para>
You may need to find the correct path, replacing <literal>/tmp</literal>, <literal>*</literal> or <literal>machine</literal>.
</para>

<para>
Press "enter" to open up console and login as "root". After you're done, press "ctrl-q" to exit the console.
</para>

</section>
1 change: 1 addition & 0 deletions nixos/doc/manual/development/nixos-tests.xml
Original file line number Diff line number Diff line change
@@ -16,4 +16,5 @@ xlink:href="https://github.com/NixOS/nixpkgs/tree/master/nixos/tests">nixos/test
<xi:include href="writing-nixos-tests.xml" />
<xi:include href="running-nixos-tests.xml" />
<xi:include href="running-nixos-tests-interactively.xml" />
<xi:include href="debugging-nixos-tests.xml" />
</chapter>
6 changes: 4 additions & 2 deletions nixos/lib/test-driver/Machine.pm
Original file line number Diff line number Diff line change
@@ -155,8 +155,10 @@ sub start {
$ENV{USE_TMPDIR} = 1;
$ENV{QEMU_OPTS} =
($self->{allowReboot} ? "" : "-no-reboot ") .
"-monitor unix:./monitor -chardev socket,id=shell,path=./shell " .
"-device virtio-serial -device virtconsole,chardev=shell " .
"-monitor unix:./monitor " .
"-chardev socket,id=shell,path=./shell -device virtio-serial -device virtconsole,chardev=shell " .
# socket backdoor, see "Debugging NixOS tests" section in NixOS manual
"-chardev socket,id=backdoor,path=./backdoor,server,nowait -device virtio-serial -device virtconsole,chardev=backdoor " .
"-device virtio-rng-pci " .
($showGraphics ? "-serial stdio" : "-nographic") . " " . ($ENV{QEMU_OPTS} || "");
chdir $self->{stateDir} or die;
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/kexec.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ pkgs, lib, ... }:

{
config = lib.mkIf (pkgs.kexectools.meta.available) {
config = lib.mkIf (lib.any (lib.meta.platformMatch pkgs.stdenv.hostPlatform) pkgs.kexectools.meta.platforms) {
environment.systemPackages = [ pkgs.kexectools ];

systemd.services."prepare-kexec" =
3 changes: 3 additions & 0 deletions nixos/modules/system/boot/systemd.nix
Original file line number Diff line number Diff line change
@@ -886,6 +886,9 @@ in
#systemd.services.systemd-logind.restartTriggers = [ config.environment.etc."systemd/logind.conf".source ];
systemd.services.systemd-logind.restartIfChanged = false;
systemd.services.systemd-logind.stopIfChanged = false;
# The user-runtime-dir@ service is managed by systemd-logind we should not touch it or else we break the users' sessions.
systemd.services."user-runtime-dir@".stopIfChanged = false;
systemd.services."user-runtime-dir@".restartIfChanged = false;
systemd.services.systemd-journald.restartTriggers = [ config.environment.etc."systemd/journald.conf".source ];
systemd.services.systemd-journald.stopIfChanged = false;
systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true;
3 changes: 2 additions & 1 deletion nixos/modules/testing/test-instrumentation.nix
Original file line number Diff line number Diff line change
@@ -55,7 +55,8 @@ with import ../../lib/qemu-flags.nix { inherit pkgs; };
systemd.services."serial-getty@hvc0".enable = false;

# Only use a serial console, no TTY.
virtualisation.qemu.consoles = [ qemuSerialDevice ];
# hvc1: socket backdoor, see "Debugging NixOS tests" section in NixOS manual
virtualisation.qemu.consoles = [ "hvc1" qemuSerialDevice ];

boot.initrd.preDeviceCommands =
''
1 change: 1 addition & 0 deletions pkgs/applications/networking/p2p/retroshare/default.nix
Original file line number Diff line number Diff line change
@@ -54,5 +54,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.domenkozar ];
broken = true; # broken by libupnp: 1.6.21 -> 1.8.3 (#41684)
};
}
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/7.10.3.nix
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@

, # If enabled, GHC will be built with the GPL-free but slower integer-simple
# library instead of the faster but GPLed integer-gmp library.
enableIntegerSimple ? !(gmp.meta.available or false), gmp
enableIntegerSimple ? !(stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) gmp.meta.platforms), gmp

, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/8.0.2.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@

, # If enabled, GHC will be built with the GPL-free but slower integer-simple
# library instead of the faster but GPLed integer-gmp library.
enableIntegerSimple ? !(gmp.meta.available or false), gmp
enableIntegerSimple ? !(stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) gmp.meta.platforms), gmp

, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/8.2.2.nix
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@

, # If enabled, GHC will be built with the GPL-free but slower integer-simple
# library instead of the faster but GPLed integer-gmp library.
enableIntegerSimple ? !(gmp.meta.available or false), gmp
enableIntegerSimple ? !(stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) gmp.meta.platforms), gmp

, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/8.4.3.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@

, # If enabled, GHC will be built with the GPL-free but slower integer-simple
# library instead of the faster but GPLed integer-gmp library.
enableIntegerSimple ? !(gmp.meta.available or false), gmp
enableIntegerSimple ? !(stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) gmp.meta.platforms), gmp

, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/8.6.1.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@

, # If enabled, GHC will be built with the GPL-free but slower integer-simple
# library instead of the faster but GPLed integer-gmp library.
enableIntegerSimple ? !(gmp.meta.available or false), gmp
enableIntegerSimple ? !(stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) gmp.meta.platforms), gmp

, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/head.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@

, # If enabled, GHC will be built with the GPL-free but slower integer-simple
# library instead of the faster but GPLed integer-gmp library.
enableIntegerSimple ? !(gmp.meta.available or false), gmp
enableIntegerSimple ? !(stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) gmp.meta.platforms), gmp

, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform
1 change: 1 addition & 0 deletions pkgs/development/compilers/ghcjs-ng/default.nix
Original file line number Diff line number Diff line change
@@ -42,6 +42,7 @@ let
targetPrefix = "";
inherit bootGhcjs;
inherit (bootGhcjs) version;
ghcVersion = bootPkgs.ghc.version;
isGhcjs = true;

enableShared = true;
1 change: 1 addition & 0 deletions pkgs/development/compilers/ghcjs/base.nix
Original file line number Diff line number Diff line change
@@ -133,6 +133,7 @@ in mkDerivation (rec {
'';
passthru = {
inherit bootPkgs;
ghcVersion = ghc.version;
isCross = true;
isGhcjs = true;
inherit nodejs ghcjsBoot;
6 changes: 6 additions & 0 deletions pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
Original file line number Diff line number Diff line change
@@ -79,4 +79,10 @@ self: super: {
# https://github.com/haskell/fgl/issues/81
fgl = appendPatch super.fgl ./patches/fgl-monad-fail.patch;

# https://github.com/jgm/texmath/pull/121
texmath = appendPatch (doJailbreak super.texmath) (pkgs.fetchpatch
{ url = https://github.com/jgm/texmath/pull/121.patch;
sha256 = "14pz2cpz9rvmy7mlmnz8iz76rsdyv5v442ij2i8k9zrbxj6nai7l";
});

}
13 changes: 6 additions & 7 deletions pkgs/development/interpreters/octave/default.nix
Original file line number Diff line number Diff line change
@@ -18,11 +18,11 @@ let
in

stdenv.mkDerivation rec {
version = "4.2.2";
version = "4.4.1";
name = "octave-${version}";
src = fetchurl {
url = "mirror://gnu/octave/${name}.tar.gz";
sha256 = "0vkjfrpv7aikcn73bxqkph1qrhrdx7jqy193n8d8lwp7v2al7f3p";
sha256 = "15xfcx6dc7p204b92i7va2a7ygff637l370x7zjj3vzl2brd1yq9";
};

buildInputs = [ gfortran readline ncurses perl flex texinfo qhull
@@ -46,17 +46,15 @@ stdenv.mkDerivation rec {
substituteInPlace libinterp/corefcn/help.cc \
--replace 'Vmakeinfo_program = "makeinfo"' \
'Vmakeinfo_program = "${texinfo}/bin/makeinfo"'
''
# REMOVE ON VERSION BUMP
# Needed for Octave-4.2.1 on darwin. See https://savannah.gnu.org/bugs/?50234
+ stdenv.lib.optionalString stdenv.isDarwin ''
sed 's/inline file_stat::~file_stat () { }/file_stat::~file_stat () { }/' -i ./liboctave/system/file-stat.cc
'';

doCheck = !stdenv.isDarwin;

enableParallelBuilding = true;

# See https://savannah.gnu.org/bugs/?50339
F77_INTEGER_8_FLAG = if openblas.blas64 then "-fdefault-integer-8" else "";

configureFlags =
[ "--enable-readline"
"--enable-dl"
@@ -82,6 +80,7 @@ stdenv.mkDerivation rec {
homepage = http://octave.org/;
license = stdenv.lib.licenses.gpl3Plus;
maintainers = with stdenv.lib.maintainers; [raskin];
description = "Scientific Pragramming Language";
platforms = if overridePlatforms == null then
(with stdenv.lib.platforms; linux ++ darwin)
else overridePlatforms;
2 changes: 1 addition & 1 deletion pkgs/development/libraries/wiredtiger/default.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ let
mkEnable = mkFlag "enable-" "disable-";
mkWith = mkFlag "with-" "without-";

shouldUsePkg = pkg: if pkg != null && pkg.meta.available then pkg else null;
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) pkg.meta.platforms then pkg else null;

optLz4 = shouldUsePkg lz4;
optSnappy = shouldUsePkg snappy;
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/flask-jwt-extended/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ stdenv, buildPythonPackage, fetchPypi, flask, pyjwt, werkzeug, pytest }:

buildPythonPackage rec {
pname = "Flask-JWT-Extended";
version = "3.13.1";

src = fetchPypi {
inherit pname version;
sha256 = "10qz3ljr2kpd93al2km6iijxp23z33kvvwd0y5bc840f86b4mra8";
};

propagatedBuildInputs = [ flask pyjwt werkzeug ];
checkInputs = [ pytest ];

checkPhase = ''
pytest tests/
'';

meta = with stdenv.lib; {
description = "JWT extension for Flask";
homepage = https://flask-jwt-extended.readthedocs.io/;
license = licenses.mit;
maintainers = with maintainers; [ gerschtli ];
};
}
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/flask-sqlalchemy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ stdenv, buildPythonPackage, fetchPypi, flask, sqlalchemy, pytest }:

buildPythonPackage rec {
pname = "Flask-SQLAlchemy";
version = "2.3.2";

src = fetchPypi {
inherit pname version;
sha256 = "0lvfynbk9y0whpkhqz7kf3hk342sfa3lwqyv25gnb22q5f2vjwar";
};

propagatedBuildInputs = [ flask sqlalchemy ];
checkInputs = [ pytest ];

checkPhase = ''
pytest
'';

meta = with stdenv.lib; {
description = "SQLAlchemy extension for Flask";
homepage = http://flask-sqlalchemy.pocoo.org/;
license = licenses.bsd3;
maintainers = with maintainers; [ gerschtli ];
};
}
13 changes: 9 additions & 4 deletions pkgs/development/tools/misc/patchelf/unstable.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
{ stdenv, fetchFromGitHub, autoreconfHook }:

stdenv.mkDerivation rec {
name = "patchelf-0.10-pre-20180108";
name = "patchelf-${version}";
version = "0.10-pre-20180509";

src = fetchFromGitHub {
owner = "NixOS";
repo = "patchelf";
rev = "48452cf6b4ccba1c1f47a09f4284a253634ab7d1";
sha256 = "1f1s8q3as3nrhcc1a8qc2z7imm644jfz44msn9sfv4mdynp2m2yb";
rev = "27ffe8ae871e7a186018d66020ef3f6162c12c69";
sha256 = "1sfkqsvwqqm2kdgkiddrxni86ilbrdw5my29szz81nj1m2j16asr";
};

# Drop test that fails on musl (?)
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace tests/Makefile.am \
--replace "set-rpath-library.sh" ""
'' +
# extend version identifier to more informative than "0.10".
''
echo -n ${version} > version
'';

setupHook = [ ./setup-hook.sh ];

nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ ];

doCheck = true;
doCheck = !stdenv.isDarwin;

meta = {
homepage = https://nixos.org/patchelf.html;
2 changes: 1 addition & 1 deletion pkgs/misc/jackaudio/default.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
with stdenv.lib;
let
inherit (python2Packages) python dbus-python;
shouldUsePkg = pkg: if pkg != null && pkg.meta.available then pkg else null;
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) pkg.meta.platforms then pkg else null;

libOnly = prefix == "lib";

2 changes: 1 addition & 1 deletion pkgs/misc/jackaudio/jack1.nix
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
}:

let
shouldUsePkg = pkg: if pkg != null && pkg.meta.available then pkg else null;
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) pkg.meta.platforms then pkg else null;

optAlsaLib = shouldUsePkg alsaLib;
optDb = shouldUsePkg db;
6 changes: 3 additions & 3 deletions pkgs/os-specific/linux/apparmor/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ stdenv, fetchurl, fetchpatch, makeWrapper, autoreconfHook
{ stdenv, lib, fetchurl, fetchpatch, makeWrapper, autoreconfHook
, pkgconfig, which
, flex, bison
, linuxHeaders ? stdenv.cc.libc.linuxHeaders
, gawk
, withPerl ? stdenv.hostPlatform == stdenv.buildPlatform && perl.meta.available or false, perl
, withPython ? stdenv.hostPlatform == stdenv.buildPlatform && python.meta.available or false, python
, withPerl ? stdenv.hostPlatform == stdenv.buildPlatform && lib.any (lib.meta.platformMatch stdenv.hostPlatform) perl.meta.platforms, perl
, withPython ? stdenv.hostPlatform == stdenv.buildPlatform && lib.any (lib.meta.platformMatch stdenv.hostPlatform) python.meta.platforms, python
, swig
, ncurses
, pam
2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/ffado/default.nix
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@

let

shouldUsePkg = pkg: if pkg != null && pkg.meta.available then pkg else null;
shouldUsePkg = pkg: if pkg != null && stdenv.lib.any (stdenv.lib.meta.platformMatch stdenv.hostPlatform) pkg.meta.platforms then pkg else null;

libOnly = prefix == "lib";

2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/jool/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, kernel }:

assert stdenv.lib.versionOlder kernel.version "4.17";
assert stdenv.lib.versionOlder kernel.version "4.18";

let
sourceAttrs = (import ./source.nix) { inherit fetchFromGitHub; };
6 changes: 3 additions & 3 deletions pkgs/os-specific/linux/jool/source.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ fetchFromGitHub }:

rec {
version = "3.5.7";
version = "unstable-20180706";
src = fetchFromGitHub {
owner = "NICMx";
repo = "Jool";
rev = "v${version}";
sha256 = "1qxhrchhm4lbyxkp6wm47a85aa4d9wlyy3kdijl8rarngvh8j1yx";
rev = "de791931d94e972c36bb3c102a9cadab5230c285";
sha256 = "09mr7lc9k17znpslsfmndx4vgl240llcgblxm92fizmwz23y1d6c";
};
}
6 changes: 3 additions & 3 deletions pkgs/os-specific/linux/systemd/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, intltool, gperf, libcap, kmod
{ stdenv, lib, fetchFromGitHub, fetchpatch, pkgconfig, intltool, gperf, libcap, kmod
, xz, pam, acl, libuuid, m4, utillinux, libffi
, glib, kbd, libxslt, coreutils, libgcrypt, libgpgerror, libidn2, libapparmor
, audit, lz4, bzip2, libmicrohttpd, pcre2
@@ -10,8 +10,8 @@
, getent
, buildPackages
, withSelinux ? false, libselinux
, withLibseccomp ? libseccomp.meta.available, libseccomp
, withKexectools ? kexectools.meta.available, kexectools
, withLibseccomp ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) libseccomp.meta.platforms, libseccomp
, withKexectools ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) kexectools.meta.platforms, kexectools
}:

let
Loading