lol

R: Add `meta.pkgConfigModules` and test

+9 -3
+9 -3
pkgs/applications/science/math/R/default.nix
··· 8 # R as of writing does not support outputting both .so and .a files; it outputs: 9 # --enable-R-static-lib conflicts with --enable-R-shlib and will be ignored 10 , static ? false 11 }: 12 13 assert (!blas.isILP64) && (!lapack.isILP64); 14 15 - stdenv.mkDerivation rec { 16 pname = "R"; 17 version = "4.2.2"; 18 19 - src = fetchurl { 20 url = "https://cran.r-project.org/src/base/R-${lib.versions.major version}/${pname}-${version}.tar.gz"; 21 sha256 = "sha256-D/YrQuxRr6VxPK7nxP3noMRZQLo5vvjFyUh/7wyVPfU="; 22 }; ··· 97 98 setupHook = ./setup-hook.sh; 99 100 meta = with lib; { 101 homepage = "http://www.r-project.org/"; 102 description = "Free software environment for statistical computing and graphics"; ··· 121 user-defined recursive functions and input and output facilities. 122 ''; 123 124 platforms = platforms.all; 125 126 maintainers = with maintainers; [ jbedo ] ++ teams.sage.members; 127 }; 128 - }
··· 8 # R as of writing does not support outputting both .so and .a files; it outputs: 9 # --enable-R-static-lib conflicts with --enable-R-shlib and will be ignored 10 , static ? false 11 + , testers 12 }: 13 14 assert (!blas.isILP64) && (!lapack.isILP64); 15 16 + stdenv.mkDerivation (finalAttrs: { 17 pname = "R"; 18 version = "4.2.2"; 19 20 + src = let 21 + inherit (finalAttrs) pname version; 22 + in fetchurl { 23 url = "https://cran.r-project.org/src/base/R-${lib.versions.major version}/${pname}-${version}.tar.gz"; 24 sha256 = "sha256-D/YrQuxRr6VxPK7nxP3noMRZQLo5vvjFyUh/7wyVPfU="; 25 }; ··· 100 101 setupHook = ./setup-hook.sh; 102 103 + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 104 + 105 meta = with lib; { 106 homepage = "http://www.r-project.org/"; 107 description = "Free software environment for statistical computing and graphics"; ··· 126 user-defined recursive functions and input and output facilities. 127 ''; 128 129 + pkgConfigModules = [ "libR" ]; 130 platforms = platforms.all; 131 132 maintainers = with maintainers; [ jbedo ] ++ teams.sage.members; 133 }; 134 + })