2021-03-14 18:12:53 +00:00
|
|
|
{ rustPlatform, lib, fetchFromGitHub, xz, pkg-config, openssl, dbus, glib, udev, cairo, pango, atk, gdk-pixbuf, gtk3, wrapGAppsHook }:
|
2020-09-23 11:01:05 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "firmware-manager";
|
2021-01-29 21:57:11 +00:00
|
|
|
version = "0.1.2";
|
2020-09-23 11:01:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pop-os";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-29 21:57:11 +00:00
|
|
|
sha256 = "sha256-aKatdjHa/k7j48upkR1O6PFxCUfJYE3KhhzZ9Ohe0Jc=";
|
2020-09-23 11:01:05 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2020-09-23 11:01:05 +01:00
|
|
|
|
2021-03-14 18:12:53 +00:00
|
|
|
buildInputs = [ xz openssl dbus glib udev cairo pango atk gdk-pixbuf gtk3 ];
|
2020-09-23 11:01:05 +01:00
|
|
|
|
|
|
|
depsExtraArgs.postPatch = "make prefix='$(out)' toml-gen";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's|etc|$(prefix)/etc|' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = "make prefix='$(out)'";
|
|
|
|
|
|
|
|
installPhase = "make prefix='$(out)' install";
|
|
|
|
|
2021-05-07 12:00:49 +01:00
|
|
|
cargoSha256 = "sha256-BUo77ERHvuc8IkDdU3Z/gZZicNHT26IbAgEBnVM3O4U=";
|
2020-09-23 11:01:05 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|