mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
karabiner-elements: switch to finalAttrs pattern
This commit is contained in:
parent
b941404ab9
commit
e5aa8e2182
@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user