Merge master into staging-next

This commit is contained in:
github-actions[bot] 2020-12-30 00:53:01 +00:00 committed by GitHub
commit 31fc475812
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 211 additions and 122 deletions

View file

@ -2867,6 +2867,12 @@
githubId = 30512529;
name = "Evils";
};
ewok = {
email = "ewok@ewok.ru";
github = "ewok";
githubId = 454695;
name = "Artur Taranchiev";
};
exfalso = {
email = "0slemi0@gmail.com";
github = "exfalso";
@ -5919,6 +5925,12 @@
githubId = 1001112;
name = "Marcin Janczyk";
};
mjlbach = {
email = "m.j.lbach@gmail.com";
github = "mjlbach";
githubId = 13316262;
name = "Michael Lingelbach";
};
mjp = {
email = "mike@mythik.co.uk";
github = "MikePlayle";

View file

@ -4,13 +4,7 @@ with lib;
let
cfg = config.services.corerad;
writeTOML = name: x:
pkgs.runCommandNoCCLocal name {
passAsFile = ["config"];
config = builtins.toJSON x;
buildInputs = [ pkgs.go-toml ];
} "jsontoml < $configPath > $out";
settingsFormat = pkgs.formats.toml {};
in {
meta.maintainers = with maintainers; [ mdlayher ];
@ -19,7 +13,7 @@ in {
enable = mkEnableOption "CoreRAD IPv6 NDP RA daemon";
settings = mkOption {
type = types.uniq types.attrs;
type = settingsFormat.type;
example = literalExample ''
{
interfaces = [
@ -64,7 +58,7 @@ in {
config = mkIf cfg.enable {
# Prefer the config file over settings if both are set.
services.corerad.configFile = mkDefault (writeTOML "corerad.toml" cfg.settings);
services.corerad.configFile = mkDefault (settingsFormat.generate "corerad.toml" cfg.settings);
systemd.services.corerad = {
description = "CoreRAD IPv6 NDP RA daemon";

View file

@ -3,13 +3,13 @@
mkDerivation rec {
pname = "texstudio";
version = "3.0.1";
version = "3.0.3";
src = fetchFromGitHub {
owner = "${pname}-org";
repo = pname;
rev = version;
sha256 = "18ad85y4hrsvp7gs50dfg08cz40vbakb9hs8gw4cvi7r17vds5ar";
sha256 = "05q70wbdaldhrlapss4agmvz1cwqd229nd5amkj069v1wxrkvpb7";
};
nativeBuildInputs = [ qmake wrapQtAppsHook pkgconfig ];
@ -24,9 +24,10 @@ mkDerivation rec {
LaTeX editing with completion, structure viewer, preview,
spell checking and support of any compilation chain.
'';
homepage = "http://texstudio.sourceforge.net";
homepage = "https://texstudio.org";
changelog = "https://github.com/texstudio-org/texstudio/blob/${version}/utilities/manual/CHANGELOG.txt";
license = licenses.gpl2Plus;
platforms = [ "x86_64-linux" ];
platforms = platforms.linux;
maintainers = with maintainers; [ ajs124 cfouche ];
};
}

View file

@ -65,6 +65,7 @@ let
lxd = callPackage ./lxd {};
shell = callPackage ./shell {};
vpsadmin = callPackage ./vpsadmin {};
vercel = callPackage ./vercel {};
};
in
automated-providers // special-providers

View file

@ -0,0 +1,23 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "terraform-provider-vercel";
version = "2.1.0";
src = fetchFromGitHub {
owner = "ondrejsika";
repo = pname;
rev = "v${version}";
sha256 = "06lskp3mmax7g0lchq6jaxavycj7snkhip9madzqkr552qvz5cgw";
};
vendorSha256 = "0s0kf1v2217q9hfmc7r2yybcfk33k566dfvs2jiq63kyjnadhb0k";
postInstall = "mv $out/bin/terraform-provider-vercel{,_v${version}}";
meta = with stdenv.lib; {
homepage = "https://github.com/ondrejsika/terraform-provider-vercel";
description = "Terraform provider for Vercel";
maintainers = with maintainers; [ mmahut ];
};
}

View file

@ -26,13 +26,13 @@
mkDerivation rec {
pname = "neochat";
version = "v1.0";
version = "1.0";
src = fetchFromGitLab {
domain = "invent.kde.org";
owner = "network";
repo = pname;
rev = version;
rev = "v${version}";
sha256 = "1r9n83kvc5v215lzmzh6hyc5q9i3w6znbf508qk0mdwdzxz4zry9";
};
@ -61,6 +61,7 @@ mkDerivation rec {
description = "A client for matrix, the decentralized communication protocol.";
homepage = "https://apps.kde.org/en/neochat";
license = licenses.gpl3Only;
maintainers = with maintainers; [ mjlbach peterhoeg ];
platforms = with platforms; linux;
};
}

View file

@ -5,13 +5,13 @@
mkDerivation rec {
pname = "quaternion";
version = "0.0.9.4e";
version = "0.0.9.5-beta2";
src = fetchFromGitHub {
owner = "QMatrixClient";
repo = "Quaternion";
rev = version;
sha256 = "0hqhg7l6wpkdbzrdjvrbqymmahziri07ba0hvbii7dd2p0h248fv";
sha256 = "sha256-K4SMB5kL0YO2OIeNUu4hWqU4E4n4vZDRRsJVYmCZqvM=";
};
buildInputs = [

View file

@ -34,7 +34,9 @@ stdenv.mkDerivation rec {
alsaLib
db
glib
gtk3
# We don't know why with trackerSupport the executable fail to launch, See:
# https://github.com/NixOS/nixpkgs/issues/106732
(gtk3.override {trackerSupport = false; })
libkrb5
libsecret
nss

View file

@ -12,7 +12,7 @@
, glib
, libssh2
, ncurses
, opencv2
, opencv4
, openssl
, unixODBC
, xkeyboard_config
@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
glib
libssh2
ncurses
opencv2
opencv4
openssl
stdenv.cc.cc.lib
unixODBC

View file

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec {
pname = "gitoxide";
version = "0.4.3";
version = "0.6.0";
src = fetchFromGitHub {
owner = "Byron";
repo = "gitoxide";
rev = "v${version}";
sha256 = "0ap5ih4s99c4ah95mcafqsvy4yhfqab6vg1c6ydzfa4czczgcxff";
sha256 = "qt1IN/5+yw5lrQ00YsvXUcUXCxd97EtNf5JvxJVa7uc=";
};
cargoSha256 = "0vj7g2jhvd5d37rcq02hval9axpciwyqyd10z2a0bsvw0r4bh943";
cargoSha256 = "mitUyf/z7EgjKzFy8ZER8Ceoe9tk6r0ctSYdDG87rIU=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];

View file

@ -1,22 +0,0 @@
--- a/src/lapi.c
+++ b/src/lapi.c
@@ -1285,14 +1285,14 @@ LUA_API void *lua_upvalueid (lua_State *
LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1,
int fidx2, int n2) {
- LClosure *f1;
- UpVal **up1 = getupvalref(L, fidx1, n1, &f1);
+ UpVal **up1 = getupvalref(L, fidx1, n1, NULL); /* the last parameter not needed */
UpVal **up2 = getupvalref(L, fidx2, n2, NULL);
+ if (*up1 == *up2) return; /* Already joined */
+ (*up2)->refcount++;
+ if (upisopen(*up2)) (*up2)->u.open.touched = 1;
+ luaC_upvalbarrier(L, *up2);
luaC_upvdeccount(L, *up1);
*up1 = *up2;
- (*up1)->refcount++;
- if (upisopen(*up1)) (*up1)->u.open.touched = 1;
- luaC_upvalbarrier(L, *up1);
}

View file

@ -29,12 +29,12 @@ in rec {
});
lua5_3 = callPackage ./interpreter.nix {
sourceVersion = { major = "5"; minor = "3"; patch = "5"; };
hash = "0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac";
sourceVersion = { major = "5"; minor = "3"; patch = "6"; };
hash = "0q3d8qhd7p0b7a4mh9g7fxqksqfs6mr1nav74vq26qvkp2dxcpzw";
patches =
lib.optionals stdenv.isDarwin [ ./5.2.darwin.patch ] ++ [
./CVE-2019-6706.patch
];
lib.optionals stdenv.isDarwin [ ./5.2.darwin.patch ];
postConfigure = lib.optionalString (!stdenv.isDarwin) ''
cat ${./lua-5.3-dso.make} >> src/Makefile
sed -e 's/ALL_T *= */& $(LUA_SO)/' -i src/Makefile

View file

@ -2,13 +2,13 @@
mkDerivation rec {
pname = "libquotient";
version = "0.6.2";
version = "0.6.3";
src = fetchFromGitHub {
owner = "quotient-im";
repo = "libQuotient";
rev = version;
sha256 = "1721cy6zaq086nrwh9x4d7k1jiaygg1wkvyx486i9bj9z53lc3wd";
sha256 = "sha256-RYEcFClRdAippG0kspNi9QZIzZAuU4++9LOQTZcqpVc=";
};
buildInputs = [ qtbase qtmultimedia ];
@ -18,7 +18,7 @@ mkDerivation rec {
meta = with lib; {
description = "A Qt5 library to write cross-platfrom clients for Matrix";
homepage = "https://matrix.org/docs/projects/sdk/quotient";
maintainers = with maintainers; [ colemickens ];
license = licenses.lgpl21;
maintainers = with maintainers; [ colemickens ];
};
}

View file

@ -10,7 +10,7 @@ diff -ru old/webkitgtk-2.26.0/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLa
{ SCMP_SYS(move_pages), nullptr },
{ SCMP_SYS(mbind), nullptr },
{ SCMP_SYS(get_mempolicy), nullptr },
@@ -724,6 +724,10 @@
@@ -724,6 +724,11 @@
"--ro-bind-try", "/usr/local/lib64", "/usr/local/lib64",
"--ro-bind-try", PKGLIBEXECDIR, PKGLIBEXECDIR,
@ -18,6 +18,7 @@ diff -ru old/webkitgtk-2.26.0/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLa
+ // Nix Directories
+ "--ro-bind", "@storeDir@", "@storeDir@",
+ "--ro-bind", "/run/current-system", "/run/current-system",
+ "--ro-bind", "/run/opengl-driver", "/run/opengl-driver",
};
// We would have to parse ld config files for more info.
bindPathVar(sandboxArgs, "LD_LIBRARY_PATH");

View file

@ -1,15 +1,17 @@
{ stdenv
, fetchFromGitHub
, fetchpatch
, pkgconfig
, meson
, ninja
, zstd
, curl
, argp-standalone
}:
stdenv.mkDerivation rec {
pname = "zchunk";
version = "1.1.6";
version = "1.1.8";
outputs = [ "out" "lib" "dev" ];
@ -17,7 +19,7 @@ stdenv.mkDerivation rec {
owner = "zchunk";
repo = pname;
rev = version;
sha256 = "1j05f26xppwbkxrm11895blm75i1a6p9q23x7wlkqw198mpnpbbv";
sha256 = "0q1jafxh5nqgn2w5ciljkh8h46xma0qia8a5rj9m0pxixcacqj6q";
};
nativeBuildInputs = [
@ -29,7 +31,17 @@ stdenv.mkDerivation rec {
buildInputs = [
zstd
curl
];
] ++ stdenv.lib.optional stdenv.isDarwin argp-standalone;
# Darwin needs a patch for argp-standalone usage and differing endian.h location on macOS
# https://github.com/zchunk/zchunk/pull/35
patches = [
(fetchpatch {
name = "darwin-support.patch";
url = "https://github.com/zchunk/zchunk/commit/f7db2ac0a95028a7f82ecb89862426bf53a69232.patch";
sha256 = "0cm84gyii4ly6nsmagk15g9kbfa13rw395nqk3fdcwm0dpixlkh4";
})
];
meta = with stdenv.lib; {
description = "File format designed for highly efficient deltas while maintaining good compression";

View file

@ -22,11 +22,10 @@ buildPythonPackage rec {
runHook postCheck
'';
meta = {
description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants";
maintainers = with stdenv.lib.maintainers; [ vrthra ];
license = with stdenv.lib.licenses; [ bsd3 ];
homepage = "https://bitbucket.org/stoneleaf/aenum";
homepage = "https://github.com/ethanfurman/aenum";
};
}

View file

@ -0,0 +1,24 @@
{ stdenv, fetchPypi, buildPythonPackage, django, pytestCheckHook, pytest-django }:
buildPythonPackage rec {
pname = "jsonfield";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "0yl828cd0m8jsyr4di6hcjdqmi31ijh5vk57mbpfl7p2gmcq8kky";
};
checkInputs = [ pytestCheckHook pytest-django ];
preCheck = "export DJANGO_SETTINGS_MODULE=tests.settings";
propagatedBuildInputs = [ django ];
meta = with stdenv.lib; {
description = "Reusable model field that allows you to store validated JSON, automatically handling serialization to and from the database";
homepage = "https://github.com/rpkilby/jsonfield/";
license = licenses.mit;
maintainers = with maintainers; [ mrmebelman ];
};
}

View file

@ -3,13 +3,13 @@
mkDerivation rec {
pname = "sqlitebrowser";
version = "3.12.0";
version = "3.12.1";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "1arv4rzl8s1vjjqzz35l2b1rfzr2b8b23v97fdw1kdxpwvs63l99";
rev = "v${version}";
sha256 = "0ray6cscx2qil1dfi7hmpijmq3kba49wn430ih1q4fkz9psjvrz1";
};
# We should be using qscintilla from nixpkgs instead of the vendored version,

View file

@ -1,23 +1,20 @@
{ buildGoPackage
, lib
, fetchFromGitHub
}:
{ buildGoModule, lib, fetchFromGitHub }:
buildGoPackage rec {
pname = "impl-unstable";
version = "2019-11-19";
rev = "6b9658ad00c7fbd61a7b50c195754413f6c4142c";
goPackagePath = "github.com/josharian/impl";
buildGoModule rec {
pname = "impl";
version = "1.0.0";
src = fetchFromGitHub {
inherit rev;
owner = "josharian";
repo = "impl";
sha256 = "1d4fvj7fgiykznx1z4fmcc06x5hsqp9wn62m5qm1ds8m0rjqaxwi";
rev = "v${version}";
sha256 = "0l21fkcgiaaf6ka91dmz8hx0l3nbp0kqi8p25kij1s5zb796z0dy";
};
goDeps = ./deps.nix;
vendorSha256 = "0xkalwy02w62px01jdwwr3vwwsh50f22dsxf8lrrwmw6k0rq57zv";
# go: cannot find GOROOT directory: go
doCheck = false;
meta = with lib; {
description = "Generate method stubs for implementing an interface";

View file

@ -1,30 +0,0 @@
# This file was generated by https://github.com/kamilchm/go2nix v1.3.0
[
{
goPackagePath = "golang.org/x/mod";
fetch = {
type = "git";
url = "https://go.googlesource.com/mod";
rev = "2addee1ccfb22349ab47953a3046338e461eb4d1";
sha256 = "1r0drcji290nlq9czibcfynpwxyqx8a5p4b7lam6wblbh2lasfb6";
};
}
{
goPackagePath = "golang.org/x/tools";
fetch = {
type = "git";
url = "https://go.googlesource.com/tools";
rev = "72e4a01eba4315301fd9ce00c8c2f492580ded8a";
sha256 = "0a8c7j4w784w441j3j3bh640vy1g6g214641qv485wyi0xj49anf";
};
}
{
goPackagePath = "golang.org/x/xerrors";
fetch = {
type = "git";
url = "https://go.googlesource.com/xerrors";
rev = "9bdfabe68543c54f90421aeb9a60ef8061b5b544";
sha256 = "1yjfi1bk9xb81lqn85nnm13zz725wazvrx3b50hx19qmwg7a4b0c";
};
}
]

View file

@ -0,0 +1,34 @@
{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config, SDL2, qtbase
, wrapQtAppsHook, qttools, ninja, gtk3 }:
mkDerivation rec {
pname = "duckstation";
version = "unstable-2020-12-29";
src = fetchFromGitHub {
owner = "stenzek";
repo = pname;
rev = "f8dcfabc44ff8391b2d41eab2e883dc8f21a88b7";
sha256 = "0v6w4di4yj1hbxpqqrcw8rbfjg18g9kla8mnb3b5zgv7i4dyzykw";
};
nativeBuildInputs = [ cmake wrapQtAppsHook qttools ];
buildInputs = [ SDL2 qtbase gtk3 pkg-config ];
installPhase = ''
mkdir -p $out/
mv bin $out/
'';
# TODO:
# - vulkan graphics backend (OpenGL works).
# - default sound backend (cubeb) does not work, but SDL does.
meta = with lib; {
description =
"PlayStation 1 emulator focusing on playability, speed and long-term maintainability";
homepage = "https://github.com/stenzek/duckstation";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ maintainers.guibou ];
};
}

View file

@ -1,13 +1,13 @@
{ stdenv, fetchgit, lib }:
{ stdenvNoCC, fetchgit, lib }:
stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "firmware-linux-nonfree";
version = "2020-11-18";
version = "2020-12-18";
src = fetchgit {
url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
rev = lib.replaceStrings ["-"] [""] version;
sha256 = "107p7h13gncsxqhixqq9zmmswvs910sck54ab10s4m5cafvnaf94";
sha256 = "1rb5b3fzxk5bi6kfqp76q1qszivi0v1kdz1cwj2llp5sd9ns03b5";
};
installFlags = [ "DESTDIR=$(out)" ];
@ -17,11 +17,11 @@ stdenv.mkDerivation rec {
outputHashMode = "recursive";
outputHashAlgo = "sha256";
outputHash = "1319qr3mhbbvbnl8q151pgfpahwzfv9zg0fvpj34z5h0wnvmlr2v";
outputHash = "1p7vn2hfwca6w69jhw5zq70w44ji8mdnibm1z959aalax6ndy146";
meta = with stdenv.lib; {
meta = with stdenvNoCC.lib; {
description = "Binary firmware collection packaged by kernel.org";
homepage = "http://packages.debian.org/sid/firmware-linux-nonfree";
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
license = licenses.unfreeRedistributableFirmware;
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz ];

View file

@ -1,13 +1,13 @@
{ stdenv, fetchFromGitHub, kernel, bc }:
stdenv.mkDerivation rec {
name = "rtl8821cu-${kernel.version}-${version}";
version = "unstable-2020-08-21";
version = "unstable-2020-12-21";
src = fetchFromGitHub {
owner = "brektrou";
repo = "rtl8821cu";
rev = "45a8b4393e3281b969822c81bd93bdb731d58472";
sha256 = "1995zs1hvlxjhbh2w7zkwr824z19cgc91s00g7yhm5d7zjav14rd";
rev = "428a0820487418ec69c0edb91726d1cf19763b1e";
sha256 = "1ccl94727yq7gzn37ky91k0736cambgnkaa37r2f2hinpl9qdd8q";
};
hardeningDisable = [ "pic" ];

View file

@ -2,7 +2,7 @@
buildGoModule rec {
pname = "grafana";
version = "7.3.5";
version = "7.3.6";
excludedPackages = [ "release_publisher" ];
@ -10,15 +10,15 @@ buildGoModule rec {
rev = "v${version}";
owner = "grafana";
repo = "grafana";
sha256 = "1gxa1j7sd4xcyb2gh2ja6mwp0j4zcqwzaz25n9f9p9azhjyd2zh5";
sha256 = "10hm5bz2q9mccrjx1x77xckqvn2x9m7cl2dn60gvrl8m7q3afscp";
};
srcStatic = fetchurl {
url = "https://dl.grafana.com/oss/release/grafana-${version}.linux-amd64.tar.gz";
sha256 = "0vplzj5jrx643qp68kxg1g1gazxjrnx771dmc1703zalv28z8fq3";
sha256 = "1fl4ng39qkc01nv49cfzm19sv3yzzshl22ylkwlsb41rmaifbd1f";
};
vendorSha256 = "05brpjac54a8bxh7psy8gix9q2g36fr4z5msahp6i8wv2xfrf98b";
vendorSha256 = "0p4wwacvka5lgzwhlwnn6iiwi9x67zgqf0l4vblpfckvvb3ar41h";
postPatch = ''
substituteInPlace pkg/cmd/grafana-server/main.go \

View file

@ -5,16 +5,16 @@
buildGoModule rec {
pname = "promscale";
version = "0.1.3";
version = "0.1.4";
src = fetchFromGitHub {
owner = "timescale";
repo = pname;
rev = version;
sha256 = "sha256-xkVT7Kn7mW23p8oGU4AsmB66lNd4QLnhEW7J66ldFHM=";
sha256 = "0179sw5zx552y14lr56adxcgas642xvxpqly6y4m9pi33r1gs8lj";
};
vendorSha256 = "sha256:1wfyawbdbabyp9nyhzfp632hg9rvwdyagsdqvvq6gv8bn5xfcjvh";
vendorSha256 = "sha256:04gzf0siz96ar4qdkcw6daswy14i1zvl7ir200adhw1c5phppab6";
buildFlagsArray = [ "-ldflags=-s -w -X github.com/timescale/promscale/pkg/version.Version=${version} -X github.com/timescale/promscale/pkg/version.CommitHash=${src.rev}" ];

View file

@ -0,0 +1,34 @@
{ stdenv
, cmake
, fetchFromGitHub
, i3
, jsoncpp
, libsigcxx
, libX11
, libxkbfile
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "xkb-switch-i3";
version = "1.8.1";
src = fetchFromGitHub {
owner = "Zebradil";
repo = "xkb-switch-i3";
rev = version;
sha256 = "15c19hp0n1k3w15qn97j6wp5b8hbk0mq6x3xjfn6dkkjfz1fl6cn";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ i3 jsoncpp libsigcxx libX11 libxkbfile ];
meta = with stdenv.lib; {
description = "Switch your X keyboard layouts from the command line(i3 edition)";
homepage = "https://github.com/Zebradil/xkb-switch-i3";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ewok ];
platforms = platforms.linux;
};
}

View file

@ -12865,6 +12865,8 @@ in
duckdb = callPackage ../development/libraries/duckdb {};
duckstation = libsForQt5.callPackage ../misc/emulators/duckstation {};
easyloggingpp = callPackage ../development/libraries/easyloggingpp {};
eccodes = callPackage ../development/libraries/eccodes {
@ -25341,6 +25343,8 @@ in
xkb-switch = callPackage ../tools/X11/xkb-switch { };
xkb-switch-i3 = callPackage ../tools/X11/xkb-switch-i3 { };
xkblayout-state = callPackage ../applications/misc/xkblayout-state { };
xlife = callPackage ../applications/graphics/xlife { };

View file

@ -3176,6 +3176,8 @@ in {
jsondiff = callPackage ../development/python-modules/jsondiff { };
jsonfield = callPackage ../development/python-modules/jsonfield { };
jsonlines = callPackage ../development/python-modules/jsonlines { };
jsonmerge = callPackage ../development/python-modules/jsonmerge { };