proxysql: use finalAttrs pattern

This commit is contained in:
Pol Dellaiera 2023-07-31 10:25:54 +02:00
parent 3adecdfcbc
commit 403f35e92f
No known key found for this signature in database
GPG key ID: D476DFE9C67467CA

View file

@ -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;
};
}
})