Skip to content

Commit

Permalink
Merge master into staging-next
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored May 24, 2021
2 parents e061b75 + 4f51b50 commit 39f8014
Show file tree
Hide file tree
Showing 15 changed files with 81 additions and 94 deletions.
8 changes: 1 addition & 7 deletions nixos/modules/services/misc/nix-daemon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ let

isNix23 = versionAtLeast nixVersion "2.3pre";

isNix24 = versionAtLeast nixVersion "2.4pre";

makeNixBuildUser = nr: {
name = "nixbld${toString nr}";
value = {
Expand Down Expand Up @@ -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}
Expand Down
14 changes: 7 additions & 7 deletions pkgs/applications/audio/mousai/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
, glib
, gobject-introspection
, gst_all_1
, gtk3
, libhandy
, gtk4
, libadwaita
, librsvg
, meson
, ninja
Expand All @@ -18,15 +18,15 @@

python3.pkgs.buildPythonApplication rec {
pname = "mousai";
version = "0.3.2";
version = "0.4.1";

format = "other";

src = fetchFromGitHub {
owner = "SeaDve";
repo = "Mousai";
rev = "v${version}";
sha256 = "sha256-sBB2kqlC+2qPgQinhGxY8lq9unxgQoOOhDP5o1pUWMo=";
sha256 = "sha256-AfR5n1dIm9X5OoPiikQEhHBFQq0rmQH4h7cCJ2yXoXI=";
};

postPatch = ''
Expand All @@ -38,7 +38,7 @@ python3.pkgs.buildPythonApplication rec {
desktop-file-utils
gettext
glib
gtk3
gtk4
meson
ninja
pkg-config
Expand All @@ -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
];

Expand Down
4 changes: 1 addition & 3 deletions pkgs/applications/misc/calibre/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/interpreters/erlang/R22.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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=";
}
23 changes: 5 additions & 18 deletions pkgs/development/libraries/spdk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
Expand All @@ -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";
Expand Down
24 changes: 24 additions & 0 deletions pkgs/misc/vim-plugins/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down
2 changes: 2 additions & 0 deletions pkgs/misc/vim-plugins/vim-plugin-names
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 9 additions & 5 deletions pkgs/os-specific/linux/dpdk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -25,6 +25,7 @@ in stdenv.mkDerivation rec {
pkg-config
python3
python3.pkgs.sphinx
python3.pkgs.pyelftools
];
buildInputs = [
jansson
Expand All @@ -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}";
Expand Down
26 changes: 8 additions & 18 deletions pkgs/os-specific/linux/odp-dpdk/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{ 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 = [
autoreconfHook
pkg-config
];
buildInputs = [
dpdk_18_11
dpdk_19_11
libconfig
libpcap
numactl
Expand All @@ -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;

Expand Down
17 changes: 0 additions & 17 deletions pkgs/os-specific/linux/pktgen/configure.patch

This file was deleted.

24 changes: 14 additions & 10 deletions pkgs/os-specific/linux/pktgen/default.nix
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion pkgs/servers/etebase/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/servers/nosql/redis/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/misc/ytfzf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
Loading

0 comments on commit 39f8014

Please sign in to comment.