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

39 lines
1.1 KiB
Nix
Raw Normal View History

{ rustPlatform, lib, fetchFromGitHub, lzma, 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
};
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
2020-09-23 11:01:05 +01:00
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";
2021-01-29 21:57:11 +00:00
cargoSha256 = "sha256-TISYaSOu8c+74ie4QHLqflXfLWwcLHEOch/hAx3iu60=";
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;
};
}