mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
65 lines
1.4 KiB
Nix
65 lines
1.4 KiB
Nix
{
|
|
rustPlatform,
|
|
lib,
|
|
fetchFromGitHub,
|
|
xz,
|
|
pkg-config,
|
|
openssl,
|
|
dbus,
|
|
efibootmgr,
|
|
makeWrapper,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "system76-firmware";
|
|
# Check Makefile when updating, make sure postInstall matches make install
|
|
version = "1.0.50";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pop-os";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-nLbDhs+FxIcoVK66bwUAxAubikic5NT8yOA/mH/irgQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
xz
|
|
openssl
|
|
dbus
|
|
];
|
|
|
|
cargoBuildFlags = [ "--workspace" ];
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"ecflash-0.1.0" = "sha256-W613wbW54R65/rs6oiPAH/qov2OVEjMMszpUJdX4TxI=";
|
|
};
|
|
};
|
|
|
|
# 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 = with lib; {
|
|
description = "Tools for managing firmware updates for system76 devices";
|
|
homepage = "https://github.com/pop-os/system76-firmware";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ shlevy ];
|
|
platforms = [
|
|
"i686-linux"
|
|
"x86_64-linux"
|
|
];
|
|
};
|
|
}
|