Merge pull request #111006 from fabaff/bump-fwup

fwup: 1.5.2 -> 1.8.3
This commit is contained in:
Sandro 2021-02-19 14:47:39 +01:00 committed by GitHub
commit c2c24f1940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 13 deletions

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";

View File

@ -2352,7 +2352,9 @@ in
qt-video-wlr = libsForQt5.callPackage ../applications/misc/qt-video-wlr { };
fwup = callPackage ../tools/misc/fwup { };
fwup = callPackage ../tools/misc/fwup {
inherit (darwin.apple_sdk.frameworks) DiskArbitration;
};
fx_cast_bridge = callPackage ../tools/misc/fx_cast { };