2017-04-01 19:38:40 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, makeWrapper, pkgconfig
|
|
|
|
, zlib, lzma, bzip2, mtools, dosfstools, zip, unzip, libconfuse, libsodium
|
|
|
|
, libarchive, darwin, coreutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fwup-${version}";
|
2018-06-19 22:28:55 +02:00
|
|
|
version = "1.2.1";
|
2017-04-01 19:38:40 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fhunleth";
|
|
|
|
repo = "fwup";
|
|
|
|
rev = "v${version}";
|
2018-06-19 22:28:55 +02:00
|
|
|
sha256 = "14a3bd84bnnxdrf1x80w860mhm3x4cy9jp9sf9643svq4bky4i41";
|
2017-04-01 19:38:40 +02: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;
|
|
|
|
};
|
|
|
|
}
|