diff options
author | Emily <vcs@emily.moe> | 2020-02-16 20:14:13 +0000 |
---|---|---|
committer | Emily <vcs@emily.moe> | 2020-02-16 20:19:09 +0000 |
commit | 3388643b8e72254a679e1382af60c1e63f62bfa2 (patch) | |
tree | 9a382eedb6d124e39d1c79941b993526b178f9a5 /pkgs/tools/misc/flashrom | |
parent | 7695e9e1fa582751b2af2f0e40703ec2701c5366 (diff) |
flashrom: switch to Meson build and update deps
Diffstat (limited to 'pkgs/tools/misc/flashrom')
-rw-r--r-- | pkgs/tools/misc/flashrom/default.nix | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/pkgs/tools/misc/flashrom/default.nix b/pkgs/tools/misc/flashrom/default.nix index 143bc805decdb..3b9e600dcdbe3 100644 --- a/pkgs/tools/misc/flashrom/default.nix +++ b/pkgs/tools/misc/flashrom/default.nix @@ -1,4 +1,13 @@ -{ lib, stdenv, fetchurl, pkgconfig, libftdi, pciutils }: +{ lib +, stdenv +, fetchurl +, meson +, ninja +, pkgconfig +, libftdi1 +, libusb1 +, pciutils +}: stdenv.mkDerivation rec { pname = "flashrom"; @@ -9,23 +18,16 @@ stdenv.mkDerivation rec { sha256 = "0ax4kqnh7kd3z120ypgp73qy1knz47l6qxsqzrfkd97mh5cdky71"; }; - # Newer versions of libusb deprecate some API flashrom uses. - #postPatch = '' - # substituteInPlace Makefile \ - # --replace "-Werror" "-Werror -Wno-error=deprecated-declarations -Wno-error=unused-const-variable=" - #''; - - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ libftdi pciutils ]; - - preConfigure = "export PREFIX=$out"; + nativeBuildInputs = [ meson pkgconfig ninja ]; + buildInputs = [ libftdi1 libusb1 pciutils ]; meta = with lib; { homepage = http://www.flashrom.org; description = "Utility for reading, writing, erasing and verifying flash ROM chips"; license = licenses.gpl2; maintainers = with maintainers; [ funfunctor fpletz ]; - platforms = with platforms; linux; + platforms = platforms.all; + # https://github.com/flashrom/flashrom/issues/125 badPlatforms = [ "aarch64-linux" ]; }; } |