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: fdf4439accb1
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: 567f0a3df11b
Choose a head ref
  • 11 commits
  • 10 files changed
  • 5 contributors

Commits on May 16, 2020

  1. zulip: 5.0.0 -> 5.2.0

    timokau committed May 16, 2020
    Copy the full SHA
    294ce52 View commit details

Commits on May 18, 2020

  1. cpu-x: 3.2.4 -> 4.0.0

    gnidorah committed May 18, 2020
    Copy the full SHA
    09472fb View commit details
  2. nixos/binfmt: move systemd-binfmt.service to binfmt module

    Also, remove the dangling systemd.services.systemd-binfmt.wants = [
    "proc-sys-fs-binfmt_misc.mount" ]; in systemd.nix.
    
    If boot.binfmt.registrations != {}, systemd will install
    proc-sys-fs-binfmt_misc.automount, which will auto-mount
    `/proc/sys/fs/binfmt_misc` as soon as systemd-binfmt tries to access it.
    
    Fixes NixOS/nixpkgs#87687
    Fixes NixOS/nixops#574
    flokli committed May 18, 2020
    Copy the full SHA
    4e27159 View commit details
  3. nixosTests.systemd-binfmt: init

    This adds a simple test running GNU Hello cross-compiled for armv7l and
    aarch64 inside a x86_64 VM with configured binfmt.
    
    We already build the cross toolchains in other invocations, and building
    hello itself is small.
    flokli committed May 18, 2020
    Copy the full SHA
    fd49155 View commit details
  4. Copy the full SHA
    311e883 View commit details
  5. Copy the full SHA
    f31adf2 View commit details
  6. Copy the full SHA
    4a873aa View commit details
  7. Copy the full SHA
    962f93c View commit details
  8. Merge pull request #87942 from timokau/zulip-5.2.0

    zulip: 5.0.0 -> 5.2.0
    timokau authored May 18, 2020
    Copy the full SHA
    b5caab6 View commit details
  9. Merge pull request #87742 from flokli/systemd-binfmt

    nixos/binfmt: move systemd-binfmt.service to binfmt module
    flokli authored May 18, 2020
    Copy the full SHA
    528d35b View commit details
  10. Merge pull request #88053 from gnidorah/cpu-x

    cpu-x: 3.2.4 -> 4.0.0
    srhb authored May 18, 2020
    Copy the full SHA
    567f0a3 View commit details
9 changes: 5 additions & 4 deletions nixos/modules/system/boot/binfmt.nix
Original file line number Diff line number Diff line change
@@ -268,9 +268,10 @@ in {
mkdir -p -m 0755 /run/binfmt
${lib.concatStringsSep "\n" (lib.mapAttrsToList activationSnippet config.boot.binfmt.registrations)}
'';
systemd.additionalUpstreamSystemUnits = lib.mkIf (config.boot.binfmt.registrations != {})
[ "proc-sys-fs-binfmt_misc.automount"
"proc-sys-fs-binfmt_misc.mount"
];
systemd.additionalUpstreamSystemUnits = lib.mkIf (config.boot.binfmt.registrations != {}) [
"proc-sys-fs-binfmt_misc.automount"
"proc-sys-fs-binfmt_misc.mount"
"systemd-binfmt.service"
];
};
}
2 changes: 0 additions & 2 deletions nixos/modules/system/boot/systemd.nix
Original file line number Diff line number Diff line change
@@ -164,7 +164,6 @@ let
"systemd-timedated.service"
"systemd-localed.service"
"systemd-hostnamed.service"
"systemd-binfmt.service"
"systemd-exit.service"
"systemd-update-done.service"
] ++ optionals config.services.journald.enableHttpGateway [
@@ -1056,7 +1055,6 @@ in
systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true;
systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
systemd.targets.network-online.wantedBy = [ "multi-user.target" ];
systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.mount" ];
systemd.services.systemd-importd.environment = proxy_env;

# Don't bother with certain units in containers.
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -304,6 +304,7 @@ in
syncthing-relay = handleTest ./syncthing-relay.nix {};
systemd = handleTest ./systemd.nix {};
systemd-analyze = handleTest ./systemd-analyze.nix {};
systemd-binfmt = handleTestOn ["x86_64-linux"] ./systemd-binfmt.nix {};
systemd-boot = handleTestOn ["x86_64-linux"] ./systemd-boot.nix {};
systemd-confinement = handleTest ./systemd-confinement.nix {};
systemd-timesyncd = handleTest ./systemd-timesyncd.nix {};
24 changes: 24 additions & 0 deletions nixos/tests/systemd-binfmt.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Teach the kernel how to run armv7l and aarch64-linux binaries,
# and run GNU Hello for these architectures.
import ./make-test-python.nix ({ pkgs, ... }: {
name = "systemd-binfmt";
machine = {
boot.binfmt.emulatedSystems = [
"armv7l-linux"
"aarch64-linux"
];
};

testScript = let
helloArmv7l = pkgs.pkgsCross.armv7l-hf-multiplatform.hello;
helloAarch64 = pkgs.pkgsCross.aarch64-multiplatform.hello;
in ''
machine.start()
assert "world" in machine.succeed(
"${helloArmv7l}/bin/hello"
)
assert "world" in machine.succeed(
"${helloAarch64}/bin/hello"
)
'';
})
17 changes: 11 additions & 6 deletions pkgs/applications/misc/cpu-x/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, gtk3, ncurses, curl
, json_c, libcpuid, pciutils, procps, wrapGAppsHook, nasm }:
{ stdenv, fetchFromGitHub, cmake, pkgconfig, gtk3, ncurses
, libcpuid, pciutils, procps, wrapGAppsHook, nasm, makeWrapper }:

