Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2021-01-21 12:44:13 +00:00 committed by GitHub
commit 7d80106978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
72 changed files with 659 additions and 650 deletions

View File

@ -186,7 +186,7 @@
The driver has many options (see <xref linkend="ch-options"/>). For The driver has many options (see <xref linkend="ch-options"/>). For
instance, the following disables tap-to-click behavior: instance, the following disables tap-to-click behavior:
<programlisting> <programlisting>
<xref linkend="opt-services.xserver.libinput.tapping"/> = false; <xref linkend="opt-services.xserver.libinput.touchpad.tapping"/> = false;
</programlisting> </programlisting>
Note: the use of <literal>services.xserver.synaptics</literal> is deprecated Note: the use of <literal>services.xserver.synaptics</literal> is deprecated
since NixOS 17.09. since NixOS 17.09.

View File

@ -430,6 +430,17 @@ http://some.json-exporter.host:7979/probe?target=https://example.com/some/json/e
dynamically allocated uid. dynamically allocated uid.
</para> </para>
</listitem> </listitem>
<listitem>
<para>
The libinput module has been updated with the ability to configure mouse and touchpad settings separately.
The options in <literal>services.xserver.libinput</literal> have been renamed to <literal>services.xserver.libinput.touchpad</literal>,
while there is a new <literal>services.xserver.libinput.mouse</literal> for mouse related configuration.
</para>
<para>
Since touchpad options no longer apply to all devices, you may want to replicate your touchpad configuration in
mouse section.
</para>
</listitem>
</itemizedlist> </itemizedlist>
</section> </section>

View File

