Merge branch 'staging-next' into staging

Resolved the following conflicts:

- kernel flags between 09176d28a0 and 2b28822d8d
- clojure-lsp between 3fa00685ce and e03c068af5
This commit is contained in:
Jan Tojnar
2021-02-19 17:15:31 +01:00
62 changed files with 454 additions and 163 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, stdenv, callPackage, fetchFromGitHub, bash, makeWrapper, bat
{ lib, stdenv, fetchFromGitHub, bash, makeWrapper, bat
# batdiff, batgrep, and batwatch
, coreutils
, less
+53 -12
View File
@@ -1,27 +1,68 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook, makeWrapper, pkg-config
, zlib, lzma, bzip2, mtools, dosfstools, zip, unzip, libconfuse, libsodium
, libarchive, darwin, coreutils }:
{ stdenv
, lib
, fetchFromGitHub
, autoreconfHook
, DiskArbitration
, pkg-config
, bzip2
, libarchive
, libconfuse
, libsodium
, lzma
, zlib
, coreutils
, dosfstools
, mtools
, unzip
, zip
, which
, xdelta
}:
stdenv.mkDerivation rec {
pname = "fwup";
version = "1.5.2";
version = "1.8.3";
src = fetchFromGitHub {
owner = "fhunleth";
repo = "fwup";
rev = "v${version}";
sha256 = "05sjdlh450hk474a44yr6kz9dzx72jfxpi1krxbd0pdizlmfypsg";
sha256 = "sha256-ayfcnIZ7MuBsCy1giwmY2D2C6AukwS+fevmXqGa4c1w=";
};
doCheck = true;
patches = lib.optional stdenv.isDarwin [ ./fix-testrunner-darwin.patch ];
patches = [ ./fix-testrunner-darwin.patch ];
nativeBuildInputs = [ pkg-config autoreconfHook makeWrapper ];
buildInputs = [ zlib lzma bzip2 libconfuse libsodium libarchive ]
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
bzip2
libarchive
libconfuse
libsodium
lzma
zlib
]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.DiskArbitration
];
propagatedBuildInputs = [ zip unzip mtools dosfstools coreutils ];
DiskArbitration
];
propagatedBuildInputs = [
coreutils
dosfstools
mtools
unzip
zip
];
checkInputs = [
which
xdelta
];
doCheck = true;
meta = with lib; {
description = "Configurable embedded Linux firmware update creator and runner";
+2 -3
View File
@@ -15,9 +15,8 @@ stdenv.mkDerivation rec {
# getting sourced, not executed:
postPatch = ''
substituteInPlace direnvrc \
--replace "grep" "${gnugrep}/bin/grep" \
--replace "nix-shell" "${nix}/bin/nix-shell" \
--replace "nix-instantiate" "${nix}/bin/nix-instantiate"
--replace "\''${NIX_BIN_PREFIX:-}" "\''${NIX_BIN_PREFIX:-${nix}/bin/}" \
--replace "grep" "${gnugrep}/bin/grep"
'';
installPhase = ''
+5 -12
View File
@@ -1,21 +1,14 @@
{ fetchurl, lib, stdenv, perl, makeWrapper, procps, coreutils }:
stdenv.mkDerivation rec {
name = "parallel-20200922";
pname = "parallel";
version = "20210122";
src = fetchurl {
url = "mirror://gnu/parallel/${name}.tar.bz2";
sha256 = "0wj19kwjk0hwm8bk9yfcf3rpr0314lmjy5xxlvvdqnbbc4ml2418";
url = "mirror://gnu/parallel/${pname}-${version}.tar.bz2";
sha256 = "1wxkqz6ld1bp0ilvc04vhq99qjay1nl6pbk3qzvp3sjavv9vdwdl";
};
patches = [
./fix-max-line-length-allowed.diff
];
postPatch = ''
substituteInPlace src/parallel --subst-var-by coreutils ${coreutils}
'';
outputs = [ "out" "man" "doc" ];
nativeBuildInputs = [ makeWrapper ];
@@ -23,7 +16,7 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/parallel \
--prefix PATH : "${lib.makeBinPath [ procps perl ]}"
--prefix PATH : "${lib.makeBinPath [ procps perl coreutils ]}"
'';
doCheck = true;
@@ -1,17 +0,0 @@
Correct path to coreutils echo to fix parallel --max-line-length-allowed.
Author: Bjørn Forsman
diff --git a/src/parallel b/src/parallel
index a047fd94..9fc5f671 100755
--- a/src/parallel
+++ b/src/parallel
@@ -11580,7 +11580,7 @@ sub is_acceptable_command_line_length($$) {
$len += length $Global::parallel_env;
}
# Force using non-built-in command
- ::qqx("/bin/echo ".${string}x(($len-length "/bin/echo ")/length $string));
+ ::qqx("@coreutils@/bin/echo ".${string}x(($len-length "@coreutils@/bin/echo ")/length $string));
::debug("init", "$len=$? ");
return not $?;
}