nixpkgs/pkgs/os-specific/linux/firmware/firmware-manager/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

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 10:01:05 +00:00
rustPlatform.buildRustPackage rec {
pname = "firmware-manager";
2021-01-29 21:57:11 +00:00
version = "0.1.2";
2020-09-23 10:01:05 +00: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 10:01:05 +00:00
};
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
2020-09-23 10:01:05 +00:00
2021-03-14 18:12:53 +00:00
buildInputs = [ xz openssl dbus glib udev cairo pango atk gdk-pixbuf gtk3 ];
2020-09-23 10:01:05 +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-01-29 21:57:11 +00:00
cargoSha256 = "sha256-TISYaSOu8c+74ie4QHLqflXfLWwcLHEOch/hAx3iu60=";
2020-09-23 10:01:05 +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;
};
}