diff options
author | Shea Levy <shea@shealevy.com> | 2020-09-22 20:14:14 -0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2020-09-22 20:14:29 -0400 |
commit | f43c02c7ff649a0594937b5b99c4276d9d89b61f (patch) | |
tree | 3ed94ebab5abab53250268bbe694fff9411917c2 | |
parent | fccf069e7735b03f002150f1a9655a8831a90465 (diff) | |
download | nixpkgs-f43c02c7ff649a0594937b5b99c4276d9d89b61f.tar nixpkgs-f43c02c7ff649a0594937b5b99c4276d9d89b61f.tar.gz nixpkgs-f43c02c7ff649a0594937b5b99c4276d9d89b61f.tar.bz2 nixpkgs-f43c02c7ff649a0594937b5b99c4276d9d89b61f.tar.lz nixpkgs-f43c02c7ff649a0594937b5b99c4276d9d89b61f.tar.xz nixpkgs-f43c02c7ff649a0594937b5b99c4276d9d89b61f.tar.zst nixpkgs-f43c02c7ff649a0594937b5b99c4276d9d89b61f.zip |
system76-firmware: Init at 1.0.17
-rw-r--r-- | pkgs/os-specific/linux/firmware/system76-firmware/default.nix | 39 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/firmware/system76-firmware/default.nix b/pkgs/os-specific/linux/firmware/system76-firmware/default.nix new file mode 100644 index 00000000000..40598abac92 --- /dev/null +++ b/pkgs/os-specific/linux/firmware/system76-firmware/default.nix @@ -0,0 +1,39 @@ +{ rustPlatform, lib, fetchFromGitHub, lzma, pkgconfig, openssl, dbus, efibootmgr, makeWrapper }: +rustPlatform.buildRustPackage rec { + pname = "system76-firmware"; + # Check Makefile when updating, make sure postInstall matches make install + version = "1.0.17"; + + src = fetchFromGitHub { + owner = "pop-os"; + repo = pname; + rev = version; + sha256 = "0cnrskfk3sam90lfpgsraqs4bx9yz8rxhwfs8rxdri04lakxgghg"; + }; + + nativeBuildInputs = [ pkgconfig makeWrapper ]; + + buildInputs = [ lzma openssl dbus ]; + + cargoBuildFlags = [ "--workspace" ]; + + cargoSha256 = "06jrmxy68glcmbn9px29wc0s8pqdn26iy4jn3c246dapv1zvbb4s"; + + # Purposefully don't install systemd unit file, that's for NixOS + postInstall = '' + install -D -m -0644 data/system76-firmware-daemon.conf $out/etc/dbus-1/system.d/system76-firmware-daemon.conf + + for bin in $out/bin/system76-firmware-* + do + wrapProgram $bin --prefix PATH : "${efibootmgr}/bin" + done + ''; + + meta = { + description = "Tools for managing firmware updates for system76 devices."; + homepage = "https://github.com/pop-os/system76-firmware"; + license = lib.licenses.gpl3; + maintainers = [ lib.maintainers.shlevy ]; + platforms = lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8e20b70276e..3917c8d10ff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18276,6 +18276,8 @@ in nvme-cli = callPackage ../os-specific/linux/nvme-cli { }; + system76-firmware = callPackage ../os-specific/linux/firmware/system76-firmware { }; + open-vm-tools = callPackage ../applications/virtualization/open-vm-tools { }; open-vm-tools-headless = open-vm-tools.override { withX = false; }; |