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-07-14 22:03:04 +00:00
|
|
|
version = "1.8.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fhunleth";
|
|
|
|
repo = "fwup";
|
|
|
|
rev = "v${version}";
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "sha256-NaSA3mFWf3C03SAGssMqLT0vr5KMfxD5y/iragGNKjw=";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
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;
|
|
|
|
};
|
|
|
|
}
|