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