1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, xz
, pkg-config
, openssl
, dbus
, glib
, udev
, cairo
, pango
, atk
, gdk-pixbuf
, gtk3
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "firmware-manager";
version = "unstable-2022-12-09";
src = fetchFromGitHub {
owner = "pop-os";
repo = pname;
rev = "9be8160346689bd74f95db7897884a91fa48afe3";
sha256 = "sha256-zZk2RVghhKxETSVv/Jtv8Wq6+ITx/BudE/o7h4jKk5M=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
sha256 = "sha256-3drsOmlmy1xXRWg7WMDNN+iuVmPYf60sDLIdCvu4rEw=";
};
postPatch = ''
substituteInPlace Makefile --replace '$(DESTDIR)/etc' '$(DESTDIR)$(prefix)/etc'
'';
nativeBuildInputs = with rustPlatform; [
rust.cargo
rust.rustc
pkg-config
cargoSetupHook
wrapGAppsHook
];
buildInputs = [
openssl
gtk3
udev
];
makeFlags = [ "prefix=$(out)" ];
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;
};
}
|