2021-02-19 09:32:37 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, DiskArbitration
|
|
|
|
, pkg-config
|
|
|
|
, bzip2
|
|
|
|
, libarchive
|
|
|
|
, libconfuse
|
|
|
|
, libsodium
|
2021-03-14 18:12:53 +00:00
|
|
|
, xz
|
2021-02-19 09:32:37 +00:00
|
|
|
, zlib
|
|
|
|
, coreutils
|
|
|
|
, dosfstools
|
|
|
|
, mtools
|
|
|
|
, unzip
|
|
|
|
, zip
|
|
|
|
, which
|
|
|
|
, xdelta
|
|
|
|
}:
|
2017-04-01 17:38:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "fwup";
|
2023-08-02 11:03:23 +00:00
|
|
|
version = "1.10.1";
|
2017-04-01 17:38:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fhunleth";
|
|
|
|
repo = "fwup";
|
|
|
|
rev = "v${version}";
|
2023-08-02 11:03:23 +00:00
|
|
|
sha256 = "sha256-s2TlxksxGYvRqDwRA7eLlXAyT5uPK2DiL8ma1nNVz5Q=";
|
2017-04-01 17:38:40 +00:00
|
|
|
};
|
|
|
|
|
2021-02-19 09:32:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
2017-04-01 17:38:40 +00:00
|
|
|
|
2021-02-19 09:32:37 +00:00
|
|
|
buildInputs = [
|
|
|
|
bzip2
|
|
|
|
libarchive
|
|
|
|
libconfuse
|
|
|
|
libsodium
|
2021-03-14 18:12:53 +00:00
|
|
|
xz
|
2021-02-19 09:32:37 +00:00
|
|
|
zlib
|
2021-07-09 12:08:05 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2021-02-19 09:32:37 +00:00
|
|
|
DiskArbitration
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
coreutils
|
|
|
|
unzip
|
|
|
|
zip
|
2022-03-26 13:18:27 +00:00
|
|
|
] ++ lib.optionals doCheck [
|
|
|
|
mtools
|
|
|
|
dosfstools
|
2021-02-19 09:32:37 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-19 09:32:37 +00:00
|
|
|
which
|
|
|
|
xdelta
|
|
|
|
];
|
|
|
|
|
2021-05-26 20:00:06 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2017-04-01 17:38:40 +00:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|