From cd15b3a30a6f95b83f1e4cff11f6ebaf8d0ba66e Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Sun, 10 Jan 2021 00:46:13 -0300 Subject: [PATCH 01/38] nixos/libinput: separate settings by mouse/touchpad This commits deprecates `services.xserver.libinput` for multiple settings, one for each kind of device: - `services.xserver.libinput.mouse` - `services.xserver.libinput.touchpad` Looking at `man 4 libinput`, they basically have the same options so I simply replicated them, even if some options doesn't make sense for mouse (`tapping` for example). With this commit this is now possible: ```nix { services.xserver.libinput = { enable = true; mouse = { accelProfile = "flat"; }; touchpad = { naturalScrolling = true; }; }; } ``` And you will have a mouse with no natural scrolling but with accel profile flat, while touchpad will have natural scrolling but accel profile adaptative (default). It is possible to support more device types (tablets/keyboards/touchscreens), but at least looking at the libinput manual for those devices it doesn't seem that it has any configuration options for them. They can still be configured using `services.xserver.inputClassSections` though, and this will work now since there is no rule by default that matches them. Closes issue #75007, while also making configuration of mouses and touchpads using Nix attrs possible like said in PR #73785. --- .../services/x11/hardware/libinput.nix | 96 ++++++++++++------- 1 file changed, 59 insertions(+), 37 deletions(-) diff --git a/nixos/modules/services/x11/hardware/libinput.nix b/nixos/modules/services/x11/hardware/libinput.nix index 9548ecb8ef6..631fb824768 100644 --- a/nixos/modules/services/x11/hardware/libinput.nix +++ b/nixos/modules/services/x11/hardware/libinput.nix @@ -3,23 +3,18 @@ with lib; let cfg = config.services.xserver.libinput; + xorgBool = v: if v then "on" else "off"; -in { - - options = { - - services.xserver.libinput = { - - enable = mkEnableOption "libinput"; + mkConfigForDevice = deviceType: { dev = mkOption { type = types.nullOr types.str; default = null; example = "/dev/input/event0"; description = '' - Path for touchpad device. Set to null to apply to any - auto-detected touchpad. + Path for ${deviceType} device. Set to null to apply to any + auto-detected ${deviceType}. ''; }; @@ -185,14 +180,63 @@ in { Option "DragLockButtons" "L1 B1 L2 B2" ''; description = '' - Additional options for libinput touchpad driver. See + Additional options for libinput ${deviceType} driver. See libinput4 for available options."; ''; }; - }; + mkX11ConfigForDevice = deviceType: matchIs: '' + Identifier "libinput ${deviceType} configuration" + MatchDriver "libinput" + MatchIs${matchIs} "${xorgBool true}" + ${optionalString (cfg.${deviceType}.dev != null) ''MatchDevicePath "${cfg.${deviceType}.dev}"''} + Option "AccelProfile" "${cfg.${deviceType}.accelProfile}" + ${optionalString (cfg.${deviceType}.accelSpeed != null) ''Option "AccelSpeed" "${cfg.${deviceType}.accelSpeed}"''} + ${optionalString (cfg.${deviceType}.buttonMapping != null) ''Option "ButtonMapping" "${cfg.${deviceType}.buttonMapping}"''} + ${optionalString (cfg.${deviceType}.calibrationMatrix != null) ''Option "CalibrationMatrix" "${cfg.${deviceType}.calibrationMatrix}"''} + ${optionalString (cfg.${deviceType}.clickMethod != null) ''Option "ClickMethod" "${cfg.${deviceType}.clickMethod}"''} + Option "LeftHanded" "${xorgBool cfg.${deviceType}.leftHanded}" + Option "MiddleEmulation" "${xorgBool cfg.${deviceType}.middleEmulation}" + Option "NaturalScrolling" "${xorgBool cfg.${deviceType}.naturalScrolling}" + ${optionalString (cfg.${deviceType}.scrollButton != null) ''Option "ScrollButton" "${toString cfg.${deviceType}.scrollButton}"''} + Option "ScrollMethod" "${cfg.${deviceType}.scrollMethod}" + Option "HorizontalScrolling" "${xorgBool cfg.${deviceType}.horizontalScrolling}" + Option "SendEventsMode" "${cfg.${deviceType}.sendEventsMode}" + Option "Tapping" "${xorgBool cfg.${deviceType}.tapping}" + Option "TappingDragLock" "${xorgBool cfg.${deviceType}.tappingDragLock}" + Option "DisableWhileTyping" "${xorgBool cfg.${deviceType}.disableWhileTyping}" + ${cfg.${deviceType}.additionalOptions} + ''; +in { + + imports = + (map (option: mkRenamedOptionModule ([ "services" "xserver" "libinput" option ]) [ "services" "xserver" "libinput" "touchpad" option ]) [ + "accelProfile" + "accelSpeed" + "buttonMapping" + "calibrationMatrix" + "clickMethod" + "leftHanded" + "middleEmulation" + "naturalScrolling" + "scrollButton" + "scrollMethod" + "horizontalScrolling" + "sendEventsMode" + "tapping" + "disableWhileTyping" + "additionalOptions" + ]); + + options = { + + services.xserver.libinput = { + enable = mkEnableOption "libinput"; + mouse = mkConfigForDevice "mouse"; + touchpad = mkConfigForDevice "touchpad"; + }; }; @@ -212,32 +256,10 @@ in { services.udev.packages = [ pkgs.libinput.out ]; - services.xserver.config = - '' - # General libinput configuration. - # See CONFIGURATION DETAILS section of man:libinput(4). - Section "InputClass" - Identifier "libinputConfiguration" - MatchDriver "libinput" - ${optionalString (cfg.dev != null) ''MatchDevicePath "${cfg.dev}"''} - Option "AccelProfile" "${cfg.accelProfile}" - ${optionalString (cfg.accelSpeed != null) ''Option "AccelSpeed" "${cfg.accelSpeed}"''} - ${optionalString (cfg.buttonMapping != null) ''Option "ButtonMapping" "${cfg.buttonMapping}"''} - ${optionalString (cfg.calibrationMatrix != null) ''Option "CalibrationMatrix" "${cfg.calibrationMatrix}"''} - ${optionalString (cfg.clickMethod != null) ''Option "ClickMethod" "${cfg.clickMethod}"''} - Option "LeftHanded" "${xorgBool cfg.leftHanded}" - Option "MiddleEmulation" "${xorgBool cfg.middleEmulation}" - Option "NaturalScrolling" "${xorgBool cfg.naturalScrolling}" - ${optionalString (cfg.scrollButton != null) ''Option "ScrollButton" "${toString cfg.scrollButton}"''} - Option "ScrollMethod" "${cfg.scrollMethod}" - Option "HorizontalScrolling" "${xorgBool cfg.horizontalScrolling}" - Option "SendEventsMode" "${cfg.sendEventsMode}" - Option "Tapping" "${xorgBool cfg.tapping}" - Option "TappingDragLock" "${xorgBool cfg.tappingDragLock}" - Option "DisableWhileTyping" "${xorgBool cfg.disableWhileTyping}" - ${cfg.additionalOptions} - EndSection - ''; + services.xserver.inputClassSections = [ + (mkX11ConfigForDevice "mouse" "Pointer") + (mkX11ConfigForDevice "touchpad" "Touchpad") + ]; assertions = [ # already present in synaptics.nix From 887386fbbebd4ef2969e65dd9e49ea5af6e57748 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Sun, 10 Jan 2021 01:03:30 -0300 Subject: [PATCH 02/38] nixos/doc: fix manual reference to libinput --- nixos/doc/manual/configuration/x-windows.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/doc/manual/configuration/x-windows.xml b/nixos/doc/manual/configuration/x-windows.xml index b33f6cf82b5..dd879702d7d 100644 --- a/nixos/doc/manual/configuration/x-windows.xml +++ b/nixos/doc/manual/configuration/x-windows.xml @@ -186,7 +186,7 @@ The driver has many options (see ). For instance, the following disables tap-to-click behavior: - = false; + = false; Note: the use of services.xserver.synaptics is deprecated since NixOS 17.09. From 0f762e558249529a6a55db3eebf6c2e943db3649 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Wed, 13 Jan 2021 10:17:23 -0300 Subject: [PATCH 03/38] nixos/doc: document services.xserver.libinput changes --- nixos/doc/manual/release-notes/rl-2103.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2103.xml b/nixos/doc/manual/release-notes/rl-2103.xml index e46d1ca403f..94e42369b60 100644 --- a/nixos/doc/manual/release-notes/rl-2103.xml +++ b/nixos/doc/manual/release-notes/rl-2103.xml @@ -430,6 +430,17 @@ http://some.json-exporter.host:7979/probe?target=https://example.com/some/json/e dynamically allocated uid. + + + The libinput module has been updated with the ability to configure mouse and touchpad settings separately. + The options in services.xserver.libinput have been renamed to services.xserver.libinput.touchpad, + while there is a new services.xserver.libinput.mouse for mouse related configuration. + + + Since touchpad options no longer apply to all devices, you may want to replicate your touchpad configuration in + mouse section. + + From 1f1c480f6cb9f6225981e7f5a932600cfc364100 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Wed, 20 Jan 2021 01:28:45 +0000 Subject: [PATCH 04/38] libmaxminddb: 1.4.3 -> 1.5.0 --- pkgs/development/libraries/libmaxminddb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libmaxminddb/default.nix b/pkgs/development/libraries/libmaxminddb/default.nix index 94a4b9ec57c..2b4d75bba75 100644 --- a/pkgs/development/libraries/libmaxminddb/default.nix +++ b/pkgs/development/libraries/libmaxminddb/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "libmaxminddb"; - version = "1.4.3"; + version = "1.5.0"; src = fetchurl { url = meta.homepage + "/releases/download/${version}/${pname}-${version}.tar.gz"; - sha256 = "0fd4a4sxiiwzbd5h74wl1ijnb7xybjyybb7q41vdq3w8nk3zdzd5"; + sha256 = "sha256-fFbnkf8qZVIV5+04ZLH/3X00o4g1d57+1WpC8Fa9WKo="; }; meta = with stdenv.lib; { From 56240c9d4fa898605ffa025a99f1b2056d1da5a1 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 20 Jan 2021 04:20:00 +0000 Subject: [PATCH 05/38] go-tools: 2020.2 -> 2020.2.1 --- pkgs/development/tools/go-tools/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/go-tools/default.nix b/pkgs/development/tools/go-tools/default.nix index 3d3c9db9a1e..57e836d8f4e 100644 --- a/pkgs/development/tools/go-tools/default.nix +++ b/pkgs/development/tools/go-tools/default.nix @@ -5,16 +5,16 @@ buildGoModule rec { pname = "go-tools"; - version = "2020.2"; + version = "2020.2.1"; src = fetchFromGitHub { owner = "dominikh"; repo = "go-tools"; rev = version; - sha256 = "1qqpr481rx6n75xp1racsjjyn2fa8f28pcb0r9kd56qq890h3qgj"; + sha256 = "0a1a4dhz33grwg892436bjhgp8sygrg8yhdhy8dh6i3l6n9dalfh"; }; - vendorSha256 = "1axci0l7pymy66j6lilm49ksrwp7dvnj5krai2kvy96n3arcnsvq"; + vendorSha256 = "081p008sb3lkc8j6sa6n42qi04za4a631kihrd4ca6aigwkgl3ak"; doCheck = false; From 26dba9209f3753c74eeeaa5a3b0449ccd7d90dd5 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Wed, 20 Jan 2021 05:27:37 +0000 Subject: [PATCH 06/38] marvin: 20.20.0 -> 20.21.0 --- pkgs/applications/science/chemistry/marvin/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/chemistry/marvin/default.nix b/pkgs/applications/science/chemistry/marvin/default.nix index 666731106ac..d90c55466f8 100644 --- a/pkgs/applications/science/chemistry/marvin/default.nix +++ b/pkgs/applications/science/chemistry/marvin/default.nix @@ -4,12 +4,12 @@ with lib; stdenv.mkDerivation rec { pname = "marvin"; - version = "20.20.0"; + version = "20.21.0"; src = fetchurl { name = "marvin-${version}.deb"; url = "http://dl.chemaxon.com/marvin/${version}/marvin_linux_${versions.majorMinor version}.deb"; - sha256 = "1a8b0drb0c95c8arm3aa0z0sbdm9ilj4h1g90i0qyn4g2wk2xsal"; + sha256 = "sha256-OMT6t8bNeFRWFlpyg0iKt2SMNfAmIUvVKiW+cfjfBuI="; }; nativeBuildInputs = [ dpkg makeWrapper ]; From 754bba41d181ad0933c25e6e956c1b9bfda4b73b Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Wed, 20 Jan 2021 19:32:25 +0000 Subject: [PATCH 07/38] oxipng: 4.0.2 -> 4.0.3 --- pkgs/tools/graphics/oxipng/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/graphics/oxipng/default.nix b/pkgs/tools/graphics/oxipng/default.nix index 98ece65eb16..6f91ee26007 100644 --- a/pkgs/tools/graphics/oxipng/default.nix +++ b/pkgs/tools/graphics/oxipng/default.nix @@ -1,15 +1,15 @@ { lib, stdenv, fetchCrate, rustPlatform }: rustPlatform.buildRustPackage rec { - version = "4.0.2"; + version = "4.0.3"; pname = "oxipng"; src = fetchCrate { inherit version pname; - sha256 = "0m36af9w1l6pc71fjbgyzcsszizwayvcv5d750zz2bnj23c77m69"; + sha256 = "sha256-lvVgoAZMIqmbS6yMul9Hf9PtneEVy+jDs3kU1jSBL2w="; }; - cargoSha256 = "16fby8ncdq0dyg9r0glrqwi04sja34br306c5sj22cq1dm3bb64q"; + cargoSha256 = "sha256-v0A8/b/OPAtnaNlMX7QNXTGGH6kg67WBo/2ChOPDZdQ="; doCheck = !stdenv.isAarch64 && !stdenv.isDarwin; From 7ab66f91a75d8b7508f57c5719c9c6bc772be59c Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Wed, 20 Jan 2021 22:29:43 +0100 Subject: [PATCH 08/38] xfig: 3.2.7b1 -> 3.2.8 --- pkgs/applications/graphics/xfig/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/graphics/xfig/default.nix b/pkgs/applications/graphics/xfig/default.nix index 3f35880b3f2..53a9632e192 100644 --- a/pkgs/applications/graphics/xfig/default.nix +++ b/pkgs/applications/graphics/xfig/default.nix @@ -1,17 +1,14 @@ { lib, stdenv, fetchurl, xlibsWrapper, makeWrapper, libXpm -, libXmu, libXi, libXp, Xaw3d, fig2dev +, libXmu, libXi, libXp, Xaw3d, libXaw, fig2dev }: -let - version = "3.2.7a"; - -in stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "xfig"; - inherit version; + version = "3.2.8"; src = fetchurl { url = "mirror://sourceforge/mcj/xfig-${version}.tar.xz"; - sha256 = "096zgp0bqnxhgxbrv2jjylrjz3pr4da0xxznlk2z7ffxr5pri2fa"; + sha256 = "1czamqp0xn0j6qjnasa3fjnrzi072v6qknylr6jrs4gwsfw4ybyw"; }; postPatch = '' @@ -30,7 +27,7 @@ in stdenv.mkDerivation { nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ xlibsWrapper libXpm libXmu libXi libXp Xaw3d ]; + buildInputs = [ xlibsWrapper libXpm libXmu libXi libXp Xaw3d libXaw ]; meta = with lib; { description = "An interactive drawing tool for X11"; @@ -38,6 +35,6 @@ in stdenv.mkDerivation { Note that you need to have the netpbm tools in your path to export bitmaps. ''; - inherit (fig2dev.meta) license homepage platforms; + inherit (fig2dev.meta) license homepage platforms maintainers; }; } From 620868fbdb267c8331b284dd856060c79648bcf8 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 21 Jan 2021 07:34:34 +1000 Subject: [PATCH 09/38] gdu: 3.0.0 -> 4.2.0 https://github.com/dundee/gdu/releases/tag/v4.0.0 https://github.com/dundee/gdu/releases/tag/v4.1.0 https://github.com/dundee/gdu/releases/tag/v4.2.0 --- pkgs/tools/system/gdu/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/system/gdu/default.nix b/pkgs/tools/system/gdu/default.nix index 72ee7d5ebc6..53e69cd8cd6 100644 --- a/pkgs/tools/system/gdu/default.nix +++ b/pkgs/tools/system/gdu/default.nix @@ -2,23 +2,30 @@ , stdenv , buildGoModule , fetchFromGitHub +, installShellFiles }: buildGoModule rec { pname = "gdu"; - version = "3.0.0"; + version = "4.2.0"; src = fetchFromGitHub { owner = "dundee"; repo = pname; rev = "v${version}"; - sha256 = "0sfb8bxvdd8r05d0bgfcaw6dpbky7f4fgf0dbly7k7sgl29hkafy"; + sha256 = "0ppsz7ys08lmg5s7lszqc2zcp2vjm54aai3yr3sb4jf3knbmyg5g"; }; - vendorSha256 = "0w3k23kly8g9mf8a300xz6bv7g1m2nlp5f112k4viyi9zy6vqbv0"; + vendorSha256 = "058h71gmgi3n4b697myi5890arzw8fkzmxlm1aiwzyfh3k9iv0wh"; buildFlagsArray = [ "-ldflags=-s -w -X github.com/dundee/gdu/build.Version=${version}" ]; + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installManPage gdu.1 + ''; + # tests fail if the version is set doCheck = false; From fc1ddd2cabd1922431e2f9d9a5257c907f0b18c1 Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Wed, 20 Jan 2021 17:18:04 -0500 Subject: [PATCH 10/38] notmuch: 0.31 -> 0.31.3 --- pkgs/applications/networking/mailreaders/notmuch/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/mailreaders/notmuch/default.nix b/pkgs/applications/networking/mailreaders/notmuch/default.nix index c39654d1c29..ddffe074706 100644 --- a/pkgs/applications/networking/mailreaders/notmuch/default.nix +++ b/pkgs/applications/networking/mailreaders/notmuch/default.nix @@ -12,7 +12,7 @@ with lib; stdenv.mkDerivation rec { - version = "0.31"; + version = "0.31.3"; pname = "notmuch"; passthru = { @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { src = fetchgit { url = "https://git.notmuchmail.org/git/notmuch"; - sha256 = "0f9d9k9avb46yh2r8fvijvw7bryqwckvyzc68f9phax2g4c99x4x"; + sha256 = "1wm1myzacz1dcg7vdfd3akia3xan7ssfspf1fflrwm18hdalss5v"; rev = version; }; From 44f39b8420bf8dd07ca37de12fbb14984294b5c0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 20 Jan 2021 23:22:31 +0100 Subject: [PATCH 11/38] gitjacker: init at 0.0.2 --- pkgs/tools/security/gitjacker/default.nix | 43 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 45 insertions(+) create mode 100644 pkgs/tools/security/gitjacker/default.nix diff --git a/pkgs/tools/security/gitjacker/default.nix b/pkgs/tools/security/gitjacker/default.nix new file mode 100644 index 00000000000..0b8c087eccd --- /dev/null +++ b/pkgs/tools/security/gitjacker/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, git +, stdenv +}: + +buildGoModule rec { + pname = "gitjacker"; + version = "0.0.2"; + + src = fetchFromGitHub { + owner = "liamg"; + repo = "gitjacker"; + rev = "v${version}"; + sha256 = "0fg95i2y8sj7dsvqj8mx0k5pps7d0h1i4a3lk85l8jjab4kxx8h9"; + }; + + vendorSha256 = null; + + propagatedBuildInputs = [ git ]; + + checkInputs = [ git ]; + + doCheck = !stdenv.isDarwin; + + preCheck = '' + export PATH=$TMPDIR/usr/bin:$PATH + ''; + + meta = with lib; { + description = "Leak git repositories from misconfigured websites"; + longDescription = '' + Gitjacker downloads git repositories and extracts their contents + from sites where the .git directory has been mistakenly uploaded. + It will still manage to recover a significant portion of a repository + even where directory listings are disabled. + ''; + homepage = "https://github.com/liamg/gitjacker"; + license = with licenses; [ unlicense ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2df5a25414c..a4f6d4dd78d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2232,6 +2232,8 @@ in gist = callPackage ../tools/text/gist { }; + gitjacker = callPackage ../tools/security/gitjacker { }; + gixy = callPackage ../tools/admin/gixy { }; glpaper = callPackage ../development/tools/glpaper { }; From fb76434e986739b3f99cb41a12ba7b61656857bd Mon Sep 17 00:00:00 2001 From: ash lea Date: Wed, 20 Jan 2021 15:37:22 -0800 Subject: [PATCH 12/38] dolphinEmuMaster: 5.0-12716 -> 5.0-13178 --- pkgs/misc/emulators/dolphin-emu/master.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/emulators/dolphin-emu/master.nix b/pkgs/misc/emulators/dolphin-emu/master.nix index 7e988747308..4a1fca0e7c5 100644 --- a/pkgs/misc/emulators/dolphin-emu/master.nix +++ b/pkgs/misc/emulators/dolphin-emu/master.nix @@ -21,13 +21,13 @@ let }; in stdenv.mkDerivation rec { pname = "dolphin-emu"; - version = "5.0-12716"; + version = "5.0-13178"; src = fetchFromGitHub { owner = "dolphin-emu"; repo = "dolphin"; - rev = "31524288e3b2450eaefff8202c6d26c4ba3f7333"; - sha256 = "0vv3ahk6zdx2hx5diq4jkhl289wjybqcr4lwinrkfiywb83hcabg"; + rev = "a34823df61df65168aa40ef5e82e44defd4a0138"; + sha256 = "0j6hnj60iai366kl0kdbn1jkwc183l02g65mp2vq4qb2yd4399l1"; }; nativeBuildInputs = [ cmake pkg-config ] From 8488ebab05929b1d65c12a9294661478f01a1a55 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 21 Jan 2021 10:24:35 +1000 Subject: [PATCH 13/38] ocamlPackages.*: use spaces for indentation --- .../development/ocaml-modules/bos/default.nix | 34 +++++------ .../ocaml-modules/camomile/default.nix | 30 +++++----- .../ocaml-modules/cohttp/async.nix | 24 ++++---- .../ocaml-modules/cohttp/default.nix | 32 +++++----- .../ocaml-modules/cohttp/lwt-unix.nix | 10 ++-- pkgs/development/ocaml-modules/cohttp/lwt.nix | 8 +-- .../ocaml-modules/conduit/async.nix | 16 ++--- .../ocaml-modules/conduit/lwt-unix.nix | 18 +++--- .../development/ocaml-modules/conduit/lwt.nix | 14 ++--- .../development/ocaml-modules/cstruct/lwt.nix | 6 +- .../development/ocaml-modules/cstruct/ppx.nix | 8 +-- .../ocaml-modules/cstruct/sexp.nix | 11 ++-- .../ocaml-modules/cstruct/unix.nix | 8 +-- .../development/ocaml-modules/csv/default.nix | 24 ++++---- .../ocaml-modules/decompress/default.nix | 34 +++++------ .../ocaml-modules/dolmen/default.nix | 38 ++++++------ .../ocaml-modules/expat/default.nix | 44 +++++++------- .../ocaml-modules/git-http/default.nix | 16 ++--- .../ocaml-modules/git-unix/default.nix | 20 +++---- .../development/ocaml-modules/git/default.nix | 40 ++++++------- .../ocaml-modules/hmap/default.nix | 10 ++-- .../ocaml-modules/inifiles/default.nix | 36 ++++++------ .../ocaml-modules/inotify/default.nix | 58 +++++++++---------- .../ocaml-modules/integers/default.nix | 24 ++++---- .../ocaml-modules/lwt_react/default.nix | 26 ++++----- .../development/ocaml-modules/num/default.nix | 42 +++++++------- .../ocaml-modules/ocp-ocamlres/default.nix | 38 ++++++------ .../ocplib-json-typed/default.nix | 32 +++++----- .../ocaml-modules/octavius/default.nix | 28 ++++----- .../ocaml-modules/opium/default.nix | 8 +-- .../ocaml-modules/ppx_derivers/default.nix | 28 ++++----- .../ocaml-modules/ppxfind/default.nix | 30 +++++----- .../ocaml-modules/rresult/default.nix | 30 +++++----- .../ocaml-modules/webbrowser/default.nix | 34 +++++------ 34 files changed, 429 insertions(+), 430 deletions(-) diff --git a/pkgs/development/ocaml-modules/bos/default.nix b/pkgs/development/ocaml-modules/bos/default.nix index 84cee3d97ce..62438526d70 100644 --- a/pkgs/development/ocaml-modules/bos/default.nix +++ b/pkgs/development/ocaml-modules/bos/default.nix @@ -3,24 +3,24 @@ }: stdenv.mkDerivation rec { - name = "ocaml${ocaml.version}-bos-${version}"; - version = "0.2.0"; - src = fetchurl { - url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz"; - sha256 = "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc"; - }; + name = "ocaml${ocaml.version}-bos-${version}"; + version = "0.2.0"; + src = fetchurl { + url = "https://erratique.ch/software/bos/releases/bos-${version}.tbz"; + sha256 = "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc"; + }; - nativeBuildInputs = [ ocaml findlib ocamlbuild ]; - buildInputs = [ findlib topkg ]; - propagatedBuildInputs = [ astring fmt fpath logs rresult ]; + nativeBuildInputs = [ ocaml findlib ocamlbuild ]; + buildInputs = [ findlib topkg ]; + propagatedBuildInputs = [ astring fmt fpath logs rresult ]; - inherit (topkg) buildPhase installPhase; + inherit (topkg) buildPhase installPhase; - meta = { - description = "Basic OS interaction for OCaml"; - homepage = "https://erratique.ch/software/bos"; - license = lib.licenses.isc; - maintainers = [ lib.maintainers.vbgl ]; - inherit (ocaml.meta) platforms; - }; + meta = { + description = "Basic OS interaction for OCaml"; + homepage = "https://erratique.ch/software/bos"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + inherit (ocaml.meta) platforms; + }; } diff --git a/pkgs/development/ocaml-modules/camomile/default.nix b/pkgs/development/ocaml-modules/camomile/default.nix index 2b246d0f3ea..6bae728cafa 100644 --- a/pkgs/development/ocaml-modules/camomile/default.nix +++ b/pkgs/development/ocaml-modules/camomile/default.nix @@ -2,23 +2,23 @@ buildDunePackage rec { pname = "camomile"; - version = "1.0.2"; + version = "1.0.2"; - src = fetchFromGitHub { - owner = "yoriyuki"; - repo = pname; - rev = version; - sha256 = "00i910qjv6bpk0nkafp5fg97isqas0bwjf7m6rz11rsxilpalzad"; - }; + src = fetchFromGitHub { + owner = "yoriyuki"; + repo = pname; + rev = version; + sha256 = "00i910qjv6bpk0nkafp5fg97isqas0bwjf7m6rz11rsxilpalzad"; + }; - buildInputs = [ cppo ]; + buildInputs = [ cppo ]; - configurePhase = "ocaml configure.ml --share $out/share/camomile"; + configurePhase = "ocaml configure.ml --share $out/share/camomile"; - meta = { - inherit (src.meta) homepage; - maintainers = [ lib.maintainers.vbgl ]; - license = lib.licenses.lgpl21; - description = "A Unicode library for OCaml"; - }; + meta = { + inherit (src.meta) homepage; + maintainers = [ lib.maintainers.vbgl ]; + license = lib.licenses.lgpl21; + description = "A Unicode library for OCaml"; + }; } diff --git a/pkgs/development/ocaml-modules/cohttp/async.nix b/pkgs/development/ocaml-modules/cohttp/async.nix index 974c3aa2f9c..21e22533f1b 100644 --- a/pkgs/development/ocaml-modules/cohttp/async.nix +++ b/pkgs/development/ocaml-modules/cohttp/async.nix @@ -2,21 +2,21 @@ , logs, magic-mime }: if !lib.versionAtLeast cohttp.version "0.99" then - cohttp + cohttp else if !lib.versionAtLeast async.version "0.13" then - throw "cohttp-async needs async-0.13 (hence OCaml >= 4.08)" + throw "cohttp-async needs async-0.13 (hence OCaml >= 4.08)" else - buildDunePackage { - pname = "cohttp-async"; - useDune2 = true; - inherit (cohttp) version src; + buildDunePackage { + pname = "cohttp-async"; + useDune2 = true; + inherit (cohttp) version src; - buildInputs = [ ppx_sexp_conv ]; + buildInputs = [ ppx_sexp_conv ]; - propagatedBuildInputs = [ async cohttp conduit-async logs magic-mime uri ]; + propagatedBuildInputs = [ async cohttp conduit-async logs magic-mime uri ]; - meta = cohttp.meta // { - description = "CoHTTP implementation for the Async concurrency library"; - }; - } + meta = cohttp.meta // { + description = "CoHTTP implementation for the Async concurrency library"; + }; + } diff --git a/pkgs/development/ocaml-modules/cohttp/default.nix b/pkgs/development/ocaml-modules/cohttp/default.nix index 3fed7c55d45..e664d17f215 100644 --- a/pkgs/development/ocaml-modules/cohttp/default.nix +++ b/pkgs/development/ocaml-modules/cohttp/default.nix @@ -4,26 +4,26 @@ }: buildDunePackage rec { - pname = "cohttp"; - version = "2.5.4"; + pname = "cohttp"; + version = "2.5.4"; - useDune2 = true; + useDune2 = true; - minimumOCamlVersion = "4.04.1"; + minimumOCamlVersion = "4.04.1"; - src = fetchurl { - url = "https://github.com/mirage/ocaml-cohttp/releases/download/v${version}/cohttp-v${version}.tbz"; - sha256 = "1q04spmki5zis5p5m1vs77i3k7ijm134j62g61071vblwx25z17a"; - }; + src = fetchurl { + url = "https://github.com/mirage/ocaml-cohttp/releases/download/v${version}/cohttp-v${version}.tbz"; + sha256 = "1q04spmki5zis5p5m1vs77i3k7ijm134j62g61071vblwx25z17a"; + }; - buildInputs = [ jsonm ppx_fields_conv ppx_sexp_conv ]; + buildInputs = [ jsonm ppx_fields_conv ppx_sexp_conv ]; - propagatedBuildInputs = [ base64 fieldslib re stringext uri-sexp stdlib-shims ]; + propagatedBuildInputs = [ base64 fieldslib re stringext uri-sexp stdlib-shims ]; - meta = { - description = "HTTP(S) library for Lwt, Async and Mirage"; - license = lib.licenses.isc; - maintainers = [ lib.maintainers.vbgl ]; - homepage = "https://github.com/mirage/ocaml-cohttp"; - }; + meta = { + description = "HTTP(S) library for Lwt, Async and Mirage"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + homepage = "https://github.com/mirage/ocaml-cohttp"; + }; } diff --git a/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix b/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix index 455a76ce94d..845df2a3f54 100644 --- a/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix +++ b/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix @@ -8,12 +8,12 @@ then cohttp-lwt else buildDunePackage { - pname = "cohttp-lwt-unix"; - inherit (cohttp-lwt) version src meta; + pname = "cohttp-lwt-unix"; + inherit (cohttp-lwt) version src meta; - useDune2 = true; + useDune2 = true; - buildInputs = [ cmdliner ppx_sexp_conv ]; + buildInputs = [ cmdliner ppx_sexp_conv ]; - propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ]; + propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ]; } diff --git a/pkgs/development/ocaml-modules/cohttp/lwt.nix b/pkgs/development/ocaml-modules/cohttp/lwt.nix index 04f81e8e8df..36831d94613 100644 --- a/pkgs/development/ocaml-modules/cohttp/lwt.nix +++ b/pkgs/development/ocaml-modules/cohttp/lwt.nix @@ -7,10 +7,10 @@ then throw "cohttp-lwt is not available for ppx_sexp_conv version ${ppx_sexp_con else buildDunePackage { - pname = "cohttp-lwt"; - inherit (cohttp) version src useDune2 meta; + pname = "cohttp-lwt"; + inherit (cohttp) version src useDune2 meta; - buildInputs = [ uri ppx_sexp_conv ]; + buildInputs = [ uri ppx_sexp_conv ]; - propagatedBuildInputs = [ cohttp ocaml_lwt logs ]; + propagatedBuildInputs = [ cohttp ocaml_lwt logs ]; } diff --git a/pkgs/development/ocaml-modules/conduit/async.nix b/pkgs/development/ocaml-modules/conduit/async.nix index e289b5d711d..c15ad0520fb 100644 --- a/pkgs/development/ocaml-modules/conduit/async.nix +++ b/pkgs/development/ocaml-modules/conduit/async.nix @@ -5,15 +5,15 @@ then conduit else buildDunePackage { - pname = "conduit-async"; - useDune2 = true; - inherit (conduit) version src; + pname = "conduit-async"; + useDune2 = true; + inherit (conduit) version src; - buildInputs = [ ppx_sexp_conv ]; + buildInputs = [ ppx_sexp_conv ]; - propagatedBuildInputs = [ async async_ssl conduit ]; + propagatedBuildInputs = [ async async_ssl conduit ]; - meta = conduit.meta // { - description = "A network connection establishment library for Async"; - }; + meta = conduit.meta // { + description = "A network connection establishment library for Async"; + }; } diff --git a/pkgs/development/ocaml-modules/conduit/lwt-unix.nix b/pkgs/development/ocaml-modules/conduit/lwt-unix.nix index 9f871a8ea9c..ab6449b50a1 100644 --- a/pkgs/development/ocaml-modules/conduit/lwt-unix.nix +++ b/pkgs/development/ocaml-modules/conduit/lwt-unix.nix @@ -4,17 +4,17 @@ }: buildDunePackage { - pname = "conduit-lwt-unix"; - inherit (conduit-lwt) version src minimumOCamlVersion; + pname = "conduit-lwt-unix"; + inherit (conduit-lwt) version src minimumOCamlVersion; - useDune2 = true; + useDune2 = true; - buildInputs = [ ppx_sexp_conv ]; + buildInputs = [ ppx_sexp_conv ]; - propagatedBuildInputs = - [ conduit-lwt ocaml_lwt uri ipaddr ipaddr-sexp tls lwt_ssl ]; + propagatedBuildInputs = + [ conduit-lwt ocaml_lwt uri ipaddr ipaddr-sexp tls lwt_ssl ]; - meta = conduit-lwt.meta // { - description = "A network connection establishment library for Lwt_unix"; - }; + meta = conduit-lwt.meta // { + description = "A network connection establishment library for Lwt_unix"; + }; } diff --git a/pkgs/development/ocaml-modules/conduit/lwt.nix b/pkgs/development/ocaml-modules/conduit/lwt.nix index 512aa60bb66..2f18027a67b 100644 --- a/pkgs/development/ocaml-modules/conduit/lwt.nix +++ b/pkgs/development/ocaml-modules/conduit/lwt.nix @@ -1,14 +1,14 @@ { buildDunePackage, ppx_sexp_conv, conduit, ocaml_lwt, sexplib }: buildDunePackage { - pname = "conduit-lwt"; - inherit (conduit) version src useDune2 minimumOCamlVersion; + pname = "conduit-lwt"; + inherit (conduit) version src useDune2 minimumOCamlVersion; - buildInputs = [ ppx_sexp_conv ]; + buildInputs = [ ppx_sexp_conv ]; - propagatedBuildInputs = [ conduit ocaml_lwt sexplib ]; + propagatedBuildInputs = [ conduit ocaml_lwt sexplib ]; - meta = conduit.meta // { - description = "A network connection establishment library for Lwt"; - }; + meta = conduit.meta // { + description = "A network connection establishment library for Lwt"; + }; } diff --git a/pkgs/development/ocaml-modules/cstruct/lwt.nix b/pkgs/development/ocaml-modules/cstruct/lwt.nix index f340bfcda25..113df1e89b5 100644 --- a/pkgs/development/ocaml-modules/cstruct/lwt.nix +++ b/pkgs/development/ocaml-modules/cstruct/lwt.nix @@ -5,10 +5,10 @@ then cstruct else buildDunePackage { - pname = "cstruct-lwt"; - inherit (cstruct) version src useDune2 meta; + pname = "cstruct-lwt"; + inherit (cstruct) version src useDune2 meta; minimumOCamlVersion = "4.02"; - propagatedBuildInputs = [ cstruct lwt ]; + propagatedBuildInputs = [ cstruct lwt ]; } diff --git a/pkgs/development/ocaml-modules/cstruct/ppx.nix b/pkgs/development/ocaml-modules/cstruct/ppx.nix index feb8feac6b6..44343812090 100644 --- a/pkgs/development/ocaml-modules/cstruct/ppx.nix +++ b/pkgs/development/ocaml-modules/cstruct/ppx.nix @@ -5,10 +5,10 @@ then cstruct else buildDunePackage { - pname = "ppx_cstruct"; - inherit (cstruct) version src useDune2 meta; + pname = "ppx_cstruct"; + inherit (cstruct) version src useDune2 meta; - minimumOCamlVersion = "4.03"; + minimumOCamlVersion = "4.03"; - propagatedBuildInputs = [ cstruct ppx_tools_versioned ppxlib sexplib ]; + propagatedBuildInputs = [ cstruct ppx_tools_versioned ppxlib sexplib ]; } diff --git a/pkgs/development/ocaml-modules/cstruct/sexp.nix b/pkgs/development/ocaml-modules/cstruct/sexp.nix index 04bb10d6f75..742cb6522eb 100644 --- a/pkgs/development/ocaml-modules/cstruct/sexp.nix +++ b/pkgs/development/ocaml-modules/cstruct/sexp.nix @@ -5,12 +5,11 @@ then cstruct else buildDunePackage rec { - pname = "cstruct-sexp"; - inherit (cstruct) version src useDune2 meta; + pname = "cstruct-sexp"; + inherit (cstruct) version src useDune2 meta; - doCheck = lib.versionAtLeast ocaml.version "4.03"; - checkInputs = lib.optional doCheck alcotest; + doCheck = lib.versionAtLeast ocaml.version "4.03"; + checkInputs = lib.optional doCheck alcotest; - propagatedBuildInputs = [ cstruct sexplib ]; + propagatedBuildInputs = [ cstruct sexplib ]; } - diff --git a/pkgs/development/ocaml-modules/cstruct/unix.nix b/pkgs/development/ocaml-modules/cstruct/unix.nix index b7e0df0185c..1ea27bb04de 100644 --- a/pkgs/development/ocaml-modules/cstruct/unix.nix +++ b/pkgs/development/ocaml-modules/cstruct/unix.nix @@ -5,10 +5,10 @@ then cstruct else buildDunePackage { - pname = "cstruct-unix"; - inherit (cstruct) version src useDune2 meta; + pname = "cstruct-unix"; + inherit (cstruct) version src useDune2 meta; - minimumOCamlVersion = "4.06"; + minimumOCamlVersion = "4.06"; - propagatedBuildInputs = [ cstruct ]; + propagatedBuildInputs = [ cstruct ]; } diff --git a/pkgs/development/ocaml-modules/csv/default.nix b/pkgs/development/ocaml-modules/csv/default.nix index 8cf2918989e..59562453175 100644 --- a/pkgs/development/ocaml-modules/csv/default.nix +++ b/pkgs/development/ocaml-modules/csv/default.nix @@ -2,19 +2,19 @@ buildDunePackage rec { pname = "csv"; - version = "2.4"; + version = "2.4"; - useDune2 = true; + useDune2 = true; - src = fetchurl { - url = "https://github.com/Chris00/ocaml-${pname}/releases/download/${version}/csv-${version}.tbz"; - sha256 = "13m9n8mdss6jfbiw7d5bybxn4n85vmg4zw7dc968qrgjfy0w9zhk"; - }; + src = fetchurl { + url = "https://github.com/Chris00/ocaml-${pname}/releases/download/${version}/csv-${version}.tbz"; + sha256 = "13m9n8mdss6jfbiw7d5bybxn4n85vmg4zw7dc968qrgjfy0w9zhk"; + }; - meta = { - description = "A pure OCaml library to read and write CSV files"; - license = lib.licenses.lgpl21; - maintainers = [ lib.maintainers.vbgl ]; - homepage = "https://github.com/Chris00/ocaml-csv"; - }; + meta = { + description = "A pure OCaml library to read and write CSV files"; + license = lib.licenses.lgpl21; + maintainers = [ lib.maintainers.vbgl ]; + homepage = "https://github.com/Chris00/ocaml-csv"; + }; } diff --git a/pkgs/development/ocaml-modules/decompress/default.nix b/pkgs/development/ocaml-modules/decompress/default.nix index a3bf3456ed0..067fac33d45 100644 --- a/pkgs/development/ocaml-modules/decompress/default.nix +++ b/pkgs/development/ocaml-modules/decompress/default.nix @@ -4,25 +4,25 @@ }: buildDunePackage rec { - version = "0.9.0"; - pname = "decompress"; + version = "0.9.0"; + pname = "decompress"; - useDune2 = true; + useDune2 = true; - src = fetchurl { - url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz"; - sha256 = "0fryhcvv96vfca51c7kqdn3n3canqsbbvfbi75ya6lca4lmpipbh"; - }; + src = fetchurl { + url = "https://github.com/mirage/decompress/releases/download/v${version}/decompress-v${version}.tbz"; + sha256 = "0fryhcvv96vfca51c7kqdn3n3canqsbbvfbi75ya6lca4lmpipbh"; + }; - buildInputs = [ cmdliner ]; - propagatedBuildInputs = [ checkseum ]; - checkInputs = lib.optionals doCheck [ alcotest bos camlzip mmap re ]; - doCheck = true; + buildInputs = [ cmdliner ]; + propagatedBuildInputs = [ checkseum ]; + checkInputs = lib.optionals doCheck [ alcotest bos camlzip mmap re ]; + doCheck = true; - meta = { - description = "Pure OCaml implementation of Zlib"; - license = lib.licenses.mit; - maintainers = [ lib.maintainers.vbgl ]; - homepage = "https://github.com/mirage/decompress"; - }; + meta = { + description = "Pure OCaml implementation of Zlib"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.vbgl ]; + homepage = "https://github.com/mirage/decompress"; + }; } diff --git a/pkgs/development/ocaml-modules/dolmen/default.nix b/pkgs/development/ocaml-modules/dolmen/default.nix index d4a47abcafa..a1a73bfe218 100644 --- a/pkgs/development/ocaml-modules/dolmen/default.nix +++ b/pkgs/development/ocaml-modules/dolmen/default.nix @@ -1,27 +1,27 @@ { stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, menhir }: stdenv.mkDerivation rec { - name = "ocaml${ocaml.version}-dolmen-${version}"; - version = "0.2"; - src = fetchFromGitHub { - owner = "Gbury"; - repo = "dolmen"; - rev = "v${version}"; - sha256 = "1b9mf8p6mic0n76acx8x82hhgm2n40sdv0jri95im65l52223saf"; - }; + name = "ocaml${ocaml.version}-dolmen-${version}"; + version = "0.2"; + src = fetchFromGitHub { + owner = "Gbury"; + repo = "dolmen"; + rev = "v${version}"; + sha256 = "1b9mf8p6mic0n76acx8x82hhgm2n40sdv0jri95im65l52223saf"; + }; - buildInputs = [ ocaml findlib ocamlbuild ]; - propagatedBuildInputs = [ menhir ]; + buildInputs = [ ocaml findlib ocamlbuild ]; + propagatedBuildInputs = [ menhir ]; - makeFlags = [ "-C" "src" ]; + makeFlags = [ "-C" "src" ]; - createFindlibDestdir = true; + createFindlibDestdir = true; - meta = { - description = "An OCaml library providing clean and flexible parsers for input languages"; - license = lib.licenses.bsd2; - maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; - inherit (ocaml.meta) platforms; - }; + meta = { + description = "An OCaml library providing clean and flexible parsers for input languages"; + license = lib.licenses.bsd2; + maintainers = [ lib.maintainers.vbgl ]; + inherit (src.meta) homepage; + inherit (ocaml.meta) platforms; + }; } diff --git a/pkgs/development/ocaml-modules/expat/default.nix b/pkgs/development/ocaml-modules/expat/default.nix index 9675fa88151..1812473e78b 100644 --- a/pkgs/development/ocaml-modules/expat/default.nix +++ b/pkgs/development/ocaml-modules/expat/default.nix @@ -1,32 +1,32 @@ { stdenv, lib, fetchFromGitHub, expat, ocaml, findlib, ounit }: stdenv.mkDerivation rec { - name = "ocaml${ocaml.version}-expat-${version}"; - version = "1.1.0"; + name = "ocaml${ocaml.version}-expat-${version}"; + version = "1.1.0"; - src = fetchFromGitHub { - owner = "whitequark"; - repo = "ocaml-expat"; - rev = "v${version}"; - sha256 = "07wm9663z744ya6z2lhiz5hbmc76kkipg04j9vw9dqpd1y1f2x3q"; - }; + src = fetchFromGitHub { + owner = "whitequark"; + repo = "ocaml-expat"; + rev = "v${version}"; + sha256 = "07wm9663z744ya6z2lhiz5hbmc76kkipg04j9vw9dqpd1y1f2x3q"; + }; - prePatch = '' - substituteInPlace Makefile --replace "gcc" "\$(CC)" - ''; + prePatch = '' + substituteInPlace Makefile --replace "gcc" "\$(CC)" + ''; - buildInputs = [ ocaml findlib expat ounit ]; + buildInputs = [ ocaml findlib expat ounit ]; - doCheck = !lib.versionAtLeast ocaml.version "4.06"; - checkTarget = "testall"; + doCheck = !lib.versionAtLeast ocaml.version "4.06"; + checkTarget = "testall"; - createFindlibDestdir = true; + createFindlibDestdir = true; - meta = { - description = "OCaml wrapper for the Expat XML parsing library"; - license = lib.licenses.mit; - maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; - inherit (ocaml.meta) platforms; - }; + meta = { + description = "OCaml wrapper for the Expat XML parsing library"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.vbgl ]; + inherit (src.meta) homepage; + inherit (ocaml.meta) platforms; + }; } diff --git a/pkgs/development/ocaml-modules/git-http/default.nix b/pkgs/development/ocaml-modules/git-http/default.nix index 3b127c65006..54bd5c2da23 100644 --- a/pkgs/development/ocaml-modules/git-http/default.nix +++ b/pkgs/development/ocaml-modules/git-http/default.nix @@ -1,15 +1,15 @@ { buildDunePackage, git, cohttp, cohttp-lwt }: buildDunePackage { - pname = "git-http"; - inherit (git) version src minimumOCamlVersion; + pname = "git-http"; + inherit (git) version src minimumOCamlVersion; - useDune2 = true; + useDune2 = true; - propagatedBuildInputs = [ git cohttp cohttp-lwt ]; + propagatedBuildInputs = [ git cohttp cohttp-lwt ]; - meta = { - description = "Client implementation of the “Smart” HTTP Git protocol in pure OCaml"; - inherit (git.meta) homepage license maintainers; - }; + meta = { + description = "Client implementation of the “Smart” HTTP Git protocol in pure OCaml"; + inherit (git.meta) homepage license maintainers; + }; } diff --git a/pkgs/development/ocaml-modules/git-unix/default.nix b/pkgs/development/ocaml-modules/git-unix/default.nix index 0633b8af8f0..6ee6ef21c15 100644 --- a/pkgs/development/ocaml-modules/git-unix/default.nix +++ b/pkgs/development/ocaml-modules/git-unix/default.nix @@ -4,17 +4,17 @@ }: buildDunePackage { - pname = "git-unix"; - inherit (git-http) version src minimumOCamlVersion; + pname = "git-unix"; + inherit (git-http) version src minimumOCamlVersion; - useDune2 = true; + useDune2 = true; - propagatedBuildInputs = [ mmap cmdliner git-http cohttp cohttp-lwt-unix mtime ]; - checkInputs = [ alcotest mirage-crypto-rng tls io-page git-binary ]; - doCheck = !stdenv.isAarch64; + propagatedBuildInputs = [ mmap cmdliner git-http cohttp cohttp-lwt-unix mtime ]; + checkInputs = [ alcotest mirage-crypto-rng tls io-page git-binary ]; + doCheck = !stdenv.isAarch64; - meta = { - description = "Unix backend for the Git protocol(s)"; - inherit (git-http.meta) homepage license maintainers; - }; + meta = { + description = "Unix backend for the Git protocol(s)"; + inherit (git-http.meta) homepage license maintainers; + }; } diff --git a/pkgs/development/ocaml-modules/git/default.nix b/pkgs/development/ocaml-modules/git/default.nix index ba2372090d8..f5cb452f1a9 100644 --- a/pkgs/development/ocaml-modules/git/default.nix +++ b/pkgs/development/ocaml-modules/git/default.nix @@ -6,28 +6,28 @@ }: buildDunePackage rec { - pname = "git"; - version = "2.1.3"; + pname = "git"; + version = "2.1.3"; - minimumOCamlVersion = "4.07"; - useDune2 = true; + minimumOCamlVersion = "4.07"; + useDune2 = true; - src = fetchurl { - url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz"; - sha256 = "1ppllv65vrkfrmx46aiq5879isffcjmg92z9rv2kh92a83h4lqax"; - }; + src = fetchurl { + url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz"; + sha256 = "1ppllv65vrkfrmx46aiq5879isffcjmg92z9rv2kh92a83h4lqax"; + }; - propagatedBuildInputs = [ - angstrom astring checkseum cstruct decompress digestif encore duff fmt fpath - hex ke logs lru ocaml_lwt ocamlgraph ocplib-endian uri rresult stdlib-shims - ]; - checkInputs = [ alcotest mtime mirage-crypto-rng tls git-binary ]; - doCheck = !stdenv.isAarch64; + propagatedBuildInputs = [ + angstrom astring checkseum cstruct decompress digestif encore duff fmt fpath + hex ke logs lru ocaml_lwt ocamlgraph ocplib-endian uri rresult stdlib-shims + ]; + checkInputs = [ alcotest mtime mirage-crypto-rng tls git-binary ]; + doCheck = !stdenv.isAarch64; - meta = { - description = "Git format and protocol in pure OCaml"; - license = lib.licenses.isc; - maintainers = [ lib.maintainers.vbgl ]; - homepage = "https://github.com/mirage/ocaml-git"; - }; + meta = { + description = "Git format and protocol in pure OCaml"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + homepage = "https://github.com/mirage/ocaml-git"; + }; } diff --git a/pkgs/development/ocaml-modules/hmap/default.nix b/pkgs/development/ocaml-modules/hmap/default.nix index 563d39909c8..67622a8ef6a 100644 --- a/pkgs/development/ocaml-modules/hmap/default.nix +++ b/pkgs/development/ocaml-modules/hmap/default.nix @@ -13,7 +13,7 @@ in assert lib.versionOlder minimumSupportedOcamlVersion ocaml.version; stdenv.mkDerivation rec { - pname = "hmap"; + pname = "hmap"; version = "0.8.1"; name = "ocaml${ocaml.version}-${pname}-${version}"; @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { sha256 = "10xyjy4ab87z7jnghy0wnla9wrmazgyhdwhr4hdmxxdn28dxn03a"; }; - buildInputs = [ ocaml ocamlbuild findlib topkg ]; + buildInputs = [ ocaml ocamlbuild findlib topkg ]; inherit (topkg) installPhase; @@ -33,9 +33,9 @@ stdenv.mkDerivation rec { checkPhase = "${topkg.run} test"; meta = { - description = "Heterogeneous value maps for OCaml"; + description = "Heterogeneous value maps for OCaml"; homepage = "https://erratique.ch/software/hmap"; - license = lib.licenses.isc; - maintainers = [ lib.maintainers.pmahoney ]; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.pmahoney ]; }; } diff --git a/pkgs/development/ocaml-modules/inifiles/default.nix b/pkgs/development/ocaml-modules/inifiles/default.nix index c141c73506d..ad9bd3e2dc7 100644 --- a/pkgs/development/ocaml-modules/inifiles/default.nix +++ b/pkgs/development/ocaml-modules/inifiles/default.nix @@ -1,28 +1,28 @@ { stdenv, lib, fetchurl, fetchpatch, ocaml, findlib, ocaml_pcre }: stdenv.mkDerivation { - name = "ocaml${ocaml.version}-inifiles-1.2"; + name = "ocaml${ocaml.version}-inifiles-1.2"; - src = fetchurl { - url = "http://archive.ubuntu.com/ubuntu/pool/universe/o/ocaml-inifiles/ocaml-inifiles_1.2.orig.tar.gz"; - sha256 = "0jhzgiypmh6hwsv1zpiq77fi0cvcmwbiy5x0yg7mz6p3dh1dmkns"; - }; + src = fetchurl { + url = "http://archive.ubuntu.com/ubuntu/pool/universe/o/ocaml-inifiles/ocaml-inifiles_1.2.orig.tar.gz"; + sha256 = "0jhzgiypmh6hwsv1zpiq77fi0cvcmwbiy5x0yg7mz6p3dh1dmkns"; + }; - patches = [ (fetchpatch { - url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocaml-inifiles/ocaml-inifiles.1.2/files/ocaml-inifiles.diff"; - sha256 = "037kk3172s187w8vwsykdxlpklxzc7m7np57sapk499d8adzdgwn"; - })]; + patches = [ (fetchpatch { + url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocaml-inifiles/ocaml-inifiles.1.2/files/ocaml-inifiles.diff"; + sha256 = "037kk3172s187w8vwsykdxlpklxzc7m7np57sapk499d8adzdgwn"; + })]; - buildInputs = [ ocaml findlib ]; - propagatedBuildInputs = [ ocaml_pcre ]; + buildInputs = [ ocaml findlib ]; + propagatedBuildInputs = [ ocaml_pcre ]; - buildFlags = [ "all" "opt" ]; + buildFlags = [ "all" "opt" ]; - createFindlibDestdir = true; + createFindlibDestdir = true; - meta = { - description = "A small OCaml library to read and write .ini files"; - license = lib.licenses.lgpl21Plus; - inherit (ocaml.meta) platforms; - }; + meta = { + description = "A small OCaml library to read and write .ini files"; + license = lib.licenses.lgpl21Plus; + inherit (ocaml.meta) platforms; + }; } diff --git a/pkgs/development/ocaml-modules/inotify/default.nix b/pkgs/development/ocaml-modules/inotify/default.nix index d43d5d9cf8e..8910b720a84 100644 --- a/pkgs/development/ocaml-modules/inotify/default.nix +++ b/pkgs/development/ocaml-modules/inotify/default.nix @@ -4,41 +4,41 @@ }: stdenv.mkDerivation rec { - version = "2.3"; - name = "ocaml${ocaml.version}-inotify-${version}"; + version = "2.3"; + name = "ocaml${ocaml.version}-inotify-${version}"; - src = fetchFromGitHub { - owner = "whitequark"; - repo = "ocaml-inotify"; - rev = "v${version}"; - sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y"; - }; + src = fetchFromGitHub { + owner = "whitequark"; + repo = "ocaml-inotify"; + rev = "v${version}"; + sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y"; + }; - patches = [ (fetchpatch { - url = "https://github.com/whitequark/ocaml-inotify/commit/716c8002cc1652f58eb0c400ae92e04003cba8c9.patch"; - sha256 = "04lfxrrsmk2mc704kaln8jqx93jc4bkxhijmfy2d4cmk1cim7r6k"; - }) ]; + patches = [ (fetchpatch { + url = "https://github.com/whitequark/ocaml-inotify/commit/716c8002cc1652f58eb0c400ae92e04003cba8c9.patch"; + sha256 = "04lfxrrsmk2mc704kaln8jqx93jc4bkxhijmfy2d4cmk1cim7r6k"; + }) ]; - buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ]; - checkInputs = [ ounit fileutils ]; + buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ]; + checkInputs = [ ounit fileutils ]; - configureFlags = [ "--enable-lwt" - (lib.optionalString doCheck "--enable-tests") ]; + configureFlags = [ "--enable-lwt" + (lib.optionalString doCheck "--enable-tests") ]; - postConfigure = lib.optionalString doCheck '' - echo ': pkg_threads' | tee -a _tags - ''; + postConfigure = lib.optionalString doCheck '' + echo ': pkg_threads' | tee -a _tags + ''; - doCheck = true; - checkTarget = "test"; + doCheck = true; + checkTarget = "test"; - createFindlibDestdir = true; + createFindlibDestdir = true; - meta = { - description = "Bindings for Linux’s filesystem monitoring interface, inotify"; - license = lib.licenses.lgpl21; - maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; - platforms = lib.platforms.linux; - }; + meta = { + description = "Bindings for Linux’s filesystem monitoring interface, inotify"; + license = lib.licenses.lgpl21; + maintainers = [ lib.maintainers.vbgl ]; + inherit (src.meta) homepage; + platforms = lib.platforms.linux; + }; } diff --git a/pkgs/development/ocaml-modules/integers/default.nix b/pkgs/development/ocaml-modules/integers/default.nix index ca14c3ca873..ad6f1f9f813 100644 --- a/pkgs/development/ocaml-modules/integers/default.nix +++ b/pkgs/development/ocaml-modules/integers/default.nix @@ -1,18 +1,18 @@ { lib, fetchzip, buildDunePackage }: buildDunePackage rec { - pname = "integers"; - version = "0.4.0"; + pname = "integers"; + version = "0.4.0"; - src = fetchzip { - url = "https://github.com/ocamllabs/ocaml-integers/archive/${version}.tar.gz"; - sha256 = "0yp3ab0ph7mp5741g7333x4nx8djjvxzpnv3zvsndyzcycspn9dd"; - }; + src = fetchzip { + url = "https://github.com/ocamllabs/ocaml-integers/archive/${version}.tar.gz"; + sha256 = "0yp3ab0ph7mp5741g7333x4nx8djjvxzpnv3zvsndyzcycspn9dd"; + }; - meta = { - description = "Various signed and unsigned integer types for OCaml"; - license = lib.licenses.mit; - homepage = "https://github.com/ocamllabs/ocaml-integers"; - maintainers = [ lib.maintainers.vbgl ]; - }; + meta = { + description = "Various signed and unsigned integer types for OCaml"; + license = lib.licenses.mit; + homepage = "https://github.com/ocamllabs/ocaml-integers"; + maintainers = [ lib.maintainers.vbgl ]; + }; } diff --git a/pkgs/development/ocaml-modules/lwt_react/default.nix b/pkgs/development/ocaml-modules/lwt_react/default.nix index 4d82db043e8..5513935133e 100644 --- a/pkgs/development/ocaml-modules/lwt_react/default.nix +++ b/pkgs/development/ocaml-modules/lwt_react/default.nix @@ -1,22 +1,22 @@ { stdenv, fetchzip, ocaml, findlib, ocamlbuild, lwt, react }: stdenv.mkDerivation rec { - version = "1.0.1"; - name = "ocaml${ocaml.version}-lwt_react-${version}"; - src = fetchzip { - url = "https://github.com/ocsigen/lwt/releases/download/3.0.0/lwt_react-1.0.1.tar.gz"; - sha256 = "1bbz7brvdskf4angzn3q2s2s6qdnx7x8m8syayysh23gwv4c7v31"; - }; + version = "1.0.1"; + name = "ocaml${ocaml.version}-lwt_react-${version}"; + src = fetchzip { + url = "https://github.com/ocsigen/lwt/releases/download/3.0.0/lwt_react-1.0.1.tar.gz"; + sha256 = "1bbz7brvdskf4angzn3q2s2s6qdnx7x8m8syayysh23gwv4c7v31"; + }; - buildInputs = [ ocaml findlib ocamlbuild ]; + buildInputs = [ ocaml findlib ocamlbuild ]; - propagatedBuildInputs = [ lwt react ]; + propagatedBuildInputs = [ lwt react ]; - createFindlibDestdir = true; + createFindlibDestdir = true; - meta = { - description = "Helpers for using React with Lwt"; - inherit (lwt.meta) homepage license maintainers; + meta = { + description = "Helpers for using React with Lwt"; + inherit (lwt.meta) homepage license maintainers; inherit (ocaml.meta) platforms; - }; + }; } diff --git a/pkgs/development/ocaml-modules/num/default.nix b/pkgs/development/ocaml-modules/num/default.nix index b553677fad4..e2c7b439c69 100644 --- a/pkgs/development/ocaml-modules/num/default.nix +++ b/pkgs/development/ocaml-modules/num/default.nix @@ -1,31 +1,31 @@ { stdenv, lib, fetchFromGitHub, fetchpatch, ocaml, findlib, withStatic ? false }: stdenv.mkDerivation rec { - version = "1.1"; - name = "ocaml${ocaml.version}-num-${version}"; - src = fetchFromGitHub { - owner = "ocaml"; - repo = "num"; - rev = "v${version}"; - sha256 = "0a4mhxgs5hi81d227aygjx35696314swas0vzy3ig809jb7zq4h0"; - }; + version = "1.1"; + name = "ocaml${ocaml.version}-num-${version}"; + src = fetchFromGitHub { + owner = "ocaml"; + repo = "num"; + rev = "v${version}"; + sha256 = "0a4mhxgs5hi81d227aygjx35696314swas0vzy3ig809jb7zq4h0"; + }; - patches = [ (fetchpatch { - url = "https://github.com/ocaml/num/commit/6d4c6d476c061298e6385e8a0864f083194b9307.patch"; - sha256 = "18zlvb5n327q8y3c52js5dvyy29ssld1l53jqng8m9w1k24ypi0b"; - }) - ] ++ lib.optional withStatic ./enable-static.patch; + patches = [ (fetchpatch { + url = "https://github.com/ocaml/num/commit/6d4c6d476c061298e6385e8a0864f083194b9307.patch"; + sha256 = "18zlvb5n327q8y3c52js5dvyy29ssld1l53jqng8m9w1k24ypi0b"; + }) + ] ++ lib.optional withStatic ./enable-static.patch; - nativeBuildInputs = [ ocaml findlib ]; + nativeBuildInputs = [ ocaml findlib ]; buildInputs = [ ocaml findlib ]; - createFindlibDestdir = true; + createFindlibDestdir = true; - meta = { - description = "Legacy Num library for arbitrary-precision integer and rational arithmetic"; - license = lib.licenses.lgpl21; - inherit (ocaml.meta) platforms; - inherit (src.meta) homepage; - }; + meta = { + description = "Legacy Num library for arbitrary-precision integer and rational arithmetic"; + license = lib.licenses.lgpl21; + inherit (ocaml.meta) platforms; + inherit (src.meta) homepage; + }; } diff --git a/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix b/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix index ae06978dacd..be217812834 100644 --- a/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix +++ b/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix @@ -5,26 +5,26 @@ then throw "ocp-ocamlres is not available for OCaml ${ocaml.version}" else stdenv.mkDerivation rec { - name = "ocaml${ocaml.version}-ocp-ocamlres-${version}"; - version = "0.4"; - src = fetchFromGitHub { - owner = "OCamlPro"; - repo = "ocp-ocamlres"; - rev = "v${version}"; - sha256 = "0smfwrj8qhzknhzawygxi0vgl2af4vyi652fkma59rzjpvscqrnn"; - }; + name = "ocaml${ocaml.version}-ocp-ocamlres-${version}"; + version = "0.4"; + src = fetchFromGitHub { + owner = "OCamlPro"; + repo = "ocp-ocamlres"; + rev = "v${version}"; + sha256 = "0smfwrj8qhzknhzawygxi0vgl2af4vyi652fkma59rzjpvscqrnn"; + }; - buildInputs = [ ocaml findlib astring pprint ]; - createFindlibDestdir = true; + buildInputs = [ ocaml findlib astring pprint ]; + createFindlibDestdir = true; - installFlags = [ "BINDIR=$(out)/bin" ]; - preInstall = "mkdir -p $out/bin"; + installFlags = [ "BINDIR=$(out)/bin" ]; + preInstall = "mkdir -p $out/bin"; - meta = { - description = "A simple tool and library to embed files and directories inside OCaml executables"; - license = lib.licenses.lgpl3Plus; - homepage = "https://www.typerex.org/ocp-ocamlres.html"; - maintainers = [ lib.maintainers.vbgl ]; - inherit (ocaml.meta) platforms; - }; + meta = { + description = "A simple tool and library to embed files and directories inside OCaml executables"; + license = lib.licenses.lgpl3Plus; + homepage = "https://www.typerex.org/ocp-ocamlres.html"; + maintainers = [ lib.maintainers.vbgl ]; + inherit (ocaml.meta) platforms; + }; } diff --git a/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix b/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix index 6a3de6292d8..75554d25bf2 100644 --- a/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix +++ b/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix @@ -1,22 +1,22 @@ { lib, buildDunePackage, fetchFromGitHub, uri }: buildDunePackage rec { - pname = "ocplib-json-typed"; - version = "0.7.1"; - useDune2 = true; - src = fetchFromGitHub { - owner = "OCamlPro"; - repo = "ocplib-json-typed"; - rev = "v${version}"; - sha256 = "1gv0vqqy9lh7isaqg54b3lam2sh7nfjjazi6x7zn6bh5f77g1p5q"; - }; + pname = "ocplib-json-typed"; + version = "0.7.1"; + useDune2 = true; + src = fetchFromGitHub { + owner = "OCamlPro"; + repo = "ocplib-json-typed"; + rev = "v${version}"; + sha256 = "1gv0vqqy9lh7isaqg54b3lam2sh7nfjjazi6x7zn6bh5f77g1p5q"; + }; - propagatedBuildInputs = [ uri ]; + propagatedBuildInputs = [ uri ]; - meta = { - description = "A collection of type-aware JSON utilities for OCaml"; - license = lib.licenses.lgpl21; - maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; - }; + meta = { + description = "A collection of type-aware JSON utilities for OCaml"; + license = lib.licenses.lgpl21; + maintainers = [ lib.maintainers.vbgl ]; + inherit (src.meta) homepage; + }; } diff --git a/pkgs/development/ocaml-modules/octavius/default.nix b/pkgs/development/ocaml-modules/octavius/default.nix index 01161214a4f..c71c8f35f4b 100644 --- a/pkgs/development/ocaml-modules/octavius/default.nix +++ b/pkgs/development/ocaml-modules/octavius/default.nix @@ -4,21 +4,21 @@ if !lib.versionAtLeast ocaml.version "4.03" then throw "octavius is not available for OCaml ${ocaml.version}" else stdenv.mkDerivation { - name = "ocaml${ocaml.version}-octavius-0.2.0"; - src = fetchurl { - url = "https://github.com/ocaml-doc/octavius/releases/download/v0.2.0/octavius-0.2.0.tbz"; - sha256 = "02milzzlr4xk5aymg2fjz27f528d5pyscqvld3q0dm41zcpkz5ml"; - }; + name = "ocaml${ocaml.version}-octavius-0.2.0"; + src = fetchurl { + url = "https://github.com/ocaml-doc/octavius/releases/download/v0.2.0/octavius-0.2.0.tbz"; + sha256 = "02milzzlr4xk5aymg2fjz27f528d5pyscqvld3q0dm41zcpkz5ml"; + }; - buildInputs = [ ocaml findlib ocamlbuild topkg ]; + buildInputs = [ ocaml findlib ocamlbuild topkg ]; - inherit (topkg) buildPhase installPhase; + inherit (topkg) buildPhase installPhase; - meta = { - description = "Ocamldoc comment syntax parser"; - homepage = "https://github.com/ocaml-doc/octavius"; - license = lib.licenses.isc; - maintainers = [ lib.maintainers.vbgl ]; - inherit (ocaml.meta) platforms; - }; + meta = { + description = "Ocamldoc comment syntax parser"; + homepage = "https://github.com/ocaml-doc/octavius"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + inherit (ocaml.meta) platforms; + }; } diff --git a/pkgs/development/ocaml-modules/opium/default.nix b/pkgs/development/ocaml-modules/opium/default.nix index 2681cc609d0..5db3d1b4a24 100644 --- a/pkgs/development/ocaml-modules/opium/default.nix +++ b/pkgs/development/ocaml-modules/opium/default.nix @@ -14,19 +14,19 @@ }: buildDunePackage { - pname = "opium"; - inherit (opium_kernel) version src meta minimumOCamlVersion; + pname = "opium"; + inherit (opium_kernel) version src meta minimumOCamlVersion; useDune2 = true; doCheck = true; - buildInputs = [ + buildInputs = [ ppx_sexp_conv ppx_fields_conv alcotest ]; - propagatedBuildInputs = [ + propagatedBuildInputs = [ opium_kernel cmdliner cohttp-lwt-unix magic-mime logs stringext ]; } diff --git a/pkgs/development/ocaml-modules/ppx_derivers/default.nix b/pkgs/development/ocaml-modules/ppx_derivers/default.nix index a10a6172605..3d4675ed90b 100644 --- a/pkgs/development/ocaml-modules/ppx_derivers/default.nix +++ b/pkgs/development/ocaml-modules/ppx_derivers/default.nix @@ -1,22 +1,22 @@ { lib, fetchFromGitHub, buildDunePackage }: buildDunePackage rec { - pname = "ppx_derivers"; - version = "1.2.1"; + pname = "ppx_derivers"; + version = "1.2.1"; minimumOCamlVersion = "4.02"; - src = fetchFromGitHub { - owner = "diml"; - repo = pname; - rev = version; - sha256 = "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn"; - }; + src = fetchFromGitHub { + owner = "diml"; + repo = pname; + rev = version; + sha256 = "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn"; + }; - meta = { - description = "Shared [@@deriving] plugin registry"; - license = lib.licenses.bsd3; - maintainers = [ lib.maintainers.vbgl ]; - inherit (src.meta) homepage; - }; + meta = { + description = "Shared [@@deriving] plugin registry"; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.vbgl ]; + inherit (src.meta) homepage; + }; } diff --git a/pkgs/development/ocaml-modules/ppxfind/default.nix b/pkgs/development/ocaml-modules/ppxfind/default.nix index 1008dfe62a9..4e135c1b115 100644 --- a/pkgs/development/ocaml-modules/ppxfind/default.nix +++ b/pkgs/development/ocaml-modules/ppxfind/default.nix @@ -1,27 +1,27 @@ { stdenv, lib, buildDunePackage, fetchurl, ocaml, ocaml-migrate-parsetree }: buildDunePackage (rec { - pname = "ppxfind"; - version = "1.4"; - src = fetchurl { - url = "https://github.com/diml/ppxfind/releases/download/${version}/ppxfind-${version}.tbz"; - sha256 = "0wa9vcrc26kirc2cqqs6kmarbi8gqy3dgdfiv9y7nzsgy1liqacq"; - }; + pname = "ppxfind"; + version = "1.4"; + src = fetchurl { + url = "https://github.com/diml/ppxfind/releases/download/${version}/ppxfind-${version}.tbz"; + sha256 = "0wa9vcrc26kirc2cqqs6kmarbi8gqy3dgdfiv9y7nzsgy1liqacq"; + }; - minimumOCamlVersion = "4.03"; - useDune2 = true; + minimumOCamlVersion = "4.03"; + useDune2 = true; - buildInputs = [ ocaml-migrate-parsetree ]; + buildInputs = [ ocaml-migrate-parsetree ]; # Don't run the native `strip' when cross-compiling. dontStrip = stdenv.hostPlatform != stdenv.buildPlatform; - meta = { - homepage = "https://github.com/diml/ppxfind"; - description = "ocamlfind ppx tool"; - license = lib.licenses.bsd3; - maintainers = [ lib.maintainers.vbgl ]; - }; + meta = { + homepage = "https://github.com/diml/ppxfind"; + description = "ocamlfind ppx tool"; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.vbgl ]; + }; } // ( if lib.versions.majorMinor ocaml.version == "4.04" then { dontStrip = true; diff --git a/pkgs/development/ocaml-modules/rresult/default.nix b/pkgs/development/ocaml-modules/rresult/default.nix index ac38657f776..04631cc3b4b 100644 --- a/pkgs/development/ocaml-modules/rresult/default.nix +++ b/pkgs/development/ocaml-modules/rresult/default.nix @@ -1,24 +1,24 @@ { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }: stdenv.mkDerivation rec { - name = "ocaml${ocaml.version}-rresult-${version}"; - version = "0.6.0"; - src = fetchurl { - url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz"; - sha256 = "1k69a3gvrk7f2cshwjzvk7818f0bwxhacgd14wxy6d4gmrggci86"; - }; + name = "ocaml${ocaml.version}-rresult-${version}"; + version = "0.6.0"; + src = fetchurl { + url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz"; + sha256 = "1k69a3gvrk7f2cshwjzvk7818f0bwxhacgd14wxy6d4gmrggci86"; + }; - buildInputs = [ ocaml findlib ocamlbuild topkg ]; + buildInputs = [ ocaml findlib ocamlbuild topkg ]; propagatedBuildInputs = [ result ]; - inherit (topkg) buildPhase installPhase; + inherit (topkg) buildPhase installPhase; - meta = { - license = lib.licenses.isc; - homepage = "https://erratique.ch/software/rresult"; - description = "Result value combinators for OCaml"; - maintainers = [ lib.maintainers.vbgl ]; - inherit (ocaml.meta) platforms; - }; + meta = { + license = lib.licenses.isc; + homepage = "https://erratique.ch/software/rresult"; + description = "Result value combinators for OCaml"; + maintainers = [ lib.maintainers.vbgl ]; + inherit (ocaml.meta) platforms; + }; } diff --git a/pkgs/development/ocaml-modules/webbrowser/default.nix b/pkgs/development/ocaml-modules/webbrowser/default.nix index 896b6e49ac0..ebc5472ce53 100644 --- a/pkgs/development/ocaml-modules/webbrowser/default.nix +++ b/pkgs/development/ocaml-modules/webbrowser/default.nix @@ -3,24 +3,24 @@ }: stdenv.mkDerivation rec { - name = "ocaml${ocaml.version}-webbrowser-${version}"; - version = "0.6.1"; - src = fetchurl { - url = "https://erratique.ch/software/webbrowser/releases/webbrowser-${version}.tbz"; - sha256 = "137a948bx7b71zfv4za3hhznrn5lzbbrgzjy0das83zms508isx3"; - }; + name = "ocaml${ocaml.version}-webbrowser-${version}"; + version = "0.6.1"; + src = fetchurl { + url = "https://erratique.ch/software/webbrowser/releases/webbrowser-${version}.tbz"; + sha256 = "137a948bx7b71zfv4za3hhznrn5lzbbrgzjy0das83zms508isx3"; + }; - nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; - buildInputs = []; - propagatedBuildInputs = [ astring bos cmdliner rresult ]; + nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; + buildInputs = []; + propagatedBuildInputs = [ astring bos cmdliner rresult ]; - inherit (topkg) buildPhase installPhase; + inherit (topkg) buildPhase installPhase; - meta = { - description = "Open and reload URIs in browsers from OCaml"; - homepage = "https://erratique.ch/software/webbrowser"; - license = lib.licenses.isc; - maintainers = [ lib.maintainers.vbgl ]; - inherit (ocaml.meta) platforms; - }; + meta = { + description = "Open and reload URIs in browsers from OCaml"; + homepage = "https://erratique.ch/software/webbrowser"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + inherit (ocaml.meta) platforms; + }; } From f2b818cfe038702ff8fe6e2d8d9354ac6475e243 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Thu, 21 Jan 2021 00:55:02 +0000 Subject: [PATCH 14/38] php73Extensions.yaml: 2.2.0 -> 2.2.1 --- pkgs/development/php-packages/yaml/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/php-packages/yaml/default.nix b/pkgs/development/php-packages/yaml/default.nix index edb1b97df24..40e5a859f9e 100644 --- a/pkgs/development/php-packages/yaml/default.nix +++ b/pkgs/development/php-packages/yaml/default.nix @@ -3,8 +3,8 @@ buildPecl { pname = "yaml"; - version = "2.2.0"; - sha256 = "1d65cf5vnr7brhxmy1pi2axjiyvdhmpcnq0qlx5spwlgkv6hnyml"; + version = "2.2.1"; + sha256 = "sha256-4XrQTnUuJf0Jm93S350m3+8YPI0AxBebydei4cl9eBk="; configureFlags = [ "--with-yaml=${pkgs.libyaml}" ]; From 14eb4dd93f8d53180901947543de6d730cc8f01b Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Thu, 21 Jan 2021 01:22:41 +0000 Subject: [PATCH 15/38] php73Packages.php-cs-fixer: 2.17.0 -> 2.18.0 --- pkgs/development/php-packages/php-cs-fixer/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/php-packages/php-cs-fixer/default.nix b/pkgs/development/php-packages/php-cs-fixer/default.nix index 76465a77fd4..1ed33e7bb5e 100644 --- a/pkgs/development/php-packages/php-cs-fixer/default.nix +++ b/pkgs/development/php-packages/php-cs-fixer/default.nix @@ -1,14 +1,14 @@ { mkDerivation, fetchurl, pkgs, lib, php }: let pname = "php-cs-fixer"; - version = "2.17.0"; + version = "2.18.0"; in mkDerivation { inherit pname version; src = fetchurl { url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar"; - sha256 = "163wz5y5ik7g1p7n0v3ckyawqjhg8d18cwx8a5c6fr1fkwb4mb12"; + sha256 = "sha256-euvk/Rs6fZIJVWprzKiTVNPlGOsCN6t58DzvwYh3wDA="; }; phases = [ "installPhase" ]; From 17783d11769a2d93fd16ec0cc558575ebd4aa393 Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Wed, 20 Jan 2021 23:50:25 -0500 Subject: [PATCH 16/38] ell: 0.35 -> 0.36 --- ...t-dbus-pick-up-dbus-daemon-from-PATH.patch | 84 ------------------- pkgs/os-specific/linux/ell/default.nix | 9 +- 2 files changed, 2 insertions(+), 91 deletions(-) delete mode 100644 pkgs/os-specific/linux/ell/0001-unit-test-dbus-pick-up-dbus-daemon-from-PATH.patch diff --git a/pkgs/os-specific/linux/ell/0001-unit-test-dbus-pick-up-dbus-daemon-from-PATH.patch b/pkgs/os-specific/linux/ell/0001-unit-test-dbus-pick-up-dbus-daemon-from-PATH.patch deleted file mode 100644 index c2d844edecd..00000000000 --- a/pkgs/os-specific/linux/ell/0001-unit-test-dbus-pick-up-dbus-daemon-from-PATH.patch +++ /dev/null @@ -1,84 +0,0 @@ -From 55d499f4cd5667c04c21f7201d7f10484e187907 Mon Sep 17 00:00:00 2001 -From: Florian Klink -Date: Sun, 27 Dec 2020 13:03:12 +0100 -Subject: [PATCH] unit/test-dbus: pick up dbus-daemon from $PATH - -This allows running the unit tests in environments where `dbus-daemon` -isn't in /usr/bin, but in $PATH. - -Signed-off-by: Florian Klink ---- - unit/test-dbus-message-fds.c | 4 ++-- - unit/test-dbus-properties.c | 4 ++-- - unit/test-dbus.c | 4 ++-- - 3 files changed, 6 insertions(+), 6 deletions(-) - -diff --git a/unit/test-dbus-message-fds.c b/unit/test-dbus-message-fds.c -index 6f68bae..4b5662e 100644 ---- a/unit/test-dbus-message-fds.c -+++ b/unit/test-dbus-message-fds.c -@@ -51,7 +51,7 @@ static bool start_dbus_daemon(void) - char *prg_envp[1]; - pid_t pid; - -- prg_argv[0] = "/usr/bin/dbus-daemon"; -+ prg_argv[0] = "dbus-daemon"; - prg_argv[1] = "--nopidfile"; - prg_argv[2] = "--nofork"; - prg_argv[3] = "--config-file=" UNITDIR "dbus.conf"; -@@ -68,7 +68,7 @@ static bool start_dbus_daemon(void) - } - - if (pid == 0) { -- execve(prg_argv[0], prg_argv, prg_envp); -+ execvpe(prg_argv[0], prg_argv, prg_envp); - exit(EXIT_SUCCESS); - } - -diff --git a/unit/test-dbus-properties.c b/unit/test-dbus-properties.c -index b435062..049f0f4 100644 ---- a/unit/test-dbus-properties.c -+++ b/unit/test-dbus-properties.c -@@ -49,7 +49,7 @@ static bool start_dbus_daemon(void) - char *prg_envp[1]; - pid_t pid; - -- prg_argv[0] = "/usr/bin/dbus-daemon"; -+ prg_argv[0] = "dbus-daemon"; - prg_argv[1] = "--nopidfile"; - prg_argv[2] = "--nofork"; - prg_argv[3] = "--config-file=" UNITDIR "dbus.conf"; -@@ -66,7 +66,7 @@ static bool start_dbus_daemon(void) - } - - if (pid == 0) { -- execve(prg_argv[0], prg_argv, prg_envp); -+ execvpe(prg_argv[0], prg_argv, prg_envp); - exit(EXIT_SUCCESS); - } - -diff --git a/unit/test-dbus.c b/unit/test-dbus.c -index 67f0a7b..582847e 100644 ---- a/unit/test-dbus.c -+++ b/unit/test-dbus.c -@@ -45,7 +45,7 @@ static void start_dbus_daemon(void) - char *prg_envp[1]; - pid_t pid; - -- prg_argv[0] = "/usr/bin/dbus-daemon"; -+ prg_argv[0] = "dbus-daemon"; - prg_argv[1] = "--nopidfile"; - prg_argv[2] = "--nofork"; - prg_argv[3] = "--config-file=" UNITDIR "dbus.conf"; -@@ -62,7 +62,7 @@ static void start_dbus_daemon(void) - } - - if (pid == 0) { -- execve(prg_argv[0], prg_argv, prg_envp); -+ execvpe(prg_argv[0], prg_argv, prg_envp); - exit(EXIT_SUCCESS); - } - --- -2.29.2 - diff --git a/pkgs/os-specific/linux/ell/default.nix b/pkgs/os-specific/linux/ell/default.nix index 8c15ce825c0..ced77f3fcc9 100644 --- a/pkgs/os-specific/linux/ell/default.nix +++ b/pkgs/os-specific/linux/ell/default.nix @@ -7,21 +7,16 @@ stdenv.mkDerivation rec { pname = "ell"; - version = "0.35"; + version = "0.36"; outputs = [ "out" "dev" ]; src = fetchgit { url = "https://git.kernel.org/pub/scm/libs/${pname}/${pname}.git"; rev = version; - sha256 = "16z7xwlrpx1bsr2y1rgxxxixzwc84cwn2g557iqxhwsxfzy6q3dk"; + sha256 = "0w7v2hihwwmnqd56bsmbjsiw8yyadr7zbdssjamqxx0pyl3dnrda"; }; - patches = [ - # Sent upstream in https://lists.01.org/hyperkitty/list/ell@lists.01.org/thread/SQEZAIS2LZXSXGTXOW3GTAM5ZPXRLTN4/ - ./0001-unit-test-dbus-pick-up-dbus-daemon-from-PATH.patch - ]; - nativeBuildInputs = [ pkg-config autoreconfHook From a98faf18fdf902cd898f7f7725232f9b04c601be Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Wed, 20 Jan 2021 23:50:51 -0500 Subject: [PATCH 17/38] iwd: 1.10 -> 1.11 --- pkgs/os-specific/linux/iwd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/iwd/default.nix b/pkgs/os-specific/linux/iwd/default.nix index f1aa85cdd3f..11886e8e9c6 100644 --- a/pkgs/os-specific/linux/iwd/default.nix +++ b/pkgs/os-specific/linux/iwd/default.nix @@ -13,12 +13,12 @@ stdenv.mkDerivation rec { pname = "iwd"; - version = "1.10"; + version = "1.11"; src = fetchgit { url = "https://git.kernel.org/pub/scm/network/wireless/iwd.git"; rev = version; - sha256 = "0gzpdgfwzlqj2n3amf2zhi2hlpa412878yphgx79y6b5gn1y1lm2"; + sha256 = "0wnyg0f1swi7gvvgf5kzbiz44g2wscf5d5bp320iwyfwnlbqb1bn"; }; outputs = [ "out" "man" ] From 8ceb3532025356ebb39422b7caa6b9ebd4677934 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Thu, 21 Jan 2021 07:16:18 +0000 Subject: [PATCH 18/38] python37Packages.mergedeep: 1.3.0 -> 1.3.1 --- pkgs/development/python-modules/mergedeep/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mergedeep/default.nix b/pkgs/development/python-modules/mergedeep/default.nix index 13aadbc9952..bcbca347548 100644 --- a/pkgs/development/python-modules/mergedeep/default.nix +++ b/pkgs/development/python-modules/mergedeep/default.nix @@ -2,7 +2,7 @@ buildPythonPackage rec { pname = "mergedeep"; - version = "1.3.0"; + version = "1.3.1"; disabled = isPy27; # PyPI tarball doesn't include tests directory @@ -10,7 +10,7 @@ buildPythonPackage rec { owner = "clarketm"; repo = "mergedeep"; rev = "v${version}"; - sha256 = "1a0y26a04limiggjwqyyqpryxiylbqya74nq1bij75zhz42sa02b"; + sha256 = "1ryccb64hg438y1wsjlfp4ciq05q4c6khwhllwdnndm8cbkbrgph"; }; checkInputs = [ pytest ]; From c5ddb07e28eeadaf9469d114d0e04265ae9b9b37 Mon Sep 17 00:00:00 2001 From: Antonio Nuno Monteiro Date: Wed, 20 Jan 2021 23:25:33 -0800 Subject: [PATCH 19/38] =?UTF-8?q?ocamlPackages.ppx=5Ftools:=206.2=20?= =?UTF-8?q?=E2=86=92=206.3=20(add=204.12=20support)=20(#110009)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ocaml-modules/ppx_tools/default.nix | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pkgs/development/ocaml-modules/ppx_tools/default.nix b/pkgs/development/ocaml-modules/ppx_tools/default.nix index 94d7eb714dd..3e06af881c5 100644 --- a/pkgs/development/ocaml-modules/ppx_tools/default.nix +++ b/pkgs/development/ocaml-modules/ppx_tools/default.nix @@ -1,9 +1,11 @@ -{ lib, stdenv, fetchFromGitHub, buildDunePackage, ocaml, findlib }: +{ lib, stdenv, fetchFromGitHub, buildDunePackage, ocaml, findlib, cppo }: let param = - let v6_2 = { - version = "6.2"; - sha256 = "0qf4fwnn4hhk52kjw9frv21v23azqnn4mjvwf1hs0nxf7q4kacb5"; + let v6_3 = { + version = "6.3"; + sha256 = "1skf4njvkifwx0qlsrc0jn891gvvcp5ryd6kkpx56hck7nnxv8x6"; + useDune2 = lib.versionAtLeast ocaml.version "4.12"; + buildInputs = [cppo]; }; in { "4.02" = { @@ -25,10 +27,11 @@ let param = "4.07" = { version = "5.1+4.06.0"; sha256 = "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"; }; - "4.08" = v6_2; - "4.09" = v6_2; - "4.10" = v6_2; - "4.11" = v6_2; + "4.08" = v6_3; + "4.09" = v6_3; + "4.10" = v6_3; + "4.11" = v6_3; + "4.12" = v6_3; }.${ocaml.meta.branch}; in @@ -50,7 +53,7 @@ if lib.versionAtLeast param.version "6.0" then buildDunePackage { inherit pname src meta; - inherit (param) version; + inherit (param) version useDune2 buildInputs; } else stdenv.mkDerivation { From c3f5fb04db9412bcc673608ca8814e8ca564e490 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Thu, 21 Jan 2021 04:34:49 +0000 Subject: [PATCH 20/38] python37Packages.elementpath: 2.1.0 -> 2.1.1 --- pkgs/development/python-modules/elementpath/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/elementpath/default.nix b/pkgs/development/python-modules/elementpath/default.nix index 27040526312..bbab0bfe6e4 100644 --- a/pkgs/development/python-modules/elementpath/default.nix +++ b/pkgs/development/python-modules/elementpath/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, fetchFromGitHub, isPy27 }: buildPythonPackage rec { - version = "2.1.0"; + version = "2.1.1"; pname = "elementpath"; disabled = isPy27; # uses incompatible class syntax @@ -9,7 +9,7 @@ buildPythonPackage rec { owner = "sissaschool"; repo = "elementpath"; rev = "v${version}"; - sha256 = "17a0gcwmv87kikirgkgr305f5c7wz34hf7djssx4xbk9lfq9m2lg"; + sha256 = "1h910v8f0648nqnk40bxgdim3623m07yg4xdfwcips2h55d19rk2"; }; # avoid circular dependency with xmlschema which directly depends on this From ebc9b86f80001d537d1fcf21c30131501716ce77 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Thu, 21 Jan 2021 05:19:48 +0000 Subject: [PATCH 21/38] python37Packages.django_treebeard: 4.3.1 -> 4.4 --- pkgs/development/python-modules/django_treebeard/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/django_treebeard/default.nix b/pkgs/development/python-modules/django_treebeard/default.nix index fd8789d1fb8..e734a5f7ae8 100644 --- a/pkgs/development/python-modules/django_treebeard/default.nix +++ b/pkgs/development/python-modules/django_treebeard/default.nix @@ -7,11 +7,11 @@ buildPythonPackage rec { pname = "django-treebeard"; - version = "4.3.1"; + version = "4.4"; src = fetchPypi { inherit pname version; - sha256 = "83aebc34a9f06de7daaec330d858d1c47887e81be3da77e3541fe7368196dd8a"; + sha256 = "f50e4eea146f7af6702decf7ef198ac1eee1fb9bb4af2c5dba276c3c48f76623"; }; buildInputs = [ pytest ]; From b389b777e1a3980e573aeeb46135a91cb954705b Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Thu, 21 Jan 2021 04:20:20 +0000 Subject: [PATCH 22/38] python37Packages.cliff: 3.5.0 -> 3.6.0 --- pkgs/development/python-modules/cliff/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/cliff/default.nix b/pkgs/development/python-modules/cliff/default.nix index 1c551bfb0d9..33a129d287e 100644 --- a/pkgs/development/python-modules/cliff/default.nix +++ b/pkgs/development/python-modules/cliff/default.nix @@ -16,11 +16,11 @@ buildPythonPackage rec { pname = "cliff"; - version = "3.5.0"; + version = "3.6.0"; src = fetchPypi { inherit pname version; - sha256 = "5bfb684b5fcdff0afaaccd1298a376c0e62e644c46b7e9abc034595b41fe1759"; + sha256 = "a3f4fa67eeafbcfa7cf9fe4b1755d410876528e1d0d115740db00b50a1250272"; }; propagatedBuildInputs = [ From 30ab92ea31f6b7e9095b1e7e4b56a5000823efdf Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 21 Jan 2021 08:16:03 +1000 Subject: [PATCH 23/38] conmon: 2.0.24 -> 2.0.25 https://github.com/containers/conmon/releases/tag/v2.0.25 --- pkgs/applications/virtualization/conmon/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/virtualization/conmon/default.nix b/pkgs/applications/virtualization/conmon/default.nix index 6afcfcff8c1..cef69cb0c6c 100644 --- a/pkgs/applications/virtualization/conmon/default.nix +++ b/pkgs/applications/virtualization/conmon/default.nix @@ -1,4 +1,5 @@ -{ lib, stdenv +{ lib +, stdenv , fetchFromGitHub , pkg-config , glib @@ -9,13 +10,13 @@ stdenv.mkDerivation rec { pname = "conmon"; - version = "2.0.24"; + version = "2.0.25"; src = fetchFromGitHub { owner = "containers"; repo = pname; rev = "v${version}"; - sha256 = "1z6z1bz2rgj15xbqx10kvwn8s64nx5hmn1x52k4z4r20p4f95hkg"; + sha256 = "sha256-u22irZ9AC1W2AVJ1OD1gLzTH4NOgRkZekZ78rNKXnps="; }; nativeBuildInputs = [ pkg-config ]; From 88e9df7b8d51b88d28093821a1d8d148cb309dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 21 Jan 2021 10:32:37 +0100 Subject: [PATCH 24/38] libiscsi: work around i686-linux build problems --- pkgs/development/libraries/libiscsi/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/libiscsi/default.nix b/pkgs/development/libraries/libiscsi/default.nix index 2f7e3c410dd..246696c94eb 100644 --- a/pkgs/development/libraries/libiscsi/default.nix +++ b/pkgs/development/libraries/libiscsi/default.nix @@ -13,6 +13,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook ]; + # This problem is gone on libiscsi master. + NIX_CFLAGS_COMPILE = if stdenv.hostPlatform.is32bit then "-Wno-error=sign-compare" else null; + meta = with stdenv.lib; { description = "iscsi client library and utilities"; homepage = "https://github.com/sahlberg/libiscsi"; From 7d3c52356fd063ae1efb91ff6282054410ed88c3 Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Thu, 21 Jan 2021 04:56:01 -0500 Subject: [PATCH 25/38] broot: 1.1.10 -> 1.2.0 --- pkgs/tools/misc/broot/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/broot/default.nix b/pkgs/tools/misc/broot/default.nix index bdb1fe37586..a3299b42744 100644 --- a/pkgs/tools/misc/broot/default.nix +++ b/pkgs/tools/misc/broot/default.nix @@ -11,14 +11,14 @@ rustPlatform.buildRustPackage rec { pname = "broot"; - version = "1.1.10"; + version = "1.2.0"; src = fetchCrate { inherit pname version; - sha256 = "04nidx43w4nnccgbrw30wg9ai8p7hbklxpn1gc6gr2325yhqvwhl"; + sha256 = "1mqaynrqaas82f5957lx31x80v74zwmwmjxxlbywajb61vh00d38"; }; - cargoHash = "sha256-4F9HIQ1BQx4EikyH0DwlDAkYIeUJJbMsj7ZX23QD+K8="; + cargoHash = "sha256-ffFS1myFjoQ6768D4zUytN6F9paWeJJFPFugCrfh4iU="; nativeBuildInputs = [ makeWrapper From 4c7ffbccf063b8d872372807bc7e0369f3ece0d3 Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Thu, 21 Jan 2021 11:07:03 +0100 Subject: [PATCH 26/38] gitlab-runner: 13.7.0 -> 13.8.0 (#110280) --- .../continuous-integration/gitlab-runner/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix b/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix index 3d127591bd0..20cb953edea 100644 --- a/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix +++ b/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix @@ -1,16 +1,16 @@ { lib, buildGoPackage, fetchFromGitLab, fetchurl }: let - version = "13.7.0"; + version = "13.8.0"; # Gitlab runner embeds some docker images these are prebuilt for arm and x86_64 docker_x86_64 = fetchurl { url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-x86_64.tar.xz"; - sha256 = "0hbzvw6bdy31yqnri7379gpm8n5nv6ayr1idg02c9zqgcsgm34jf"; + sha256 = "15pf6mxma8gkzyxkzm1rjwa514p7gzabn3c474lcvsjpmp76wv68"; }; docker_arm = fetchurl { url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-arm.tar.xz"; - sha256 = "036drxlkmm35mdl0f5k79hnmwvf8gadgsxx71jprn1fjjzk3cxmz"; + sha256 = "1c4lpy7nc62rqk8bfwiy5pcgvcwx70qkz3lv9w512fr3n5hjd4c0"; }; in buildGoPackage rec { @@ -30,7 +30,7 @@ buildGoPackage rec { owner = "gitlab-org"; repo = "gitlab-runner"; rev = "v${version}"; - sha256 = "0v2wcalvs7gsbi33jm35k01cqv2iqz3k3yfjjw08dssg358d0vfp"; + sha256 = "0v0iqpllzaabkahlc5pidzzw0bjlli984pdna3f3bbg67lm5a421"; }; patches = [ ./fix-shell-path.patch ]; From 9212e03c1334f2d5edfed7851e8cbc291ff10b26 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 12 Jan 2021 20:47:36 +0100 Subject: [PATCH 27/38] acgtk: use dune install --- pkgs/applications/science/logic/acgtk/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/logic/acgtk/default.nix b/pkgs/applications/science/logic/acgtk/default.nix index 48563248773..13364beed5c 100644 --- a/pkgs/applications/science/logic/acgtk/default.nix +++ b/pkgs/applications/science/logic/acgtk/default.nix @@ -16,7 +16,9 @@ stdenv.mkDerivation { buildPhase = "dune build"; - inherit (dune) installPhase; + installPhase = '' + dune install --prefix $out --libdir $OCAMLFIND_DESTDIR + ''; meta = with lib; { homepage = "https://acg.loria.fr/"; From 46cd648a970365a424bc0936102aba432a3e4915 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 12 Jan 2021 20:48:25 +0100 Subject: [PATCH 28/38] ocamlPackages.lua-ml: install using opaline instead of inheriting from dune --- pkgs/development/ocaml-modules/lua-ml/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/lua-ml/default.nix b/pkgs/development/ocaml-modules/lua-ml/default.nix index ae16b285654..8a4f58ccbbd 100644 --- a/pkgs/development/ocaml-modules/lua-ml/default.nix +++ b/pkgs/development/ocaml-modules/lua-ml/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, dune }: +{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, opaline }: if !lib.versionAtLeast ocaml.version "4.07" then throw "lua-ml is not available for OCaml ${ocaml.version}" @@ -16,11 +16,14 @@ stdenv.mkDerivation rec { sha256 = "04lv98nxmzanvyn4c0k6k0ax29f5xfdl8qzpf5hwadslq213a044"; }; + nativeBuildInputs = [ opaline ]; buildInputs = [ ocaml findlib ocamlbuild ]; buildFlags = [ "lib" ]; - inherit (dune) installPhase; + installPhase = '' + opaline -prefix $out -libdir $OCAMLFIND_DESTDIR + ''; meta = { description = "An embeddable Lua 2.5 interpreter implemented in OCaml"; From 972571d8b178baef64c6b68e20dd97dd0fc5a5c7 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 12 Jan 2021 20:48:57 +0100 Subject: [PATCH 29/38] ocamlPackages.rope: use dune install --- pkgs/development/ocaml-modules/rope/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/rope/default.nix b/pkgs/development/ocaml-modules/rope/default.nix index 84e042bf7d2..481342e98c7 100644 --- a/pkgs/development/ocaml-modules/rope/default.nix +++ b/pkgs/development/ocaml-modules/rope/default.nix @@ -9,7 +9,9 @@ let param = buildInputs = [ dune ]; extra = { buildPhase = "dune build -p rope"; - inherit (dune) installPhase; + installPhase = '' + dune install --prefix $out --libdir $OCAMLFIND_DESTDIR rope + ''; }; } else { version = "0.5"; From 223474d8acd83d833997414318503eb941b11e57 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 12 Jan 2021 20:37:25 +0100 Subject: [PATCH 30/38] ocamlPackages.yojson: use dune install in installPhase --- pkgs/development/ocaml-modules/yojson/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/yojson/default.nix b/pkgs/development/ocaml-modules/yojson/default.nix index 61d931a66cc..c9bf285b7bd 100644 --- a/pkgs/development/ocaml-modules/yojson/default.nix +++ b/pkgs/development/ocaml-modules/yojson/default.nix @@ -7,7 +7,11 @@ let url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz"; sha256 = "08llz96if8bcgnaishf18si76cv11zbkni0aldb54k3cn7ipiqvd"; nativeBuildInputs = [ dune ]; - extra = { inherit (dune) installPhase; }; + extra = { + installPhase = '' + dune install --prefix $out --libdir $OCAMLFIND_DESTDIR ${pname} + ''; + }; } else rec { version = "1.2.3"; url = "https://github.com/ocaml-community/yojson/archive/v${version}.tar.gz"; From f3704de6497e269f2de2e99b3b9eaadbd6630c22 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Fri, 8 Jan 2021 17:25:54 +0100 Subject: [PATCH 31/38] dune: let dune install itself --- pkgs/development/tools/ocaml/dune/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/ocaml/dune/default.nix b/pkgs/development/tools/ocaml/dune/default.nix index ef0f5c4fabd..031cbcca21d 100644 --- a/pkgs/development/tools/ocaml/dune/default.nix +++ b/pkgs/development/tools/ocaml/dune/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, ocaml, findlib, opaline }: +{ stdenv, fetchurl, ocaml, findlib }: if !stdenv.lib.versionAtLeast ocaml.version "4.02" then throw "dune is not available for OCaml ${ocaml.version}" @@ -15,15 +15,13 @@ stdenv.mkDerivation rec { buildInputs = [ ocaml findlib ]; buildFlags = [ "release" ]; + makeFlags = [ + "PREFIX=${placeholder "out"}" + "LIBDIR=$(OCAMLFIND_DESTDIR)" + ]; dontAddPrefix = true; - installPhase = '' - runHook preInstall - ${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR - runHook postInstall - ''; - meta = { homepage = "https://dune.build/"; description = "A composable build system"; From 095ef20a24f49a3198fb4d54debff3f389e4b1be Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 12 Jan 2021 20:05:53 +0100 Subject: [PATCH 32/38] =?UTF-8?q?dune:=20stdenv.lib=20=E2=86=92=20lib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reference #108938. --- pkgs/development/tools/ocaml/dune/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/ocaml/dune/default.nix b/pkgs/development/tools/ocaml/dune/default.nix index 031cbcca21d..bbdbc45270d 100644 --- a/pkgs/development/tools/ocaml/dune/default.nix +++ b/pkgs/development/tools/ocaml/dune/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchurl, ocaml, findlib }: +{ stdenv, lib, fetchurl, ocaml, findlib }: -if !stdenv.lib.versionAtLeast ocaml.version "4.02" +if !lib.versionAtLeast ocaml.version "4.02" then throw "dune is not available for OCaml ${ocaml.version}" else @@ -22,11 +22,11 @@ stdenv.mkDerivation rec { dontAddPrefix = true; - meta = { + meta = with lib; { homepage = "https://dune.build/"; description = "A composable build system"; - maintainers = [ stdenv.lib.maintainers.vbgl stdenv.lib.maintainers.marsam ]; - license = stdenv.lib.licenses.mit; + maintainers = [ maintainers.vbgl maintainers.marsam ]; + license = licenses.mit; inherit (ocaml.meta) platforms; }; } From 92eb18f45d97f4d02a4dd399759635c11603ee43 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Thu, 21 Jan 2021 10:32:18 +0000 Subject: [PATCH 33/38] aws-sdk-cpp: fix cross compilation, configure for curl with http2 --- pkgs/development/libraries/aws-sdk-cpp/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/aws-sdk-cpp/default.nix b/pkgs/development/libraries/aws-sdk-cpp/default.nix index ffe15652a3d..215fbeb7071 100644 --- a/pkgs/development/libraries/aws-sdk-cpp/default.nix +++ b/pkgs/development/libraries/aws-sdk-cpp/default.nix @@ -38,7 +38,8 @@ stdenv.mkDerivation rec { ] ++ lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0" ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "-DENABLE_TESTING=OFF" - "-DCURL_HAS_H2=0" + "-DCURL_HAS_H2=1" + "-DCURL_HAS_TLS_PROXY=1" ] ++ lib.optional (apis != ["*"]) "-DBUILD_ONLY=${lib.concatStringsSep ";" apis}"; From af0415418e1fc50b13ce6875371ba68220e8caf3 Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Thu, 21 Jan 2021 05:49:15 -0500 Subject: [PATCH 34/38] signify: 25 -> 30 --- pkgs/tools/security/signify/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/signify/default.nix b/pkgs/tools/security/signify/default.nix index c83a6f157c8..fb3df51167b 100644 --- a/pkgs/tools/security/signify/default.nix +++ b/pkgs/tools/security/signify/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "signify"; - version = "25"; + version = "30"; src = fetchFromGitHub { owner = "aperezdc"; repo = "signify"; rev = "v${version}"; - sha256 = "0zg0rffxwj2a71s1bllhrn491xsmirg9sshpq8f3vl25lv4c2cnq"; + sha256 = "02xh6x6rszkvk3rf6zai7n3ivchmw0d8mwllpinjxc7k6sd415c3"; }; doCheck = true; From f5de4608de5f7aaa5eb57ce22fa5383203234632 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Thu, 21 Jan 2021 11:52:41 +0100 Subject: [PATCH 35/38] chromiumDev: 89.0.4385.0 -> 89.0.4389.9 --- .../networking/browsers/chromium/upstream-info.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/upstream-info.json b/pkgs/applications/networking/browsers/chromium/upstream-info.json index 75653d312b4..b095353c632 100644 --- a/pkgs/applications/networking/browsers/chromium/upstream-info.json +++ b/pkgs/applications/networking/browsers/chromium/upstream-info.json @@ -31,15 +31,15 @@ } }, "dev": { - "version": "89.0.4385.0", - "sha256": "0cwfwkaidxi86n80kcn3lxrwz90zp6ra9dib1nd4xnhpgl7vjjjf", - "sha256bin64": "1hvrdvmlqc95qb9gn7iihal4h1kzf6jqrhk9xvv45chsvwl79pmd", + "version": "89.0.4389.9", + "sha256": "12jiy5p1cbrs0gc3kd86walcnh038lzs5gnb9vif45f7kxn3c9pm", + "sha256bin64": "1wmidvf5gfm1xkpaj07gsvyk1r8b6jbcv46w5vclydlc1r6wh81s", "deps": { "gn": { - "version": "2020-12-22", + "version": "2021-01-07", "url": "https://gn.googlesource.com/gn", - "rev": "0d67e272bdb8145f87d238bc0b2cb8bf80ccec90", - "sha256": "07mrfl9hbjldbgidwwhr482a0s0ppqzwa5j7v5nbqxj18j55iril" + "rev": "595e3be7c8381d4eeefce62a63ec12bae9ce5140", + "sha256": "08y7cjlgjdbzja5ij31wxc9i191845m01v1hc7y176svk9y0hj1d" } } }, From 20cc2647780ff87b213bc1d85988827b33ea7a42 Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Thu, 21 Jan 2021 11:06:56 +0000 Subject: [PATCH 36/38] open-policy-agent: 0.25.2 -> 0.26.0 --- pkgs/development/tools/open-policy-agent/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/open-policy-agent/default.nix b/pkgs/development/tools/open-policy-agent/default.nix index 98e966cbf53..96cae21a5b7 100644 --- a/pkgs/development/tools/open-policy-agent/default.nix +++ b/pkgs/development/tools/open-policy-agent/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "open-policy-agent"; - version = "0.25.2"; + version = "0.26.0"; src = fetchFromGitHub { owner = "open-policy-agent"; repo = "opa"; rev = "v${version}"; - sha256 = "0y4jd1dpq7cy9nfacpf5jbh705gmky44j78q32kq5v566lzrsvvp"; + sha256 = "sha256-bkWfRmcUPNYeUucrbh9xAqmLg7RxEEQGa2DQdN2S6Po="; }; vendorSha256 = null; From 19dcf599feb32e6945e9dcef85805dd0f1433ebd Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Thu, 21 Jan 2021 06:11:51 -0500 Subject: [PATCH 37/38] compsize: 1.3 -> 1.4 --- pkgs/os-specific/linux/compsize/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/compsize/default.nix b/pkgs/os-specific/linux/compsize/default.nix index e1979997d11..b1c6f5a8f95 100644 --- a/pkgs/os-specific/linux/compsize/default.nix +++ b/pkgs/os-specific/linux/compsize/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "compsize"; - version = "1.3"; + version = "1.4"; src = fetchFromGitHub { owner = "kilobyte"; - repo = "compsize"; + repo = pname; rev = "v${version}"; - sha256 = "1c69whla844nwis30jxbj00zkpiw3ccndhkmzjii8av5358mjn43"; + sha256 = "0gk2vibfl9fh7biznlbr3dwknrwbm5q5602q95jbjvk185g9z126"; }; buildInputs = [ btrfs-progs ]; From cd9c691abe6a856f187b05c1019de94a74a31bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 21 Jan 2021 12:29:30 +0100 Subject: [PATCH 38/38] pythonPackages.nidaqmx: fix spelling of pythonImportsCheck --- pkgs/development/python-modules/nidaqmx/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/nidaqmx/default.nix b/pkgs/development/python-modules/nidaqmx/default.nix index 937e6c1c91b..9d916cc9324 100644 --- a/pkgs/development/python-modules/nidaqmx/default.nix +++ b/pkgs/development/python-modules/nidaqmx/default.nix @@ -43,7 +43,7 @@ buildPythonPackage rec { # Fixture "x_series_device" called directly. Fixtures are not meant to be called directly doCheck = false; - pythonCheckImports = [ + pythonImportsCheck = [ "nidaqmx.task" ];