2021-02-19 19:06:45 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, DiskArbitration
|
|
|
|
, pkg-config
|
|
|
|
, bzip2
|
|
|
|
, libarchive
|
|
|
|
, libconfuse
|
|
|
|
, libsodium
|
2021-04-05 15:23:46 +00:00
|
|
|
, xz
|
2021-02-19 19:06:45 +00:00
|
|
|
, zlib
|
|
|
|
, coreutils
|
|
|
|
, dosfstools
|
|
|
|
, mtools
|
|
|
|
, unzip
|
|
|
|
, zip
|
|
|
|
, which
|
|
|
|
, xdelta
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fwup";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.10.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fhunleth";
|
|
|
|
repo = "fwup";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-SuagtYfLD8yXFpLHNl1J0m5/iapYU+Si6tJl0paStTY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
buildInputs = [
|
|
|
|
bzip2
|
|
|
|
libarchive
|
|
|
|
libconfuse
|
|
|
|
libsodium
|
2021-04-05 15:23:46 +00:00
|
|
|
xz
|
2021-02-19 19:06:45 +00:00
|
|
|
zlib
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2021-02-19 19:06:45 +00:00
|
|
|
DiskArbitration
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
coreutils
|
|
|
|
unzip
|
|
|
|
zip
|
2022-03-30 09:31:56 +00:00
|
|
|
] ++ lib.optionals doCheck [
|
|
|
|
mtools
|
|
|
|
dosfstools
|
2021-02-19 19:06:45 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-19 19:06:45 +00:00
|
|
|
which
|
|
|
|
xdelta
|
|
|
|
];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Configurable embedded Linux firmware update creator and runner";
|
|
|
|
homepage = "https://github.com/fhunleth/fwup";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.georgewhewell ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|