@ -3,23 +3,18 @@
with lib; with lib;
let cfg = config.services.xserver.libinput; let cfg = config.services.xserver.libinput;
xorgBool = v: if v then "on" else "off"; xorgBool = v: if v then "on" else "off";
in {
options = {
services.xserver.libinput = {
enable = mkEnableOption "libinput";
mkConfigForDevice = deviceType: {
dev = mkOption { dev = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;
default = null; default = null;
example = "/dev/input/event0"; example = "/dev/input/event0";
description = description =
'' ''
Path for touchpad device. Set to null to apply to any Path for ${deviceType} device. Set to null to apply to any
auto-detected touchpad. auto-detected ${deviceType}.
''; '';
}; };
@ -185,14 +180,63 @@ in {
Option "DragLockButtons" "L1 B1 L2 B2" Option "DragLockButtons" "L1 B1 L2 B2"
''; '';
description = '' description = ''
Additional options for libinput touchpad driver. See Additional options for libinput ${deviceType} driver. See
<citerefentry><refentrytitle>libinput</refentrytitle><manvolnum>4</manvolnum></citerefentry> <citerefentry><refentrytitle>libinput</refentrytitle><manvolnum>4</manvolnum></citerefentry>
for available options."; 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.udev.packages = [ pkgs.libinput.out ];
services.xserver.config = services.xserver.inputClassSections = [
'' (mkX11ConfigForDevice "mouse" "Pointer")
# General libinput configuration. (mkX11ConfigForDevice "touchpad" "Touchpad")
# 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
'';
assertions = [ assertions = [
# already present in synaptics.nix # already present in synaptics.nix

View File

@ -1,17 +1,14 @@
{ lib, stdenv, fetchurl, xlibsWrapper, makeWrapper, libXpm { lib, stdenv, fetchurl, xlibsWrapper, makeWrapper, libXpm
, libXmu, libXi, libXp, Xaw3d, fig2dev , libXmu, libXi, libXp, Xaw3d, libXaw, fig2dev
}: }:
let stdenv.mkDerivation rec {
version = "3.2.7a";
in stdenv.mkDerivation {
pname = "xfig"; pname = "xfig";
inherit version; version = "3.2.8";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/mcj/xfig-${version}.tar.xz"; url = "mirror://sourceforge/mcj/xfig-${version}.tar.xz";
sha256 = "096zgp0bqnxhgxbrv2jjylrjz3pr4da0xxznlk2z7ffxr5pri2fa"; sha256 = "1czamqp0xn0j6qjnasa3fjnrzi072v6qknylr6jrs4gwsfw4ybyw";
}; };
postPatch = '' postPatch = ''
@ -30,7 +27,7 @@ in stdenv.mkDerivation {
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ xlibsWrapper libXpm libXmu libXi libXp Xaw3d ]; buildInputs = [ xlibsWrapper libXpm libXmu libXi libXp Xaw3d libXaw ];
meta = with lib; { meta = with lib; {
description = "An interactive drawing tool for X11"; description = "An interactive drawing tool for X11";
@ -38,6 +35,6 @@ in stdenv.mkDerivation {
Note that you need to have the <literal>netpbm</literal> tools Note that you need to have the <literal>netpbm</literal> tools
in your path to export bitmaps. in your path to export bitmaps.
''; '';
inherit (fig2dev.meta) license homepage platforms; inherit (fig2dev.meta) license homepage platforms maintainers;
}; };
} }

View File

@ -31,15 +31,15 @@
} }
}, },
"dev": { "dev": {
"version": "89.0.4385.0", "version": "89.0.4389.9",
"sha256": "0cwfwkaidxi86n80kcn3lxrwz90zp6ra9dib1nd4xnhpgl7vjjjf", "sha256": "12jiy5p1cbrs0gc3kd86walcnh038lzs5gnb9vif45f7kxn3c9pm",
"sha256bin64": "1hvrdvmlqc95qb9gn7iihal4h1kzf6jqrhk9xvv45chsvwl79pmd", "sha256bin64": "1wmidvf5gfm1xkpaj07gsvyk1r8b6jbcv46w5vclydlc1r6wh81s",
"deps": { "deps": {
"gn": { "gn": {
"version": "2020-12-22", "version": "2021-01-07",
"url": "https://gn.googlesource.com/gn", "url": "https://gn.googlesource.com/gn",
"rev": "0d67e272bdb8145f87d238bc0b2cb8bf80ccec90", "rev": "595e3be7c8381d4eeefce62a63ec12bae9ce5140",
"sha256": "07mrfl9hbjldbgidwwhr482a0s0ppqzwa5j7v5nbqxj18j55iril" "sha256": "08y7cjlgjdbzja5ij31wxc9i191845m01v1hc7y176svk9y0hj1d"
} }
} }
}, },

View File

@ -12,7 +12,7 @@
with lib; with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.31"; version = "0.31.3";
pname = "notmuch"; pname = "notmuch";
passthru = { passthru = {
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
src = fetchgit { src = fetchgit {
url = "https://git.notmuchmail.org/git/notmuch"; url = "https://git.notmuchmail.org/git/notmuch";
sha256 = "0f9d9k9avb46yh2r8fvijvw7bryqwckvyzc68f9phax2g4c99x4x"; sha256 = "1wm1myzacz1dcg7vdfd3akia3xan7ssfspf1fflrwm18hdalss5v";
rev = version; rev = version;
}; };

View File

@ -4,12 +4,12 @@ with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "marvin"; pname = "marvin";
version = "20.20.0"; version = "20.21.0";
src = fetchurl { src = fetchurl {
name = "marvin-${version}.deb"; name = "marvin-${version}.deb";
url = "http://dl.chemaxon.com/marvin/${version}/marvin_linux_${versions.majorMinor version}.deb"; url = "http://dl.chemaxon.com/marvin/${version}/marvin_linux_${versions.majorMinor version}.deb";
sha256 = "1a8b0drb0c95c8arm3aa0z0sbdm9ilj4h1g90i0qyn4g2wk2xsal"; sha256 = "sha256-OMT6t8bNeFRWFlpyg0iKt2SMNfAmIUvVKiW+cfjfBuI=";
}; };
nativeBuildInputs = [ dpkg makeWrapper ]; nativeBuildInputs = [ dpkg makeWrapper ];

View File

@ -16,7 +16,9 @@ stdenv.mkDerivation {
buildPhase = "dune build"; buildPhase = "dune build";
inherit (dune) installPhase; installPhase = ''
dune install --prefix $out --libdir $OCAMLFIND_DESTDIR
'';
meta = with lib; { meta = with lib; {
homepage = "https://acg.loria.fr/"; homepage = "https://acg.loria.fr/";

View File

@ -1,4 +1,5 @@
{ lib, stdenv { lib
, stdenv
, fetchFromGitHub , fetchFromGitHub
, pkg-config , pkg-config
, glib , glib
@ -9,13 +10,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "conmon"; pname = "conmon";
version = "2.0.24"; version = "2.0.25";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "containers"; owner = "containers";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1z6z1bz2rgj15xbqx10kvwn8s64nx5hmn1x52k4z4r20p4f95hkg"; sha256 = "sha256-u22irZ9AC1W2AVJ1OD1gLzTH4NOgRkZekZ78rNKXnps=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];

View File

@ -38,7 +38,8 @@ stdenv.mkDerivation rec {
] ++ lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0" ] ++ lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"-DENABLE_TESTING=OFF" "-DENABLE_TESTING=OFF"
"-DCURL_HAS_H2=0" "-DCURL_HAS_H2=1"
"-DCURL_HAS_TLS_PROXY=1"
] ++ lib.optional (apis != ["*"]) ] ++ lib.optional (apis != ["*"])
"-DBUILD_ONLY=${lib.concatStringsSep ";" apis}"; "-DBUILD_ONLY=${lib.concatStringsSep ";" apis}";

View File

@ -13,6 +13,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ]; 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; { meta = with stdenv.lib; {
description = "iscsi client library and utilities"; description = "iscsi client library and utilities";
homepage = "https://github.com/sahlberg/libiscsi"; homepage = "https://github.com/sahlberg/libiscsi";

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libmaxminddb"; pname = "libmaxminddb";
version = "1.4.3"; version = "1.5.0";
src = fetchurl { src = fetchurl {
url = meta.homepage + "/releases/download/${version}/${pname}-${version}.tar.gz"; url = meta.homepage + "/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "0fd4a4sxiiwzbd5h74wl1ijnb7xybjyybb7q41vdq3w8nk3zdzd5"; sha256 = "sha256-fFbnkf8qZVIV5+04ZLH/3X00o4g1d57+1WpC8Fa9WKo=";
}; };
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -13,4 +13,3 @@ buildDunePackage rec {
propagatedBuildInputs = [ cstruct sexplib ]; propagatedBuildInputs = [ cstruct sexplib ];
} }

View File

@ -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" if !lib.versionAtLeast ocaml.version "4.07"
then throw "lua-ml is not available for OCaml ${ocaml.version}" then throw "lua-ml is not available for OCaml ${ocaml.version}"
@ -16,11 +16,14 @@ stdenv.mkDerivation rec {
sha256 = "04lv98nxmzanvyn4c0k6k0ax29f5xfdl8qzpf5hwadslq213a044"; sha256 = "04lv98nxmzanvyn4c0k6k0ax29f5xfdl8qzpf5hwadslq213a044";
}; };
nativeBuildInputs = [ opaline ];
buildInputs = [ ocaml findlib ocamlbuild ]; buildInputs = [ ocaml findlib ocamlbuild ];
buildFlags = [ "lib" ]; buildFlags = [ "lib" ];
inherit (dune) installPhase; installPhase = ''
opaline -prefix $out -libdir $OCAMLFIND_DESTDIR
'';
meta = { meta = {
description = "An embeddable Lua 2.5 interpreter implemented in OCaml"; description = "An embeddable Lua 2.5 interpreter implemented in OCaml";

View File

@ -1,9 +1,11 @@
{ lib, stdenv, fetchFromGitHub, buildDunePackage, ocaml, findlib }: { lib, stdenv, fetchFromGitHub, buildDunePackage, ocaml, findlib, cppo }:
let param = let param =
let v6_2 = { let v6_3 = {
version = "6.2"; version = "6.3";
sha256 = "0qf4fwnn4hhk52kjw9frv21v23azqnn4mjvwf1hs0nxf7q4kacb5"; sha256 = "1skf4njvkifwx0qlsrc0jn891gvvcp5ryd6kkpx56hck7nnxv8x6";
useDune2 = lib.versionAtLeast ocaml.version "4.12";
buildInputs = [cppo];
}; in }; in
{ {
"4.02" = { "4.02" = {
@ -25,10 +27,11 @@ let param =
"4.07" = { "4.07" = {
version = "5.1+4.06.0"; version = "5.1+4.06.0";
sha256 = "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"; }; sha256 = "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"; };
"4.08" = v6_2; "4.08" = v6_3;
"4.09" = v6_2; "4.09" = v6_3;
"4.10" = v6_2; "4.10" = v6_3;
"4.11" = v6_2; "4.11" = v6_3;
"4.12" = v6_3;
}.${ocaml.meta.branch}; }.${ocaml.meta.branch};
in in
@ -50,7 +53,7 @@ if lib.versionAtLeast param.version "6.0"
then then
buildDunePackage { buildDunePackage {
inherit pname src meta; inherit pname src meta;
inherit (param) version; inherit (param) version useDune2 buildInputs;
} }
else else
stdenv.mkDerivation { stdenv.mkDerivation {

View File

@ -9,7 +9,9 @@ let param =
buildInputs = [ dune ]; buildInputs = [ dune ];
extra = { extra = {
buildPhase = "dune build -p rope"; buildPhase = "dune build -p rope";
inherit (dune) installPhase; installPhase = ''
dune install --prefix $out --libdir $OCAMLFIND_DESTDIR rope
'';
}; };
} else { } else {
version = "0.5"; version = "0.5";

View File

@ -7,7 +7,11 @@ let
url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz"; url = "https://github.com/ocaml-community/yojson/releases/download/${version}/yojson-${version}.tbz";
sha256 = "08llz96if8bcgnaishf18si76cv11zbkni0aldb54k3cn7ipiqvd"; sha256 = "08llz96if8bcgnaishf18si76cv11zbkni0aldb54k3cn7ipiqvd";
nativeBuildInputs = [ dune ]; nativeBuildInputs = [ dune ];
extra = { inherit (dune) installPhase; }; extra = {
installPhase = ''
dune install --prefix $out --libdir $OCAMLFIND_DESTDIR ${pname}
'';
};
} else rec { } else rec {
version = "1.2.3"; version = "1.2.3";
url = "https://github.com/ocaml-community/yojson/archive/v${version}.tar.gz"; url = "https://github.com/ocaml-community/yojson/archive/v${version}.tar.gz";

View File

@ -1,14 +1,14 @@
{ mkDerivation, fetchurl, pkgs, lib, php }: { mkDerivation, fetchurl, pkgs, lib, php }:
let let
pname = "php-cs-fixer"; pname = "php-cs-fixer";
version = "2.17.0"; version = "2.18.0";
in in
mkDerivation { mkDerivation {
inherit pname version; inherit pname version;
src = fetchurl { src = fetchurl {
url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar"; url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar";
sha256 = "163wz5y5ik7g1p7n0v3ckyawqjhg8d18cwx8a5c6fr1fkwb4mb12"; sha256 = "sha256-euvk/Rs6fZIJVWprzKiTVNPlGOsCN6t58DzvwYh3wDA=";
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];

View File

@ -3,8 +3,8 @@
buildPecl { buildPecl {
pname = "yaml"; pname = "yaml";
version = "2.2.0"; version = "2.2.1";
sha256 = "1d65cf5vnr7brhxmy1pi2axjiyvdhmpcnq0qlx5spwlgkv6hnyml"; sha256 = "sha256-4XrQTnUuJf0Jm93S350m3+8YPI0AxBebydei4cl9eBk=";
configureFlags = [ "--with-yaml=${pkgs.libyaml}" ]; configureFlags = [ "--with-yaml=${pkgs.libyaml}" ];

View File

@ -16,11 +16,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "cliff"; pname = "cliff";
version = "3.5.0"; version = "3.6.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "5bfb684b5fcdff0afaaccd1298a376c0e62e644c46b7e9abc034595b41fe1759"; sha256 = "a3f4fa67eeafbcfa7cf9fe4b1755d410876528e1d0d115740db00b50a1250272";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -7,11 +7,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-treebeard"; pname = "django-treebeard";
version = "4.3.1"; version = "4.4";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "83aebc34a9f06de7daaec330d858d1c47887e81be3da77e3541fe7368196dd8a"; sha256 = "f50e4eea146f7af6702decf7ef198ac1eee1fb9bb4af2c5dba276c3c48f76623";
}; };
buildInputs = [ pytest ]; buildInputs = [ pytest ];

View File

@ -1,7 +1,7 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy27 }: { lib, buildPythonPackage, fetchFromGitHub, isPy27 }:
buildPythonPackage rec { buildPythonPackage rec {
version = "2.1.0"; version = "2.1.1";
pname = "elementpath"; pname = "elementpath";
disabled = isPy27; # uses incompatible class syntax disabled = isPy27; # uses incompatible class syntax
@ -9,7 +9,7 @@ buildPythonPackage rec {
owner = "sissaschool"; owner = "sissaschool";
repo = "elementpath"; repo = "elementpath";
rev = "v${version}"; rev = "v${version}";
sha256 = "17a0gcwmv87kikirgkgr305f5c7wz34hf7djssx4xbk9lfq9m2lg"; sha256 = "1h910v8f0648nqnk40bxgdim3623m07yg4xdfwcips2h55d19rk2";
}; };
# avoid circular dependency with xmlschema which directly depends on this # avoid circular dependency with xmlschema which directly depends on this

View File

@ -2,7 +2,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "mergedeep"; pname = "mergedeep";
version = "1.3.0"; version = "1.3.1";
disabled = isPy27; disabled = isPy27;
# PyPI tarball doesn't include tests directory # PyPI tarball doesn't include tests directory
@ -10,7 +10,7 @@ buildPythonPackage rec {
owner = "clarketm"; owner = "clarketm";
repo = "mergedeep"; repo = "mergedeep";
rev = "v${version}"; rev = "v${version}";
sha256 = "1a0y26a04limiggjwqyyqpryxiylbqya74nq1bij75zhz42sa02b"; sha256 = "1ryccb64hg438y1wsjlfp4ciq05q4c6khwhllwdnndm8cbkbrgph";
}; };
checkInputs = [ pytest ]; checkInputs = [ pytest ];

View File

@ -43,7 +43,7 @@ buildPythonPackage rec {
# Fixture "x_series_device" called directly. Fixtures are not meant to be called directly # Fixture "x_series_device" called directly. Fixtures are not meant to be called directly
doCheck = false; doCheck = false;
pythonCheckImports = [ pythonImportsCheck = [
"nidaqmx.task" "nidaqmx.task"
]; ];

View File

@ -1,16 +1,16 @@
{ lib, buildGoPackage, fetchFromGitLab, fetchurl }: { lib, buildGoPackage, fetchFromGitLab, fetchurl }:
let let
version = "13.7.0"; version = "13.8.0";
# Gitlab runner embeds some docker images these are prebuilt for arm and x86_64 # Gitlab runner embeds some docker images these are prebuilt for arm and x86_64
docker_x86_64 = fetchurl { docker_x86_64 = fetchurl {
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-x86_64.tar.xz"; url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-x86_64.tar.xz";
sha256 = "0hbzvw6bdy31yqnri7379gpm8n5nv6ayr1idg02c9zqgcsgm34jf"; sha256 = "15pf6mxma8gkzyxkzm1rjwa514p7gzabn3c474lcvsjpmp76wv68";
}; };
docker_arm = fetchurl { docker_arm = fetchurl {
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-arm.tar.xz"; url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-arm.tar.xz";
sha256 = "036drxlkmm35mdl0f5k79hnmwvf8gadgsxx71jprn1fjjzk3cxmz"; sha256 = "1c4lpy7nc62rqk8bfwiy5pcgvcwx70qkz3lv9w512fr3n5hjd4c0";
}; };
in in
buildGoPackage rec { buildGoPackage rec {
@ -30,7 +30,7 @@ buildGoPackage rec {
owner = "gitlab-org"; owner = "gitlab-org";
repo = "gitlab-runner"; repo = "gitlab-runner";
rev = "v${version}"; rev = "v${version}";
sha256 = "0v2wcalvs7gsbi33jm35k01cqv2iqz3k3yfjjw08dssg358d0vfp"; sha256 = "0v0iqpllzaabkahlc5pidzzw0bjlli984pdna3f3bbg67lm5a421";
}; };
patches = [ ./fix-shell-path.patch ]; patches = [ ./fix-shell-path.patch ];

View File

@ -5,16 +5,16 @@
buildGoModule rec { buildGoModule rec {
pname = "go-tools"; pname = "go-tools";
version = "2020.2"; version = "2020.2.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dominikh"; owner = "dominikh";
repo = "go-tools"; repo = "go-tools";
rev = version; rev = version;
sha256 = "1qqpr481rx6n75xp1racsjjyn2fa8f28pcb0r9kd56qq890h3qgj"; sha256 = "0a1a4dhz33grwg892436bjhgp8sygrg8yhdhy8dh6i3l6n9dalfh";
}; };
vendorSha256 = "1axci0l7pymy66j6lilm49ksrwp7dvnj5krai2kvy96n3arcnsvq"; vendorSha256 = "081p008sb3lkc8j6sa6n42qi04za4a631kihrd4ca6aigwkgl3ak";
doCheck = false; doCheck = false;

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, ocaml, findlib, opaline }: { 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}" then throw "dune is not available for OCaml ${ocaml.version}"
else else
@ -15,20 +15,18 @@ stdenv.mkDerivation rec {
buildInputs = [ ocaml findlib ]; buildInputs = [ ocaml findlib ];
buildFlags = [ "release" ]; buildFlags = [ "release" ];
makeFlags = [
"PREFIX=${placeholder "out"}"
"LIBDIR=$(OCAMLFIND_DESTDIR)"
];
dontAddPrefix = true; dontAddPrefix = true;
installPhase = '' meta = with lib; {
runHook preInstall
${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR
runHook postInstall
'';
meta = {
homepage = "https://dune.build/"; homepage = "https://dune.build/";
description = "A composable build system"; description = "A composable build system";
maintainers = [ stdenv.lib.maintainers.vbgl stdenv.lib.maintainers.marsam ]; maintainers = [ maintainers.vbgl maintainers.marsam ];
license = stdenv.lib.licenses.mit; license = licenses.mit;
inherit (ocaml.meta) platforms; inherit (ocaml.meta) platforms;
}; };
} }

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "open-policy-agent"; pname = "open-policy-agent";
version = "0.25.2"; version = "0.26.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "open-policy-agent"; owner = "open-policy-agent";
repo = "opa"; repo = "opa";
rev = "v${version}"; rev = "v${version}";
sha256 = "0y4jd1dpq7cy9nfacpf5jbh705gmky44j78q32kq5v566lzrsvvp"; sha256 = "sha256-bkWfRmcUPNYeUucrbh9xAqmLg7RxEEQGa2DQdN2S6Po=";
}; };
vendorSha256 = null; vendorSha256 = null;

View File

@ -21,13 +21,13 @@ let
}; };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "dolphin-emu"; pname = "dolphin-emu";
version = "5.0-12716"; version = "5.0-13178";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dolphin-emu"; owner = "dolphin-emu";
repo = "dolphin"; repo = "dolphin";
rev = "31524288e3b2450eaefff8202c6d26c4ba3f7333"; rev = "a34823df61df65168aa40ef5e82e44defd4a0138";
sha256 = "0vv3ahk6zdx2hx5diq4jkhl289wjybqcr4lwinrkfiywb83hcabg"; sha256 = "0j6hnj60iai366kl0kdbn1jkwc183l02g65mp2vq4qb2yd4399l1";
}; };
nativeBuildInputs = [ cmake pkg-config ] nativeBuildInputs = [ cmake pkg-config ]

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "compsize"; pname = "compsize";
version = "1.3"; version = "1.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kilobyte"; owner = "kilobyte";
repo = "compsize"; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1c69whla844nwis30jxbj00zkpiw3ccndhkmzjii8av5358mjn43"; sha256 = "0gk2vibfl9fh7biznlbr3dwknrwbm5q5602q95jbjvk185g9z126";
}; };
buildInputs = [ btrfs-progs ]; buildInputs = [ btrfs-progs ];

View File

@ -1,84 +0,0 @@
From 55d499f4cd5667c04c21f7201d7f10484e187907 Mon Sep 17 00:00:00 2001
From: Florian Klink <flokli@flokli.de>
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 <flokli@flokli.de>
---
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

View File

@ -7,21 +7,16 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ell"; pname = "ell";
version = "0.35"; version = "0.36";
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
src = fetchgit { src = fetchgit {
url = "https://git.kernel.org/pub/scm/libs/${pname}/${pname}.git"; url = "https://git.kernel.org/pub/scm/libs/${pname}/${pname}.git";
rev = version; 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 = [ nativeBuildInputs = [
pkg-config pkg-config
autoreconfHook autoreconfHook

View File

@ -13,12 +13,12 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "iwd"; pname = "iwd";
version = "1.10"; version = "1.11";
src = fetchgit { src = fetchgit {
url = "https://git.kernel.org/pub/scm/network/wireless/iwd.git"; url = "https://git.kernel.org/pub/scm/network/wireless/iwd.git";
rev = version; rev = version;
sha256 = "0gzpdgfwzlqj2n3amf2zhi2hlpa412878yphgx79y6b5gn1y1lm2"; sha256 = "0wnyg0f1swi7gvvgf5kzbiz44g2wscf5d5bp320iwyfwnlbqb1bn";
}; };
outputs = [ "out" "man" ] outputs = [ "out" "man" ]

View File

@ -1,15 +1,15 @@
{ lib, stdenv, fetchCrate, rustPlatform }: { lib, stdenv, fetchCrate, rustPlatform }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
version = "4.0.2"; version = "4.0.3";
pname = "oxipng"; pname = "oxipng";
src = fetchCrate { src = fetchCrate {
inherit version pname; inherit version pname;
sha256 = "0m36af9w1l6pc71fjbgyzcsszizwayvcv5d750zz2bnj23c77m69"; sha256 = "sha256-lvVgoAZMIqmbS6yMul9Hf9PtneEVy+jDs3kU1jSBL2w=";
}; };
cargoSha256 = "16fby8ncdq0dyg9r0glrqwi04sja34br306c5sj22cq1dm3bb64q"; cargoSha256 = "sha256-v0A8/b/OPAtnaNlMX7QNXTGGH6kg67WBo/2ChOPDZdQ=";
doCheck = !stdenv.isAarch64 && !stdenv.isDarwin; doCheck = !stdenv.isAarch64 && !stdenv.isDarwin;

View File

@ -11,14 +11,14 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "broot"; pname = "broot";
version = "1.1.10"; version = "1.2.0";
src = fetchCrate { src = fetchCrate {
inherit pname version; inherit pname version;
sha256 = "04nidx43w4nnccgbrw30wg9ai8p7hbklxpn1gc6gr2325yhqvwhl"; sha256 = "1mqaynrqaas82f5957lx31x80v74zwmwmjxxlbywajb61vh00d38";
}; };
cargoHash = "sha256-4F9HIQ1BQx4EikyH0DwlDAkYIeUJJbMsj7ZX23QD+K8="; cargoHash = "sha256-ffFS1myFjoQ6768D4zUytN6F9paWeJJFPFugCrfh4iU=";
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper makeWrapper

View File

@ -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 ];
};
}

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "signify"; pname = "signify";
version = "25"; version = "30";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "aperezdc"; owner = "aperezdc";
repo = "signify"; repo = "signify";
rev = "v${version}"; rev = "v${version}";
sha256 = "0zg0rffxwj2a71s1bllhrn491xsmirg9sshpq8f3vl25lv4c2cnq"; sha256 = "02xh6x6rszkvk3rf6zai7n3ivchmw0d8mwllpinjxc7k6sd415c3";
}; };
doCheck = true; doCheck = true;

View File

@ -2,23 +2,30 @@
, stdenv , stdenv
, buildGoModule , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, installShellFiles
}: }:
buildGoModule rec { buildGoModule rec {
pname = "gdu"; pname = "gdu";
version = "3.0.0"; version = "4.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dundee"; owner = "dundee";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0sfb8bxvdd8r05d0bgfcaw6dpbky7f4fgf0dbly7k7sgl29hkafy"; sha256 = "0ppsz7ys08lmg5s7lszqc2zcp2vjm54aai3yr3sb4jf3knbmyg5g";
}; };
vendorSha256 = "0w3k23kly8g9mf8a300xz6bv7g1m2nlp5f112k4viyi9zy6vqbv0"; vendorSha256 = "058h71gmgi3n4b697myi5890arzw8fkzmxlm1aiwzyfh3k9iv0wh";
buildFlagsArray = [ "-ldflags=-s -w -X github.com/dundee/gdu/build.Version=${version}" ]; 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 # tests fail if the version is set
doCheck = false; doCheck = false;

View File

@ -2307,6 +2307,8 @@ in
gist = callPackage ../tools/text/gist { }; gist = callPackage ../tools/text/gist { };
gitjacker = callPackage ../tools/security/gitjacker { };
gixy = callPackage ../tools/admin/gixy { }; gixy = callPackage ../tools/admin/gixy { };
glpaper = callPackage ../development/tools/glpaper { }; glpaper = callPackage ../development/tools/glpaper { };