fwupdate: remove
https://github.com/rhboot/fwupdate This project is no longer supported. All code has been merged directly into the fwupd project. Please switch to that.
This commit is contained in:
@@ -1,66 +0,0 @@
|
||||
{ efivar, fetchurl, gettext, gnu-efi, libsmbios, pkgconfig, popt, stdenv }:
|
||||
|
||||
let
|
||||
version = "12";
|
||||
|
||||
arch =
|
||||
if stdenv.hostPlatform.isx86_32
|
||||
then "ia32"
|
||||
else stdenv.hostPlatform.parsed.cpu.name;
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
pname = "fwupdate";
|
||||
inherit version;
|
||||
src = fetchurl {
|
||||
url = "https://github.com/rhinstaller/fwupdate/releases/download/${version}/fwupdate-${version}.tar.bz2";
|
||||
sha256 = "00w7jsg7wrlq4cpfz26m9rbv2jwyf0sansf343vfq02fy5lxars1";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./do-not-create-sharedstatedir.patch
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = builtins.toString [
|
||||
"-I${gnu-efi}/include/efi"
|
||||
"-I${gnu-efi}/include/efi/${arch}"
|
||||
"-Wno-error=address-of-packed-member"
|
||||
];
|
||||
|
||||
# TODO: Just apply the disable to the efi subdir
|
||||
hardeningDisable = [ "stackprotector" ];
|
||||
|
||||
makeFlags = [
|
||||
"EFIDIR=nixos"
|
||||
"prefix=$(out)"
|
||||
"LIBDIR=$(out)/lib"
|
||||
"GNUEFIDIR=${gnu-efi}/lib"
|
||||
"ESPMOUNTPOINT=$(out)/boot"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
gettext
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gnu-efi
|
||||
libsmbios
|
||||
popt
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
efivar
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
rm -rf $out/src
|
||||
rm -rf $out/lib/debug
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Tools for using the ESRT and UpdateCapsule() to apply firmware updates";
|
||||
maintainers = with maintainers; [ ];
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
--- a/linux/Makefile
|
||||
+++ b/linux/Makefile
|
||||
@@ -131,7 +131,6 @@
|
||||
ln -fs $(x) $(patsubst %.so.1.$(VERSION),%.so.1,$(DESTDIR)$(libdir)/$(x)) ;\
|
||||
ln -fs $(x) $(patsubst %.so.1.$(VERSION),%.so,$(DESTDIR)$(libdir)/$(x)) ;\
|
||||
)
|
||||
- $(INSTALL) -d -m 755 $(DESTDIR)$(sharedstatedir)/fwupdate/
|
||||
$(INSTALL) -d -m 755 $(DESTDIR)$(libexecdir)/fwupdate/
|
||||
$(INSTALL) -m 755 cleanup $(DESTDIR)$(libexecdir)/fwupdate/cleanup
|
||||
$(INSTALL) -d -m 755 $(DESTDIR)$(libdatadir)/systemd/system
|
||||
Reference in New Issue
Block a user