2021-01-17 03:51:22 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, makeWrapper, pkg-config
|
2017-04-01 17:38:40 +00:00
|
|
|
, zlib, lzma, bzip2, mtools, dosfstools, zip, unzip, libconfuse, libsodium
|
|
|
|
, libarchive, darwin, coreutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fwup";
|
2020-04-01 12:04:49 +00:00
|
|
|
version = "1.5.2";
|
2017-04-01 17:38:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fhunleth";
|
|
|
|
repo = "fwup";
|
|
|
|
rev = "v${version}";
|
2020-04-01 12:04:49 +00:00
|
|
|
sha256 = "05sjdlh450hk474a44yr6kz9dzx72jfxpi1krxbd0pdizlmfypsg";
|
2017-04-01 17:38:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
patches = lib.optional stdenv.isDarwin [ ./fix-testrunner-darwin.patch ];
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook makeWrapper ];
|
2017-04-01 17:38:40 +00:00
|
|
|
buildInputs = [ zlib lzma bzip2 libconfuse libsodium libarchive ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.DiskArbitration
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [ zip unzip mtools dosfstools coreutils ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-04-01 17:38:40 +00:00
|
|
|
description = "Configurable embedded Linux firmware update creator and runner";
|
2020-04-01 12:04:49 +00:00
|
|
|
homepage = "https://github.com/fhunleth/fwup";
|
2017-04-01 17:38:40 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.georgewhewell ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|