libuv: use finalAttrs instead of rec (#237140)

Co-authored-by: figsoda <figsoda@pm.me>

authored by Adam Joseph figsoda and committed by GitHub 6d402731 40ba0dc4

+7 -7
+7 -7
pkgs/development/libraries/libuv/default.nix
··· 22 22 , python3 23 23 }: 24 24 25 - stdenv.mkDerivation rec { 25 + stdenv.mkDerivation (finalAttrs: { 26 26 version = "1.45.0"; 27 27 pname = "libuv"; 28 28 29 29 src = fetchFromGitHub { 30 - owner = pname; 31 - repo = pname; 32 - rev = "v${version}"; 30 + owner = "libuv"; 31 + repo = "libuv"; 32 + rev = "v${finalAttrs.version}"; 33 33 sha256 = "sha256-qKw9QFR24Uw7pVA9isPH8Va+9/5DYuqXz6l6jWcXn+4="; 34 34 }; 35 35 ··· 76 76 "shutdown_close_pipe" 77 77 ]; 78 78 tdRegexp = lib.concatStringsSep "\\|" toDisable; 79 - in lib.optionalString doCheck '' 79 + in lib.optionalString (finalAttrs.doCheck) '' 80 80 sed '/${tdRegexp}/d' -i test/test-list.h 81 81 ''; 82 82 ··· 112 112 meta = with lib; { 113 113 description = "A multi-platform support library with a focus on asynchronous I/O"; 114 114 homepage = "https://libuv.org/"; 115 - changelog = "https://github.com/libuv/libuv/blob/v${version}/ChangeLog"; 115 + changelog = "https://github.com/libuv/libuv/blob/v${finalAttrs.version}/ChangeLog"; 116 116 maintainers = with maintainers; [ cstrahan ]; 117 117 platforms = platforms.all; 118 118 license = with licenses; [ mit isc bsd2 bsd3 cc-by-40 ]; 119 119 }; 120 120 121 - } 121 + })