2017-04-01 18:38:40 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, makeWrapper, pkgconfig
|
|
|
|
, zlib, lzma, bzip2, mtools, dosfstools, zip, unzip, libconfuse, libsodium
|
|
|
|
, libarchive, darwin, coreutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fwup";
|
2019-11-27 22:50:23 +00:00
|
|
|
version = "1.5.0";
|
2017-04-01 18:38:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fhunleth";
|
|
|
|
repo = "fwup";
|
|
|
|
rev = "v${version}";
|
2019-11-27 22:50:23 +00:00
|
|
|
sha256 = "11jh6pqzgcvzg5i0zhhlc3v4yc2x9bnmd9g8sqzb666jwz3yn7x3";
|
2017-04-01 18:38:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
patches = lib.optional stdenv.isDarwin [ ./fix-testrunner-darwin.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook makeWrapper ];
|
|
|
|
buildInputs = [ zlib lzma bzip2 libconfuse libsodium libarchive ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.DiskArbitration
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [ zip unzip mtools dosfstools coreutils ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Configurable embedded Linux firmware update creator and runner";
|
|
|
|
homepage = https://github.com/fhunleth/fwup;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.georgewhewell ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|