ff0ea571bd
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 - /nix/store/3s224sym5k1x127cdw3325viz8ra5ayk-fwup-1.2.1/bin/fwup passed the binary check. - Warning: no invocation of /nix/store/3s224sym5k1x127cdw3325viz8ra5ayk-fwup-1.2.1/bin/img2fwup had a zero exit code or showed the expected version - 1 of 2 passed binary check by having a zero exit code. - 1 of 2 passed binary check by having the new version present in output. - found 1.2.1 with grep in /nix/store/3s224sym5k1x127cdw3325viz8ra5ayk-fwup-1.2.1 - directory tree listing: https://gist.github.com/1a05338ae9e6c25b9b4629c585534efa - du listing: https://gist.github.com/aa6a7bc6b62cc7b0c47ce36dc0173a5f
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.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fhunleth";
|
|
repo = "fwup";
|
|
rev = "v${version}";
|
|
sha256 = "14a3bd84bnnxdrf1x80w860mhm3x4cy9jp9sf9643svq4bky4i41";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|