46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
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 {
|
|
pname = "fwup";
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fhunleth";
|
|
repo = "fwup";
|
|
rev = "v${version}";
|
|
sha256 = "058llxr8hbdjl721g76icm0gr50bglcgazwrbp3dxyd9jaa0bzc7";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|