lol

R: Add `meta.pkgConfigModules` and test

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