From 30365099aecbc63529efd4508166658010b0388e Mon Sep 17 00:00:00 2001 From: eljamm Date: Thu, 29 Aug 2024 14:04:03 +0100 Subject: [PATCH] taler-exchange: use `finalAttrs`, remove `with lib;` --- pkgs/by-name/ta/taler-exchange/package.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/ta/taler-exchange/package.nix b/pkgs/by-name/ta/taler-exchange/package.nix index 5460db04a5e4..cc604913c6ea 100644 --- a/pkgs/by-name/ta/taler-exchange/package.nix +++ b/pkgs/by-name/ta/taler-exchange/package.nix @@ -20,16 +20,13 @@ texinfo, }: -let - version = "0.12.0"; -in -stdenv.mkDerivation { +stdenv.mkDerivation (finalAttrs: { pname = "taler-exchange"; - inherit version; + version = "0.12.0"; src = fetchgit { url = "https://git.taler.net/exchange.git"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; fetchSubmodules = true; hash = "sha256-yHRRMlqFA2OiFg0rBVzn7130wyVaxKn2dChFTPnVtbs="; }; @@ -80,7 +77,7 @@ stdenv.mkDerivation { checkTarget = "check"; - meta = with lib; { + meta = { description = '' Taler is an electronic payment system providing the ability to pay anonymously using digital cash. Taler consists of a network protocol @@ -93,8 +90,8 @@ stdenv.mkDerivation { ''; homepage = "https://taler.net/"; changelog = "https://git.taler.net/exchange.git/tree/ChangeLog"; - license = licenses.agpl3Plus; - maintainers = with maintainers; [ astro ]; - platforms = platforms.linux; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ astro ]; + platforms = lib.platforms.linux; }; -} +})