3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/fwup/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

73 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
2021-03-14 18:12:53 +00:00
, xz
2021-02-19 09:32:37 +00:00
, zlib
, coreutils
, dosfstools
, mtools
, unzip
, zip
, which
, xdelta
}:
2017-04-01 18:38:40 +01:00
stdenv.mkDerivation rec {
pname = "fwup";
2021-08-14 10:17:29 +01:00
version = "1.9.0";
2017-04-01 18:38:40 +01:00
src = fetchFromGitHub {
owner = "fhunleth";
repo = "fwup";
rev = "v${version}";
2021-08-14 10:17:29 +01:00
sha256 = "sha256-ARwBm9p6o/iC09F6pc5c4qq3WClNTyAvLPsG58YQOAM=";
2017-04-01 18:38:40 +01:00
};
2021-02-19 09:32:37 +00:00
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
2021-03-14 18:12:53 +00:00
xz
2021-02-19 09:32:37 +00:00
zlib
2021-07-09 13:08:05 +01:00
] ++ lib.optionals stdenv.isDarwin [
2021-02-19 09:32:37 +00:00
DiskArbitration
];
propagatedBuildInputs = [
coreutils
unzip
zip
] ++ lib.optionals doCheck [
mtools
dosfstools
2021-02-19 09:32:37 +00:00
];
checkInputs = [
which
xdelta
];
2021-05-26 21:00:06 +01:00
doCheck = !stdenv.isDarwin;
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;
};
}