diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2017-05-19 08:48:32 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2017-05-19 08:57:59 +0200 |
commit | 5aa530f2a8f6ee640b166786a32fbf6788993516 (patch) | |
tree | 4eab3efa3ee765544ec04eccf28a004d81289686 /pkgs/tools/misc/fwup/default.nix | |
parent | cbdcc20e7778630cd67f6425c70d272055e2fecd (diff) | |
parent | 2f22bbe1500dc7439c44daa3d996cc7ac5f3fd15 (diff) | |
download | nixlib-5aa530f2a8f6ee640b166786a32fbf6788993516.tar nixlib-5aa530f2a8f6ee640b166786a32fbf6788993516.tar.gz nixlib-5aa530f2a8f6ee640b166786a32fbf6788993516.tar.bz2 nixlib-5aa530f2a8f6ee640b166786a32fbf6788993516.tar.lz nixlib-5aa530f2a8f6ee640b166786a32fbf6788993516.tar.xz nixlib-5aa530f2a8f6ee640b166786a32fbf6788993516.tar.zst nixlib-5aa530f2a8f6ee640b166786a32fbf6788993516.zip |
Merge branch 'master' into staging
A few thousand rebuilds from master.
Diffstat (limited to 'pkgs/tools/misc/fwup/default.nix')
-rw-r--r-- | pkgs/tools/misc/fwup/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fwup/default.nix b/pkgs/tools/misc/fwup/default.nix new file mode 100644 index 000000000000..5d2b96d3261a --- /dev/null +++ b/pkgs/tools/misc/fwup/default.nix @@ -0,0 +1,36 @@ +{ 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 = "0.14.2"; + + src = fetchFromGitHub { + owner = "fhunleth"; + repo = "fwup"; + rev = "v${version}"; + sha256 = "0ddyiprq4qnqpdhh48bivl8c5yrh21p4r99qs0d1rjiwx5h9p21l"; + }; + + 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; + }; +} |