nixpkgs/pkgs/tools/misc/fwup/default.nix

75 lines
1.1 KiB
Nix
Raw Normal View History

2021-02-19 09:32:37 +00:00
{ stdenv
, lib
, fetchFromGitHub
, autoreconfHook
, DiskArbitration
, pkg-config
, bzip2
, libarchive
, libconfuse
, libsodium
, lzma
, zlib
, coreutils
, dosfstools
, mtools
, unzip
, zip
, which
, xdelta
}:
2017-04-01 18:38:40 +01:00
stdenv.mkDerivation rec {
pname = "fwup";
2021-02-19 09:32:37 +00:00
version = "1.8.3";
2017-04-01 18:38:40 +01:00
src = fetchFromGitHub {
owner = "fhunleth";
repo = "fwup";
rev = "v${version}";
2021-02-19 09:32:37 +00:00
sha256 = "sha256-ayfcnIZ7MuBsCy1giwmY2D2C6AukwS+fevmXqGa4c1w=";
2017-04-01 18:38:40 +01:00
};
2021-02-19 09:32:37 +00:00
patches = [ ./fix-testrunner-darwin.patch ];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
2017-04-01 18:38:40 +01:00
2021-02-19 09:32:37 +00:00
buildInputs = [
bzip2
libarchive
libconfuse
libsodium
lzma
zlib
]
2017-04-01 18:38:40 +01:00
++ lib.optionals stdenv.isDarwin [
2021-02-19 09:32:37 +00:00
DiskArbitration
];
propagatedBuildInputs = [
coreutils
dosfstools
mtools
unzip
zip
];
checkInputs = [
which
xdelta
];
doCheck = true;
2017-04-01 18:38:40 +01:00
meta = with lib; {
2017-04-01 18:38:40 +01:00
description = "Configurable embedded Linux firmware update creator and runner";
2020-04-01 13:04:49 +01:00
homepage = "https://github.com/fhunleth/fwup";
2017-04-01 18:38:40 +01:00
license = licenses.asl20;
maintainers = [ maintainers.georgewhewell ];
platforms = platforms.all;
};
}