From 403f35e92ff9bd82be6f23b82dcbeccb6e8f14d9 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 31 Jul 2023 10:25:54 +0200 Subject: [PATCH] proxysql: use `finalAttrs` pattern --- pkgs/servers/sql/proxysql/default.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/servers/sql/proxysql/default.nix b/pkgs/servers/sql/proxysql/default.nix index 8a725ccfe1ae..c489e181cb34 100644 --- a/pkgs/servers/sql/proxysql/default.nix +++ b/pkgs/servers/sql/proxysql/default.nix @@ -31,14 +31,14 @@ , texinfo }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "proxysql"; version = "2.5.4"; src = fetchFromGitHub { owner = "sysown"; - repo = pname; - rev = version; + repo = "proxysql"; + rev = finalAttrs.version; hash = "sha256-HFhfAWyDB20t+c4s9NlVwdANrFobVyr+vnmZqx+X20Q="; }; @@ -69,7 +69,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - GIT_VERSION = version; + GIT_VERSION = finalAttrs.version; dontConfigure = true; @@ -165,12 +165,12 @@ stdenv.mkDerivation rec { sed -i s_/usr/bin/proxysql_$out/bin/proxysql_ $out/lib/systemd/system/*.service ''; - meta = with lib; { - homepage = "https://proxysql.com/"; + meta = { broken = stdenv.isDarwin; description = "High-performance MySQL proxy"; - license = with licenses; [ gpl3Only ]; - maintainers = with maintainers; [ ajs124 ]; - platforms = platforms.unix; + homepage = "https://proxysql.com/"; + license = with lib.licenses; [ gpl3Only ]; + maintainers = with lib.maintainers; [ ajs124 ]; + platforms = lib.platforms.unix; }; -} +})