2021-04-05 15:23:46 +00:00
|
|
|
{ rustPlatform, lib, fetchFromGitHub, xz, pkg-config, openssl, dbus, glib, udev, cairo, pango, atk, gdk-pixbuf, gtk3, wrapGAppsHook }:
|
2020-09-25 04:45:31 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "firmware-manager";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "0.1.2";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pop-os";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "sha256-aKatdjHa/k7j48upkR1O6PFxCUfJYE3KhhzZ9Ohe0Jc=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ xz openssl dbus glib udev cairo pango atk gdk-pixbuf gtk3 ];
|
2020-09-25 04:45:31 +00: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-02-13 14:23:35 +00:00
|
|
|
cargoSha256 = "sha256-TISYaSOu8c+74ie4QHLqflXfLWwcLHEOch/hAx3iu60=";
|
2020-09-25 04:45:31 +00: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;
|
|
|
|
};
|
|
|
|
}
|