3
0
Fork 0
forked from mirrors/nixpkgs

Merge master into staging-next

This commit is contained in:
github-actions[bot] 2021-05-24 12:29:00 +00:00 committed by GitHub
commit 39f8014bf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 81 additions and 94 deletions

View file

@ -12,8 +12,6 @@ let
isNix23 = versionAtLeast nixVersion "2.3pre";
isNix24 = versionAtLeast nixVersion "2.4pre";
makeNixBuildUser = nr: {
name = "nixbld${toString nr}";
value = {
@ -43,11 +41,7 @@ let
max-jobs = ${toString (cfg.maxJobs)}
cores = ${toString (cfg.buildCores)}
sandbox = ${if (builtins.isBool cfg.useSandbox) then boolToString cfg.useSandbox else cfg.useSandbox}
${if isNix24 then ''
sandbox-paths = ${toString cfg.sandboxPaths}
'' else ''
extra-sandbox-paths = ${toString cfg.sandboxPaths}
''}
extra-sandbox-paths = ${toString cfg.sandboxPaths}
substituters = ${toString cfg.binaryCaches}
trusted-substituters = ${toString cfg.trustedBinaryCaches}
trusted-public-keys = ${toString cfg.binaryCachePublicKeys}

View file

@ -7,8 +7,8 @@
, glib
, gobject-introspection
, gst_all_1
, gtk3
, libhandy
, gtk4
, libadwaita
, librsvg
, meson
, ninja
@ -18,7 +18,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "mousai";
version = "0.3.2";
version = "0.4.1";
format = "other";
@ -26,7 +26,7 @@ python3.pkgs.buildPythonApplication rec {
owner = "SeaDve";
repo = "Mousai";
rev = "v${version}";
sha256 = "sha256-sBB2kqlC+2qPgQinhGxY8lq9unxgQoOOhDP5o1pUWMo=";
sha256 = "sha256-AfR5n1dIm9X5OoPiikQEhHBFQq0rmQH4h7cCJ2yXoXI=";
};
postPatch = ''
@ -38,7 +38,7 @@ python3.pkgs.buildPythonApplication rec {
desktop-file-utils
gettext
glib
gtk3
gtk4
meson
ninja
pkg-config
@ -50,8 +50,8 @@ python3.pkgs.buildPythonApplication rec {
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gtk3
libhandy
gtk4
libadwaita
librsvg
];

View file

@ -40,10 +40,8 @@ mkDerivation rec {
]
++ lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch;
escaped_pyqt5_dir = builtins.replaceStrings ["/"] ["\\/"] (toString python3Packages.pyqt5);
prePatch = ''
sed -i "s/\[tool.sip.project\]/[tool.sip.project]\nsip-include-dirs = [\"${escaped_pyqt5_dir}\/share\/sip\/PyQt5\"]/g" \
sed -i "s@\[tool.sip.project\]@[tool.sip.project]\nsip-include-dirs = [\"${python3Packages.pyqt5}/share/sip/PyQt5\"]@g" \
setup/build.py
sed -i "s/\[tool.sip.bindings.pictureflow\]/[tool.sip.bindings.pictureflow]\ntags = [\"${python3Packages.sip.platform_tag}\"]/g" \
setup/build.py

View file

@ -3,6 +3,6 @@
# How to obtain `sha256`:
# nix-prefetch-url --unpack https://github.com/erlang/otp/archive/OTP-${version}.tar.gz
mkDerivation {
version = "22.3.4.17";
sha256 = "sha256-YhKU9I4qN+TVG3t//t9htUBkOu8DS75vbn/qWvS1zc0=";
version = "22.3.4.19";
sha256 = "sha256-U3ks7pDIqS8HVJ+yBobhEbKvnd9svEcQd9BsJQwajDs=";
}

View file

@ -13,31 +13,17 @@
, openssl
}:
let
dpdk-compat-patch = fetchurl {
url = "https://review.spdk.io/gerrit/plugins/gitiles/spdk/spdk/+/6acb9a58755856fb9316baf9dbbb7239dc6b9446%5E%21/?format=TEXT";
sha256 = "18q0956fkjw19r29hp16x4pygkfv01alj9cld2wlqqyfgp41nhn0";
};
in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "spdk";
version = "20.04.1";
version = "21.04";
src = fetchFromGitHub {
owner = "spdk";
repo = "spdk";
rev = "v${version}";
sha256 = "ApMyGamPrMalzZLbVkJlcwatiB8dOJmoxesdjkWZElk=";
sha256 = "sha256-Xmmgojgtt1HwTqG/1ZOJVo1BcdAH0sheu40d73OJ68w=";
};
patches = [
./spdk-dpdk-meson.patch
# https://review.spdk.io/gerrit/c/spdk/spdk/+/3134
(fetchpatch {
url = "https://github.com/spdk/spdk/commit/c954b5b722c5c163774d3598458ff726c48852ab.patch";
sha256 = "1n149hva5qxmpr0nmav10nya7zklafxi136f809clv8pag84g698";
})
];
nativeBuildInputs = [
python3
];
@ -48,12 +34,13 @@ in stdenv.mkDerivation rec {
postPatch = ''
patchShebangs .
base64 -d ${dpdk-compat-patch} | patch -p1
'';
configureFlags = [ "--with-dpdk=${dpdk}" ];
NIX_CFLAGS_COMPILE = "-mssse3"; # Necessary to compile.
# otherwise does not find strncpy when compiling
NIX_LDFLAGS = "-lbsd";
meta = with lib; {
description = "Set of libraries for fast user-mode storage";

View file

@ -2686,6 +2686,18 @@ final: prev:
meta.homepage = "https://github.com/tomasr/molokai/";
};
moonlight-nvim = buildVimPluginFrom2Nix {
pname = "moonlight-nvim";
version = "2021-05-16";
src = fetchFromGitHub {
owner = "shaunsingh";
repo = "moonlight.nvim";
rev = "e24e4218ec680b6396532808abf57ca0ada82e66";
sha256 = "0m9w3fpypsqxydjd93arbjqb5576nl40iy27i4ijlrqhgdhl49y3";
};
meta.homepage = "https://github.com/shaunsingh/moonlight.nvim/";
};
ncm2 = buildVimPluginFrom2Nix {
pname = "ncm2";
version = "2020-12-19";
@ -3202,6 +3214,18 @@ final: prev:
meta.homepage = "https://github.com/arcticicestudio/nord-vim/";
};
nord-nvim = buildVimPluginFrom2Nix {
pname = "nord-nvim";
version = "2021-05-22";
src = fetchFromGitHub {
owner = "shaunsingh";
repo = "nord.nvim";
rev = "6860c64a3002f6dbcf36c0baf7bda8c34c5083c8";
sha256 = "0a036xgsklqv2zwlcpyhdrip8mvgqhyb4vcsp7gwp5241917bia3";
};
meta.homepage = "https://github.com/shaunsingh/nord.nvim/";
};
NrrwRgn = buildVimPluginFrom2Nix {
pname = "NrrwRgn";
version = "2020-05-29";

View file

@ -569,6 +569,8 @@ samoshkin/vim-mergetool
sbdchd/neoformat
sebastianmarkow/deoplete-rust
SevereOverfl0w/deoplete-github
shaunsingh/moonlight.nvim@pure-lua
shaunsingh/nord.nvim
sheerun/vim-polyglot
Shougo/context_filetype.vim
Shougo/defx.nvim

View file

@ -8,14 +8,14 @@
let
mod = kernel != null;
dpdkVersion = "21.02";
in stdenv.mkDerivation rec {
name = "dpdk-${version}" + lib.optionalString mod "-${kernel.version}";
version = "20.05";
pname = "dpdk";
version = "${dpdkVersion}" + lib.optionalString mod "-${kernel.version}";
src = fetchurl {
url = "https://fast.dpdk.org/rel/dpdk-${version}.tar.xz";
sha256 = "0h0xv2zwb91b9n29afg5ihn06a8q28in64hag2f112kc19f79jj8";
url = "https://fast.dpdk.org/rel/dpdk-${dpdkVersion}.tar.xz";
sha256 = "sha256-CZJKKoJVGqKZeKNoYYT4oQX1L1ZAsb4of1QLLJHpSJs==";
};
nativeBuildInputs = [
@ -25,6 +25,7 @@ in stdenv.mkDerivation rec {
pkg-config
python3
python3.pkgs.sphinx
python3.pkgs.pyelftools
];
buildInputs = [
jansson
@ -42,9 +43,12 @@ in stdenv.mkDerivation rec {
'';
mesonFlags = [
"-Dtests=false"
"-Denable_docs=true"
"-Denable_kmods=${lib.boolToString mod}"
]
# kni kernel driver is currently not compatble with 5.11
++ lib.optional (mod && kernel.kernelOlder "5.11") "-Ddisable_drivers=kni"
++ lib.optional (!shared) "-Ddefault_library=static"
++ lib.optional stdenv.isx86_64 "-Dmachine=nehalem"
++ lib.optional mod "-Dkernel_dir=${placeholder "kmod"}/lib/modules/${kernel.modDirVersion}";

View file

@ -1,21 +1,21 @@
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config
, dpdk, libconfig, libpcap, numactl, openssl, zlib, libbsd, libelf, jansson
, dpdk, libbpf, libconfig, libpcap, numactl, openssl, zlib, libbsd, libelf, jansson
}: let
dpdk_18_11 = dpdk.overrideAttrs (old: rec {
version = "18.11.5";
dpdk_19_11 = dpdk.overrideAttrs (old: rec {
version = "19.11";
src = fetchurl {
url = "https://fast.dpdk.org/rel/dpdk-${version}.tar.xz";
sha256 = "1n6nfaj7703l19jcw540lm8avni48hj9q1rq4mfp8b8gd4zjprj0";
sha256 = "sha256-RnEzlohDZ3uxwna7dKNFiqfAAswh4pXFHjvWVJexEqs=";
};
});
in stdenv.mkDerivation rec {
pname = "odp-dpdk";
version = "1.22.0.0_DPDK_18.11";
version = "1.27.0.0_DPDK_19.11";
src = fetchurl {
url = "https://git.linaro.org/lng/odp-dpdk.git/snapshot/${pname}-${version}.tar.gz";
sha256 = "1m8xhmfjqlj2gkkigq5ka3yh0xgzrcpfpaxp1pnh8d1g99094vbx";
sha256 = "sha256-/4m2NqnEXyenNUrCq3c2ozJzPWFFs/Qp7MAVm9B2biA=";
};
nativeBuildInputs = [
@ -23,7 +23,7 @@ in stdenv.mkDerivation rec {
pkg-config
];
buildInputs = [
dpdk_18_11
dpdk_19_11
libconfig
libpcap
numactl
@ -32,19 +32,9 @@ in stdenv.mkDerivation rec {
libbsd
libelf
jansson
libbpf
];
NIX_CFLAGS_COMPILE = [ "-Wno-error=address-of-packed-member" ];
# for some reason, /build/odp-dpdk-1.22.0.0_DPDK_18.11/lib/.libs ends up in all binaries,
# while it should be $out/lib instead.
# prepend rpath with the proper location, the /build will get removed during rpath shrinking
preFixup = ''
for prog in $out/bin/*; do
patchelf --set-rpath $out/lib:`patchelf --print-rpath $prog` $prog
done
'';
# binaries will segfault otherwise
dontStrip = true;

View file

@ -1,17 +0,0 @@
1. librte_process_info does not exist.
2. lua5.3 library is liblua.
3. app/meson.build uses undeclared drivers_install_subdir.
--- a/lib/common/meson.build
+++ b/lib/common/meson.build
@@ -34,1 +34,1 @@
-libs = ['eal', 'kvargs', 'cmdline', 'process_info']
+libs = ['eal', 'kvargs', 'cmdline']
--- a/lib/lua/meson.build
+++ b/lib/lua/meson.build
@@ -31 +31 @@ endforeach
-ext_deps += cc.find_library('lua5.3', required: true)
+ext_deps += cc.find_library('lua', required: true)
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -0,0 +1,1 @@
+option('drivers_install_subdir', type: 'string', value: '')

View file

@ -1,29 +1,33 @@
{ stdenv, lib, fetchurl, meson, ninja, pkg-config
{ stdenv, lib, fetchFromGitHub, meson, ninja, pkg-config
, dpdk, libbsd, libpcap, lua5_3, numactl, util-linux
, gtk2, which, withGtk ? false
}:
stdenv.mkDerivation rec {
pname = "pktgen";
version = "19.12.0";
version = "21.05.0";
src = fetchurl {
url = "http://dpdk.org/browse/apps/pktgen-dpdk/snapshot/${pname}-${version}.tar.xz";
sha256 = "1clfviz1qa4hysslcg6i29vsxwl9f6j1y7zf9wwx9br3yq08x956";
src = fetchFromGitHub {
owner = "pktgen";
repo = "Pktgen-DPDK";
rev = "pktgen-${version}";
sha256 = "sha256-7lLDtbd14olEHO+1BuI6KTEUNRM/zAyRXau/OZbYbGA=";
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs =
[ dpdk libbsd libpcap lua5_3 numactl which ]
++ lib.optionals withGtk [gtk2];
buildInputs = [
dpdk libbsd libpcap lua5_3 numactl which
] ++ lib.optionals withGtk [
gtk2
];
RTE_SDK = dpdk;
GUI = lib.optionalString withGtk "true";
NIX_CFLAGS_COMPILE = "-msse3";
patches = [ ./configure.patch ];
# requires symbols from this file
NIX_LDFLAGS = "-lrte_net_bond";
postPatch = ''
substituteInPlace lib/common/lscpu.h --replace /usr/bin/lscpu ${util-linux}/bin/lscpu

View file

@ -52,6 +52,5 @@ buildPythonPackage rec {
description = "An Etebase (EteSync 2.0) server so you can run your own.";
license = licenses.agpl3Only;
maintainers = with maintainers; [ felschr ];
broken = stdenv.isDarwin;
};
}

View file

@ -39,6 +39,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
hardeningEnable = [ "pie" ];
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang [ "-std=c11" ];
doCheck = false; # needs tcl

View file

@ -16,13 +16,13 @@
stdenv.mkDerivation rec {
pname = "ytfzf";
version = "1.1.5";
version = "1.1.6";
src = fetchFromGitHub {
owner = "pystardust";
repo = "ytfzf";
rev = "v${version}";
sha256 = "sha256-NkJjh/Ys0Ypm8NTy/ZrQ4hIAjP5VGrpU73wjAMsZnAc=";
sha256 = "sha256-HXn/8Lrt6tNZWW1AeKMArOiW9t1v7MzlynSLryNdI5Y=";
};
patches = [

View file

@ -1,8 +1,8 @@
diff --git a/ytfzf b/ytfzf
index 42f41c0..f75f5cb 100755
index d5ff8c9..96f9c8f 100755
--- a/ytfzf
+++ b/ytfzf
@@ -892,23 +892,8 @@ send_notify () {
@@ -934,23 +934,8 @@ send_notify () {
}
update_ytfzf () {
@ -10,7 +10,7 @@ index 42f41c0..f75f5cb 100755
- updatefile="/tmp/ytfzf-update"
- curl -L "https://raw.githubusercontent.com/pystardust/ytfzf/$branch/ytfzf" -o "$updatefile"
-
- if sed -n '1p' < "$updatefile" | grep -q '#!/bin/sh' ; then
- if sed -n '1p' < "$updatefile" | grep -q '#!/bin/sh'; then
- chmod 755 "$updatefile"
- if [ "$(uname)" = "Darwin" ]; then
- sudo cp "$updatefile" "/usr/local/bin/ytfzf"
@ -27,4 +27,4 @@ index 42f41c0..f75f5cb 100755
+ exit 1
}
scrape_subscriptions () {
sort_video_data_date () {