nixpkgs-suyu/pkgs/tools/misc/fwup/default.nix

34 lines
1.1 KiB
Nix
Raw Normal View History

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 {
pname = "fwup";
2020-04-01 14:04:49 +02:00
version = "1.5.2";
2017-04-01 19:38:40 +02:00
src = fetchFromGitHub {
owner = "fhunleth";
repo = "fwup";
rev = "v${version}";
2020-04-01 14:04:49 +02:00
sha256 = "05sjdlh450hk474a44yr6kz9dzx72jfxpi1krxbd0pdizlmfypsg";
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";
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;
};
}