1{ lib, stdenv, fetchurl, pkgconfig, libftdi, pciutils }:
2
3let version = "1.0"; in
4stdenv.mkDerivation rec {
5 name = "flashrom-${version}";
6
7 src = fetchurl {
8 url = "http://download.flashrom.org/releases/${name}.tar.bz2";
9 sha256 = "0i9wg1lyfg99bld7d00zqjm9f0lk6m0q3h3n9c195c9yysq5ccfb";
10 };
11
12 nativeBuildInputs = [ pkgconfig ];
13 buildInputs = [ libftdi pciutils ];
14
15 preConfigure = "export PREFIX=$out";
16
17 meta = with lib; {
18 homepage = http://www.flashrom.org;
19 description = "Utility for reading, writing, erasing and verifying flash ROM chips";
20 license = licenses.gpl2;
21 maintainers = with maintainers; [ funfunctor fpletz ];
22 platforms = with platforms; linux;
23 };
24}