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";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "1.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fhunleth";
|
|
|
|
repo = "fwup";
|
|
|
|
rev = "v${version}";
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "sha256-ARwBm9p6o/iC09F6pc5c4qq3WClNTyAvLPsG58YQOAM=";
|
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
|
2021-07-14 22:03:04 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2021-02-19 19:06:45 +00:00
|
|
|
DiskArbitration
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
coreutils
|
|
|
|
dosfstools
|
|
|
|
mtools
|
|
|
|
unzip
|
|
|
|
zip
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
which
|
|
|
|
xdelta
|
|
|
|
];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
doCheck = !stdenv.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;
|
|
|
|
};
|
|
|
|
}
|