nixpkgs/pkgs/os-specific/linux/firmware/fwupd/default.nix

57 lines
1.6 KiB
Nix
Raw Normal View History

2017-02-27 05:38:49 -08:00
{ stdenv, fetchurl, gtk_doc, pkgconfig, gobjectIntrospection, intltool
2017-09-18 06:14:21 -07:00
, libgudev, polkit, appstream-glib, gusb, sqlite, libarchive, glib_networking
, libsoup, docbook2x, gpgme, libxslt, libelf, libsmbios, efivar, glibcLocales
, fwupdate, libyaml, valgrind, meson, libuuid, pygobject3, colord
, pillow, ninja, gcab, gnutls, python3Packages, wrapGAppsHook
2017-02-27 05:38:49 -08:00
}:
2017-09-18 06:14:21 -07:00
let
2017-12-17 00:08:05 -08:00
version = "1.0.2";
2017-09-18 06:14:21 -07:00
in stdenv.mkDerivation {
name = "fwupd-${version}";
src = fetchurl {
url = "https://people.freedesktop.org/~hughsient/releases/fwupd-${version}.tar.xz";
2017-12-17 00:08:05 -08:00
sha256 = "15hrl6jq2kyvbxgjkv3qafqj2962il27gryakm39kvz2p2l1bacj";
2017-09-18 06:14:21 -07:00
};
nativeBuildInputs = [
meson ninja gtk_doc pkgconfig gobjectIntrospection intltool glibcLocales
valgrind gcab docbook2x libxslt pygobject3 python3Packages.pycairo wrapGAppsHook
];
buildInputs = [
polkit appstream-glib gusb sqlite libarchive libsoup libelf libsmbios fwupdate libyaml
libgudev colord gpgme libuuid pillow gnutls glib_networking
];
LC_ALL = "en_US.UTF-8"; # For po/make-images
NIX_CFLAGS_COMPILE = [
"-I${efivar}/include/efivar"
# warning: "__LIBELF_INTERNAL__" is not defined
"-Wno-error=undef"
];
patches = [
./fix-missing-deps.patch
];
postPatch = ''
patchShebangs .
'';
mesonFlags = [
"-Denable-man=false"
"-Denable-tests=false"
"-Denable-doc=false"
"-Dwith-bootdir=/boot"
"-Dwith-udevdir=lib/udev"
"-Dwith-systemdunitdir=lib/systemd/system"
"--localstatedir=/var"
];
enableParallelBuilding = true;
meta = {
homepage = https://fwupd.org/;
license = [ stdenv.lib.licenses.gpl2 ];
platforms = stdenv.lib.platforms.linux;
};
}