karabiner-elements: switch to finalAttrs pattern

This commit is contained in:
DontEatOreo 2024-08-19 01:43:30 +03:00
parent b941404ab9
commit e5aa8e2182
No known key found for this signature in database
GPG Key ID: 0DB5361BEEE530AB

View File

@ -8,12 +8,12 @@
nix-update-script,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "karabiner-elements";
version = "14.13.0";
src = fetchurl {
url = "https://github.com/pqrs-org/Karabiner-Elements/releases/download/v${version}/Karabiner-Elements-${version}.dmg";
url = "https://github.com/pqrs-org/Karabiner-Elements/releases/download/v${finalAttrs.version}/Karabiner-Elements-${finalAttrs.version}.dmg";
sha256 = "sha256-gmJwoht/Tfm5qMecmq1N6PSAIfWOqsvuHU8VDJY8bLw=";
};
@ -58,11 +58,11 @@ stdenv.mkDerivation rec {
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/pqrs-org/Karabiner-Elements/releases/tag/v${version}";
changelog = "https://github.com/pqrs-org/Karabiner-Elements/releases/tag/v${finalAttrs.version}";
description = "Karabiner-Elements is a powerful utility for keyboard customization on macOS Ventura (13) or later";
homepage = "https://karabiner-elements.pqrs.org/";
license = lib.licenses.unlicense;
maintainers = [ ];
platforms = lib.platforms.darwin;
};
}
})