5ef7241e1a
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. These checks were done: - built on NixOS - ran ‘/nix/store/37baank8iw1ksnyhg0m90y0p9sazyhv7-fwup-1.1.0/bin/fwup -h’ got 0 exit code - ran ‘/nix/store/37baank8iw1ksnyhg0m90y0p9sazyhv7-fwup-1.1.0/bin/fwup --help’ got 0 exit code - ran ‘/nix/store/37baank8iw1ksnyhg0m90y0p9sazyhv7-fwup-1.1.0/bin/fwup --version’ and found version 1.1.0 - found 1.1.0 with grep in /nix/store/37baank8iw1ksnyhg0m90y0p9sazyhv7-fwup-1.1.0 - directory tree listing: https://gist.github.com/eafe4f2b1c0b7a6fac5a4910f383ee94
33 lines
1.1 KiB
Nix
33 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.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fhunleth";
|
|
repo = "fwup";
|
|
rev = "v${version}";
|
|
sha256 = "1jhl50yj5h6wl3fx1hcqi4vb7633srmbbcpsgajprc5fxscjgapm";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|