mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
fd1c9d4c9a
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/fwup/versions.
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, autoreconfHook, makeWrapper, pkgconfig
|
|
, zlib, lzma, bzip2, mtools, dosfstools, zip, unzip, libconfuse, libsodium
|
|
, libarchive, darwin, coreutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "fwup-${version}";
|
|
version = "1.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fhunleth";
|
|
repo = "fwup";
|
|
rev = "v${version}";
|
|
sha256 = "16v5s9xwdsii7pcphrb0a7aib2zprrw6n4fyc8w8c11gbkg27r4d";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|