summary refs log tree commit diff
path: root/pkgs/os-specific/linux/firmware/firmware-manager
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2020-09-23 06:01:05 -0400
committerShea Levy <shea@shealevy.com>2020-09-23 06:01:05 -0400
commitb694eb6e6a0e27c159345ac9651f80ed28fe1a2f (patch)
tree253a9ea79603567c9bcff3c2fda8894b6bb4d445 /pkgs/os-specific/linux/firmware/firmware-manager
parentf43c02c7ff649a0594937b5b99c4276d9d89b61f (diff)
downloadnixpkgs-b694eb6e6a0e27c159345ac9651f80ed28fe1a2f.tar
nixpkgs-b694eb6e6a0e27c159345ac9651f80ed28fe1a2f.tar.gz
nixpkgs-b694eb6e6a0e27c159345ac9651f80ed28fe1a2f.tar.bz2
nixpkgs-b694eb6e6a0e27c159345ac9651f80ed28fe1a2f.tar.lz
nixpkgs-b694eb6e6a0e27c159345ac9651f80ed28fe1a2f.tar.xz
nixpkgs-b694eb6e6a0e27c159345ac9651f80ed28fe1a2f.tar.zst
nixpkgs-b694eb6e6a0e27c159345ac9651f80ed28fe1a2f.zip
firmware-manager: Init at 0.1.1
Diffstat (limited to 'pkgs/os-specific/linux/firmware/firmware-manager')
-rw-r--r--pkgs/os-specific/linux/firmware/firmware-manager/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/firmware/firmware-manager/default.nix b/pkgs/os-specific/linux/firmware/firmware-manager/default.nix
new file mode 100644
index 00000000000..e98de6bbe9e
--- /dev/null
+++ b/pkgs/os-specific/linux/firmware/firmware-manager/default.nix
@@ -0,0 +1,38 @@
+{ rustPlatform, lib, fetchFromGitHub, lzma, pkgconfig, openssl, dbus, glib, udev, cairo, pango, atk, gdk-pixbuf, gtk3, wrapGAppsHook }:
+rustPlatform.buildRustPackage rec {
+  pname = "firmware-manager";
+  version = "0.1.1";
+
+  src = fetchFromGitHub {
+    owner = "pop-os";
+    repo = pname;
+    rev = version;
+    sha256 = "0x9604jsflqxvbkfp139mzjicpyx8v21139jj8bp88c14ngvmdlw";
+  };
+
+  nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
+
+  buildInputs = [ lzma openssl dbus glib udev cairo pango atk gdk-pixbuf gtk3 ];
+
+  depsExtraArgs.postPatch = "make prefix='$(out)' toml-gen";
+
+  postPatch = ''
+    sed -i 's|etc|$(prefix)/etc|' Makefile
+  '';
+
+  buildPhase = "make prefix='$(out)'";
+
+  installPhase = "make prefix='$(out)' install";
+
+  cargoSha256 = "0byc0pqa1w2qnfrx3psrzdq1c8qjslbmzxg872b9v6fr5d4c9cvg";
+
+  doCheck = false;
+
+  meta = {
+    description = "Graphical frontend for firmware management";
+    homepage = "https://github.com/pop-os/firmware-manager";
+    license = lib.licenses.gpl3;
+    maintainers = [ lib.maintainers.shlevy ];
+    platforms = lib.platforms.linux;
+  };
+}