@@ -1,66 +0,0 @@
1−{ efivar, fetchurl, gettext, gnu-efi, libsmbios, pkgconfig, popt, stdenv }:
2−
3−let
4− version = "12";
5−
6− arch =
7− if stdenv.hostPlatform.isx86_32
8− then "ia32"
9− else stdenv.hostPlatform.parsed.cpu.name;
10−
11−in stdenv.mkDerivation {
12− pname = "fwupdate";
13− inherit version;
14− src = fetchurl {
15− url = "https://github.com/rhinstaller/fwupdate/releases/download/${version}/fwupdate-${version}.tar.bz2";
16− sha256 = "00w7jsg7wrlq4cpfz26m9rbv2jwyf0sansf343vfq02fy5lxars1";
17− };
18−
19− patches = [
20− ./do-not-create-sharedstatedir.patch
21− ];
22−
23− NIX_CFLAGS_COMPILE = builtins.toString [
24− "-I${gnu-efi}/include/efi"
25− "-I${gnu-efi}/include/efi/${arch}"
26− "-Wno-error=address-of-packed-member"
27− ];
28−
29− # TODO: Just apply the disable to the efi subdir
30− hardeningDisable = [ "stackprotector" ];
31−
32− makeFlags = [
33− "EFIDIR=nixos"
34− "prefix=$(out)"
35− "LIBDIR=$(out)/lib"
36− "GNUEFIDIR=${gnu-efi}/lib"
37− "ESPMOUNTPOINT=$(out)/boot"
38− ];
39−
40− nativeBuildInputs = [
41− pkgconfig
42− gettext
43− ];
44−
45− buildInputs = [
46− gnu-efi
47− libsmbios
48− popt
49− ];
50−
51− propagatedBuildInputs = [
52− efivar
53− ];
54−
55− postInstall = ''
56− rm -rf $out/src
57− rm -rf $out/lib/debug
58− '';
59−
60− meta = with stdenv.lib; {
61− description = "Tools for using the ESRT and UpdateCapsule() to apply firmware updates";
62− maintainers = with maintainers; [ ];
63− license = licenses.gpl2;
64− platforms = platforms.linux;
65− };
66−}