1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
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 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
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";
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;
};
}