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

51 lines
1.5 KiB
Nix
Raw Normal View History

2017-02-27 13:38:49 +00:00
{ stdenv, fetchurl, gtk_doc, pkgconfig, gobjectIntrospection, intltool
2017-09-18 13:14:21 +00: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
2017-12-17 08:16:38 +00:00
, pillow, ninja, gcab, gnutls, python3Packages, wrapGAppsHook, json_glib
2017-02-27 13:38:49 +00:00
}:
2017-09-18 13:14:21 +00:00
let
2017-12-17 08:16:38 +00:00
version = "1.0.4";
2017-09-18 13:14:21 +00:00
in stdenv.mkDerivation {
name = "fwupd-${version}";
src = fetchurl {
url = "https://people.freedesktop.org/~hughsient/releases/fwupd-${version}.tar.xz";
2017-12-17 08:16:38 +00:00
sha256 = "1n4d6fw3ffg051072hbxn106s52x2wlh5dh2kxwdfjsb5kh03ra3";
2017-09-18 13:14:21 +00: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
2017-12-17 08:16:38 +00:00
libgudev colord gpgme libuuid pillow gnutls glib_networking efivar json_glib
2017-09-18 13:14:21 +00:00
];
LC_ALL = "en_US.UTF-8"; # For po/make-images
patches = [
./fix-missing-deps.patch
];
postPatch = ''
patchShebangs .
'';
mesonFlags = [
2017-12-17 08:16:38 +00:00
"-Dman=false"
"-Dtests=false"
"-Dgtkdoc=false"
"-Dbootdir=/boot"
"-Dudevdir=lib/udev"
"-Dsystemdunitdir=lib/systemd/system"
2017-09-18 13:14:21 +00:00
"--localstatedir=/var"
];
enableParallelBuilding = true;
meta = {
homepage = https://fwupd.org/;
license = [ stdenv.lib.licenses.gpl2 ];
platforms = stdenv.lib.platforms.linux;
};
}