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

75 lines
1.1 KiB
Nix
Raw Normal View History

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