diff options
author | John Titor <50095635+JohnRTitor@users.noreply.github.com> | 2024-04-27 17:26:00 +0530 |
---|---|---|
committer | John Titor <50095635+JohnRTitor@users.noreply.github.com> | 2024-04-27 17:26:00 +0530 |
commit | cfb69b971ba2ea92a8f0a7f14bda4f3d09dd99a3 (patch) | |
tree | adc36e8a95355d4d5972504411226ec2acafcb9d /pkgs/applications/networking/instant-messengers/whatsapp-for-linux | |
parent | 26aa9804868d8ea6a31a00f1a29ae7e890cfec07 (diff) |
whatsapp-for-linux: move to finalAttrs
explicitly use lib where needed
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/whatsapp-for-linux')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/whatsapp-for-linux/default.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/applications/networking/instant-messengers/whatsapp-for-linux/default.nix b/pkgs/applications/networking/instant-messengers/whatsapp-for-linux/default.nix index 366dcbeffaea4..efb0fc95f33c1 100644 --- a/pkgs/applications/networking/instant-messengers/whatsapp-for-linux/default.nix +++ b/pkgs/applications/networking/instant-messengers/whatsapp-for-linux/default.nix @@ -25,15 +25,15 @@ , xorg }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "whatsapp-for-linux"; version = "1.6.4"; src = fetchFromGitHub { owner = "eneshecan"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-DU9tvIvDfOtBydR68yeRMFYdMjiBrOobCDXIZMmm7pQ="; + repo = "whatsapp-for-linux"; + rev = "v${finalAttrs.version}"; + hash = "sha256-DU9tvIvDfOtBydR68yeRMFYdMjiBrOobCDXIZMmm7pQ="; }; nativeBuildInputs = [ @@ -68,12 +68,12 @@ stdenv.mkDerivation rec { xorg.libXtst ]; - meta = with lib; { + meta = { homepage = "https://github.com/eneshecan/whatsapp-for-linux"; description = "Whatsapp desktop messaging app"; mainProgram = "whatsapp-for-linux"; - license = licenses.gpl3Only; - maintainers = with maintainers; [ bartuka ]; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ bartuka ]; platforms = [ "x86_64-linux" ]; }; -} +}) |