diff options
author | Justin Bedo <cu@cua0.org> | 2021-11-10 07:22:10 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2021-11-10 07:22:10 +1100 |
commit | f5cac4067c1e53a70fa8975371ad7c10ecec3359 (patch) | |
tree | 42f62bf5917df3588a2115e9e807304a02c23720 /pkgs/development/r-modules | |
parent | 20de18c0a660865ec92d13369362be82438106c9 (diff) | |
download | nixlib-f5cac4067c1e53a70fa8975371ad7c10ecec3359.tar nixlib-f5cac4067c1e53a70fa8975371ad7c10ecec3359.tar.gz nixlib-f5cac4067c1e53a70fa8975371ad7c10ecec3359.tar.bz2 nixlib-f5cac4067c1e53a70fa8975371ad7c10ecec3359.tar.lz nixlib-f5cac4067c1e53a70fa8975371ad7c10ecec3359.tar.xz nixlib-f5cac4067c1e53a70fa8975371ad7c10ecec3359.tar.zst nixlib-f5cac4067c1e53a70fa8975371ad7c10ecec3359.zip |
rPackages: add maintainers to individual packages
Diffstat (limited to 'pkgs/development/r-modules')
-rw-r--r-- | pkgs/development/r-modules/default.nix | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index c697384707ed..7d2e17c078e5 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -22,7 +22,8 @@ let doCheck ? true, requireX ? false, broken ? false, - hydraPlatforms ? R.meta.platforms + hydraPlatforms ? R.meta.platforms, + maintainers ? [] }: buildRPackage { name = "${name}-${version}"; src = fetchurl { @@ -36,6 +37,7 @@ let meta.platforms = R.meta.platforms; meta.hydraPlatforms = hydraPlatforms; meta.broken = broken; + meta.maintainers = maintainers; }); # Templates for generating Bioconductor and CRAN packages @@ -110,6 +112,26 @@ let }) ) overrides; + # Overrides package definitions with maintainers. + # For example, + # + # overrideMaintainers { + # foo = [ lib.maintainers.jsmith ] + # } old + # + # results in + # + # { + # foo = old.foo.override { + # maintainers = [ lib.maintainers.jsmith ]; + # }; + # } + overrideMaintainers = overrides: old: + lib.mapAttrs (name: value: + (builtins.getAttr name old).override { + maintainers = value; + }) overrides; + # Overrides package definitions with new R dependencies. # For example, # @@ -250,7 +272,8 @@ let old5 = old4 // (overrideNativeBuildInputs packagesWithNativeBuildInputs old4); old6 = old5 // (overrideBuildInputs packagesWithBuildInputs old5); old7 = old6 // (overrideBroken brokenPackages old6); - old = old7; + old8 = old7 // (overrideMaintainers packagesWithMaintainers old7); + old = old8; in old // (otherOverrides old new); # Recursive override pattern. @@ -266,6 +289,15 @@ let # tweaks for the individual packages and "in self" follow + packagesWithMaintainers = with lib.maintainers; { + data_table = [ jbedo ]; + BiocManager = [ jbedo ]; + ggplot2 = [ jbedo ]; + svaNUMT = [ jbedo ]; + svaRetro = [ jbedo ]; + StructuralVariantAnnotation = [ jbedo ]; + }; + packagesWithRDepends = { FactoMineR = [ self.car ]; pander = [ self.codetools ]; |