diff options
author | Luflosi <luflosi@luflosi.de> | 2023-12-12 15:46:05 +0100 |
---|---|---|
committer | Luflosi <luflosi@luflosi.de> | 2023-12-12 15:57:10 +0100 |
commit | 7e8102be932defe23e6fde641bbd93729c667f83 (patch) | |
tree | c1f5a4caa34423e6192f60cea20225344d0948f5 /pkgs | |
parent | 13c8727ad89482fb0d0bf02eb43e00c19dc6aa96 (diff) |
raspberrypi-eeprom: cleanup
- Move each function argument into its own line for better git diffs in the future - Use `finalAttrs` instead of `rec`
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/ra/raspberrypi-eeprom/package.nix | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/by-name/ra/raspberrypi-eeprom/package.nix b/pkgs/by-name/ra/raspberrypi-eeprom/package.nix index 1cac9e4006271..b8f14c5f8a6a1 100644 --- a/pkgs/by-name/ra/raspberrypi-eeprom/package.nix +++ b/pkgs/by-name/ra/raspberrypi-eeprom/package.nix @@ -1,14 +1,23 @@ -{ stdenvNoCC, lib, fetchFromGitHub, makeWrapper -, python3, binutils-unwrapped, findutils, gawk, kmod, pciutils, libraspberrypi +{ stdenvNoCC +, lib +, fetchFromGitHub +, makeWrapper +, python3 +, binutils-unwrapped +, findutils +, gawk +, kmod +, pciutils +, libraspberrypi }: -stdenvNoCC.mkDerivation rec { +stdenvNoCC.mkDerivation (finalAttrs: { pname = "raspberrypi-eeprom"; version = "2023.10.30-2712"; src = fetchFromGitHub { owner = "raspberrypi"; repo = "rpi-eeprom"; - rev = "refs/tags/v${version}"; + rev = "refs/tags/v${finalAttrs.version}"; hash = "sha256-TKvby0qIXidM5Qk7q+ovLk0DpHsCbdQe7xndrgKrSXk="; }; @@ -60,4 +69,4 @@ stdenvNoCC.mkDerivation rec { maintainers = with maintainers; [ das_j Luflosi ]; platforms = platforms.linux; }; -} +}) |