2021-02-19 10:32:37 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, DiskArbitration
|
|
|
|
, pkg-config
|
|
|
|
, bzip2
|
|
|
|
, libarchive
|
|
|
|
, libconfuse
|
|
|
|
, libsodium
|
2021-03-14 19:12:53 +01:00
|
|
|
, xz
|
2021-02-19 10:32:37 +01:00
|
|
|
, zlib
|
|
|
|
, coreutils
|
|
|
|
, dosfstools
|
|
|
|
, mtools
|
|
|
|
, unzip
|
|
|
|
, zip
|
|
|
|
, which
|
|
|
|
, xdelta
|
|
|
|
}:
|
2017-04-01 19:38:40 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "fwup";
|
2021-08-14 11:17:29 +02:00
|
|
|
version = "1.9.0";
|
2017-04-01 19:38:40 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fhunleth";
|
|
|
|
repo = "fwup";
|
|
|
|
rev = "v${version}";
|
2021-08-14 11:17:29 +02:00
|
|
|
sha256 = "sha256-ARwBm9p6o/iC09F6pc5c4qq3WClNTyAvLPsG58YQOAM=";
|
2017-04-01 19:38:40 +02:00
|
|
|
};
|
|
|
|
|
2021-02-19 10:32:37 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
2017-04-01 19:38:40 +02:00
|
|
|
|
2021-02-19 10:32:37 +01:00
|
|
|
buildInputs = [
|
|
|
|
bzip2
|
|
|
|
libarchive
|
|
|
|
libconfuse
|
|
|
|
libsodium
|
2021-03-14 19:12:53 +01:00
|
|
|
xz
|
2021-02-19 10:32:37 +01:00
|
|
|
zlib
|
2021-07-09 14:08:05 +02:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2021-02-19 10:32:37 +01:00
|
|
|
DiskArbitration
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
coreutils
|
|
|
|
dosfstools
|
|
|
|
mtools
|
|
|
|
unzip
|
|
|
|
zip
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
which
|
|
|
|
xdelta
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2017-04-01 19:38:40 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-04-01 19:38:40 +02:00
|
|
|
description = "Configurable embedded Linux firmware update creator and runner";
|
2020-04-01 14:04:49 +02:00
|
|
|
homepage = "https://github.com/fhunleth/fwup";
|
2017-04-01 19:38:40 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.georgewhewell ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|