summary refs log tree commit diff
path: root/pkgs/os-specific/linux/firmware/fwupd
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2017-02-27 08:38:49 -0500
committerShea Levy <shea@shealevy.com>2017-02-27 08:38:49 -0500
commit8307307e4e96c7947efdb1b337071df30ac7bfe6 (patch)
tree1d91feb6d4e56a2e579992e7ea997b530bd22293 /pkgs/os-specific/linux/firmware/fwupd
parent40e136542ecce03ce23ae1c8c35fa69ff075922d (diff)
downloadnixpkgs-8307307e4e96c7947efdb1b337071df30ac7bfe6.tar
nixpkgs-8307307e4e96c7947efdb1b337071df30ac7bfe6.tar.gz
nixpkgs-8307307e4e96c7947efdb1b337071df30ac7bfe6.tar.bz2
nixpkgs-8307307e4e96c7947efdb1b337071df30ac7bfe6.tar.lz
nixpkgs-8307307e4e96c7947efdb1b337071df30ac7bfe6.tar.xz
nixpkgs-8307307e4e96c7947efdb1b337071df30ac7bfe6.tar.zst
nixpkgs-8307307e4e96c7947efdb1b337071df30ac7bfe6.zip
fwupd: Init at 0.8.0
Diffstat (limited to 'pkgs/os-specific/linux/firmware/fwupd')
-rw-r--r--pkgs/os-specific/linux/firmware/fwupd/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/firmware/fwupd/default.nix b/pkgs/os-specific/linux/firmware/fwupd/default.nix
new file mode 100644
index 00000000000..610d12b551d
--- /dev/null
+++ b/pkgs/os-specific/linux/firmware/fwupd/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchurl, gtk_doc, pkgconfig, gobjectIntrospection, intltool
+, libgudev, polkit, gcab, appstream-glib, gusb, sqlite, libarchive
+, libsoup, docbook2x, gpgme, libxslt, libelf, libsmbios, efivar
+, fwupdate, libgpgerror, libyaml
+}:
+let version = "0.8.0"; in
+  stdenv.mkDerivation
+    { name = "fwupd-${version}";
+      src = fetchurl
+        { url = "https://people.freedesktop.org/~hughsient/releases/fwupd-${version}.tar.xz";
+          sha256 = "1irr7xr0slfpm7pvlc9ysy85d51fv0gss6cv0w4sc5p7rhvjx69g";
+        };
+      buildInputs =
+        [ gtk_doc pkgconfig gobjectIntrospection intltool libgudev
+          polkit gcab appstream-glib gusb sqlite libarchive libsoup
+          docbook2x libxslt libelf libsmbios fwupdate libyaml
+        ];
+      patchPhase = ''
+        sed -i -e \
+          's|/usr/bin/gpgme-config|${gpgme.dev}/bin/gpgme-config|' -e \
+          's|/usr/bin/gpg-error-config|${libgpgerror.dev}/bin/gpg-error-config|' \
+          ./configure
+      '';
+      preConfigure = ''
+        export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${efivar}/include/efivar"
+      '';
+      configureFlags =
+        [ "--with-systemdunitdir=$out/lib/systemd/system"
+          "--with-udevrulesdir=$out/lib/udev/rules.d"
+        ];
+      enableParallelBuilding = true;
+      meta =
+        { license = [ stdenv.lib.licenses.gpl2 ];
+          platforms = stdenv.lib.platforms.linux;
+        };
+    }