nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 72 lines 1.2 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 bzip2, 8 libarchive, 9 libconfuse, 10 libsodium, 11 xz, 12 zlib, 13 coreutils, 14 dosfstools, 15 mtools, 16 unzip, 17 zip, 18 which, 19 xdelta, 20}: 21 22stdenv.mkDerivation rec { 23 pname = "fwup"; 24 version = "1.15.0"; 25 26 src = fetchFromGitHub { 27 owner = "fhunleth"; 28 repo = "fwup"; 29 tag = "v${version}"; 30 hash = "sha256-kVkw+/Z3+ZM1wXV/OmfaVPoUKc6MRuz8GRwpvOscuEM="; 31 }; 32 33 nativeBuildInputs = [ 34 autoreconfHook 35 pkg-config 36 ]; 37 38 buildInputs = [ 39 bzip2 40 libarchive 41 libconfuse 42 libsodium 43 xz 44 zlib 45 ]; 46 47 propagatedBuildInputs = [ 48 coreutils 49 unzip 50 zip 51 ] 52 ++ lib.optionals doCheck [ 53 mtools 54 dosfstools 55 ]; 56 57 nativeCheckInputs = [ 58 which 59 xdelta 60 ]; 61 62 doCheck = !stdenv.hostPlatform.isDarwin; 63 64 meta = { 65 changelog = "https://github.com/fwup-home/fwup/blob/${src.tag}/CHANGELOG.md"; 66 description = "Configurable embedded Linux firmware update creator and runner"; 67 homepage = "https://github.com/fhunleth/fwup"; 68 license = lib.licenses.asl20; 69 maintainers = [ lib.maintainers.georgewhewell ]; 70 platforms = lib.platforms.all; 71 }; 72}