Merge branch 'staging-next' into staging
Resolved the following conflicts: - kernel flags between09176d28a0and2b28822d8d- clojure-lsp between3fa00685ceande03c068af5
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, callPackage, fetchFromGitHub, bash, makeWrapper, bat
|
||||
{ lib, stdenv, fetchFromGitHub, bash, makeWrapper, bat
|
||||
# batdiff, batgrep, and batwatch
|
||||
, coreutils
|
||||
, less
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
@@ -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 $?;
|
||||
}
|
||||
Reference in New Issue
Block a user