forked from mirrors/nixpkgs
27fcb342c4
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done: - built on NixOS - ran `/nix/store/1w5mk97wzbp6xdwj0phwmdr0z7rfc1nf-fwup-1.0.0/bin/fwup -h` got 0 exit code - ran `/nix/store/1w5mk97wzbp6xdwj0phwmdr0z7rfc1nf-fwup-1.0.0/bin/fwup --help` got 0 exit code - ran `/nix/store/1w5mk97wzbp6xdwj0phwmdr0z7rfc1nf-fwup-1.0.0/bin/fwup --version` and found version 1.0.0 - found 1.0.0 with grep in /nix/store/1w5mk97wzbp6xdwj0phwmdr0z7rfc1nf-fwup-1.0.0 - directory tree listing: https://gist.github.com/9b3eafd6e201b20c76f1f8f4d8ed13f8
37 lines
1.2 KiB
Nix
37 lines
1.2 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.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fhunleth";
|
|
repo = "fwup";
|
|
rev = "v${version}";
|
|
sha256 = "1v79q5s4lm8scrz9nmqcszyh40is6k7hkr15r4aljyfbp1gamsfs";
|
|
};
|
|
|
|
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 ];
|
|
|
|
# segfaults on darwin without
|
|
NIX_LDFLAGS = lib.optional stdenv.isDarwin "-F/System/Library/Frameworks";
|
|
|
|
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;
|
|
};
|
|
}
|