stdenv.mkDerivation rec {
pname = "cpu-x";
version = "3.2.4";
version = "4.0.0";

src = fetchFromGitHub {
owner = "X0rg";
repo = "CPU-X";
rev = "v${version}";
sha256 = "03y49wh9v7x6brmavj5a2clihn0z4f01pypl7m8ymarv4y3a6xkl";
sha256 = "00xngmlayblvkg3l0rcfpxmnkkdz49ydh4smlhpii23gqii0rds3";
};

nativeBuildInputs = [ cmake pkgconfig wrapGAppsHook nasm ];
nativeBuildInputs = [ cmake pkgconfig wrapGAppsHook nasm makeWrapper ];
buildInputs = [
gtk3 ncurses curl json_c libcpuid pciutils procps
gtk3 ncurses libcpuid pciutils procps
];

postInstall = ''
wrapProgram $out/bin/cpu-x \
--prefix PATH : ${stdenv.lib.makeBinPath [ stdenv.cc ]}
'';

meta = with stdenv.lib; {
description = "Free software that gathers information on CPU, motherboard and more";
homepage = src.meta.homepage;
Original file line number Diff line number Diff line change
@@ -5,12 +5,12 @@

let
pname = "zulip";
version = "5.0.0";
version = "5.2.0";
name = "${pname}-${version}";

src = fetchurl {
url = "https://github.com/zulip/zulip-desktop/releases/download/v${version}/Zulip-${version}-x86_64.AppImage";
sha256 = "0qwlhkzb3lbzk3piyfx8nn827kcafrl3j1nxrn18f8px9gwasinz";
sha256 = "0rgvllm1pzg6smyjrhh8v1ial0dvav0h2zccxp4p5nqmq6zdvs3h";
name="${pname}-${version}.AppImage";
};

2 changes: 2 additions & 0 deletions pkgs/development/ocaml-modules/dune-private-libs/default.nix
Original file line number Diff line number Diff line change
@@ -7,6 +7,8 @@ buildDunePackage rec {

inherit (dune_2) src version;

minimumOCamlVersion = "4.07";

dontAddPrefix = true;

meta = with lib; {
26 changes: 18 additions & 8 deletions pkgs/development/ocaml-modules/labltk/default.nix
Original file line number Diff line number Diff line change
@@ -7,21 +7,21 @@ then throw "labltk is not available for OCaml ${ocaml.version}"
else

let param =
if OCamlVersionAtLeast "4.08" then rec {
version = "8.06.7";
src = fetchzip {
url = "https://github.com/garrigue/labltk/archive/${version}.tar.gz";
sha256 = "1cqnxjv2dvw9csiz4iqqyx6rck04jgylpglk8f69kgybf7k7xk2h";
};
} else
let mkNewParam = { version, sha256 }: {
inherit version;
src = fetchzip {
url = "https://github.com/garrigue/labltk/archive/${version}.tar.gz";
inherit sha256;
};
}; in
let mkOldParam = { version, key, sha256 }: {
src = fetchurl {
url = "https://forge.ocamlcore.org/frs/download.php/${key}/labltk-${version}.tar.gz";
inherit sha256;
};
inherit version;
}; in
{
rec {
"4.04" = mkOldParam {
version = "8.06.2";
key = "1628";
@@ -42,6 +42,16 @@ if OCamlVersionAtLeast "4.08" then rec {
key = "1764";
sha256 = "0wgx65y1wkgf22ihpqmspqfp95fqbj3pldhp1p3b1mi8rmc37zwj";
};
_8_06_7 = mkNewParam {
version = "8.06.7";
sha256 = "1cqnxjv2dvw9csiz4iqqyx6rck04jgylpglk8f69kgybf7k7xk2h";
};
"4.08" = _8_06_7;
"4.09" = _8_06_7;
"4.10" = mkNewParam {
version = "8.06.8";
sha256 = "0lfjc7lscq81ibqb3fcybdzs2r1i2xl7rsgi7linq46a0pcpkinw";
};
}.${builtins.substring 0 4 ocaml.version};
in

29 changes: 18 additions & 11 deletions pkgs/development/ocaml-modules/ppxlib/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
{ stdenv, fetchFromGitHub, buildDunePackage
, version ? "0.8.1"
{ lib, fetchFromGitHub, buildDunePackage, ocaml
, legacy ? false
, ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio
}:

let sha256 =
{ "0.8.1" = "0vm0jajmg8135scbg0x60ivyy5gzv4abwnl7zls2mrw23ac6kml6";
"0.12.0" = "1cg0is23c05k1rc94zcdz452p9zn11dpqxm1pnifwx5iygz3w0a1";
}."${version}"
; in
let param =
if legacy then {
version = "0.8.1";
sha256 = "0vm0jajmg8135scbg0x60ivyy5gzv4abwnl7zls2mrw23ac6kml6";
} else {
version = "0.12.0";
sha256 = "1cg0is23c05k1rc94zcdz452p9zn11dpqxm1pnifwx5iygz3w0a1";
}; in

if lib.versionAtLeast ocaml.version "4.10" && legacy
then throw "ppxlib-${param.version} is not available for OCaml ${ocaml.version}"
else

buildDunePackage rec {
pname = "ppxlib";
inherit version;
inherit (param) version;

src = fetchFromGitHub {
owner = "ocaml-ppx";
repo = pname;
rev = version;
inherit sha256;
inherit (param) sha256;
};

propagatedBuildInputs = [
@@ -26,8 +33,8 @@ buildDunePackage rec {

meta = {
description = "Comprehensive ppx tool set";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.vbgl ];
license = lib.licenses.mit;
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
};
}
25 changes: 15 additions & 10 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
@@ -217,7 +217,12 @@ let

dune = callPackage ../development/tools/ocaml/dune { };

dune_2 = callPackage ../development/tools/ocaml/dune/2.nix { };
dune_2 =
if lib.versionAtLeast ocaml.version "4.07"
then callPackage ../development/tools/ocaml/dune/2.nix { }
else if lib.versionAtLeast ocaml.version "4.02"
then pkgs.dune_2
else throw "dune_2 is not available for OCaml ${ocaml.version}";

dune-build-info = callPackage ../development/ocaml-modules/dune-build-info { };

@@ -408,9 +413,7 @@ let

js_of_ocaml-ppx = callPackage ../development/tools/ocaml/js_of_ocaml/ppx.nix {};

js_of_ocaml-ppx_deriving_json = callPackage ../development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix {
ppxlib = ppxlib.override { version = "0.12.0"; };
};
js_of_ocaml-ppx_deriving_json = callPackage ../development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix { };

js_of_ocaml-tyxml = callPackage ../development/tools/ocaml/js_of_ocaml/tyxml.nix {};

@@ -810,7 +813,9 @@ let

ppx_deriving_protobuf = callPackage ../development/ocaml-modules/ppx_deriving_protobuf {};

ppx_deriving_rpc = callPackage ../development/ocaml-modules/ppx_deriving_rpc {};
ppx_deriving_rpc = callPackage ../development/ocaml-modules/ppx_deriving_rpc {
ppxlib = ppxlib.override { legacy = true; };
};

ppx_deriving_yojson = callPackage ../development/ocaml-modules/ppx_deriving_yojson {};

@@ -819,7 +824,6 @@ let
ppx_import = callPackage ../development/ocaml-modules/ppx_import {};

ppx_irmin = callPackage ../development/ocaml-modules/irmin/ppx.nix {
ppxlib = ppxlib.override { version = "0.12.0"; };
};

ppx_sqlexpr = callPackage ../development/ocaml-modules/sqlexpr/ppx.nix {};
@@ -960,20 +964,21 @@ let
janeStreet =
if lib.versionOlder "4.08" ocaml.version
then import ../development/ocaml-modules/janestreet/0.13.nix {
inherit ctypes janePackage num octavius re;
inherit ctypes janePackage num octavius ppxlib re;
inherit (pkgs) openssl;
ppxlib = ppxlib.override { version = "0.12.0"; };
}
else if lib.versionOlder "4.07" ocaml.version
then import ../development/ocaml-modules/janestreet/0.12.nix {
inherit ctypes janePackage num octavius ppxlib re;
inherit ctypes janePackage num octavius re;
inherit (pkgs) openssl;
ppxlib = ppxlib.override { legacy = true; };
}
else import ../development/ocaml-modules/janestreet {
inherit janePackage ocamlbuild angstrom ctypes cryptokit;
inherit magic-mime num ocaml-migrate-parsetree octavius ounit;
inherit ppx_deriving re ppxlib;
inherit ppx_deriving re;
inherit (pkgs) openssl;
ppxlib = ppxlib.override { legacy = true; };
};

janeStreet_0_9_0 = import ../development/ocaml-modules/janestreet/old.nix {