Merge pull request #89017 from zowoq/package-grouping

Group packages by language/builder via dummy maintainer
This commit is contained in:
zowoq 2020-07-17 11:57:06 +10:00 committed by GitHub
commit d5fb235b09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 3 deletions

View file

@ -5826,6 +5826,14 @@
githubId = 16385648;
name = "Niko Pavlinek";
};
nixpkgs-go = {
email = "go@nixpkgs";
name = "Nixpkgs Go Packages";
};
nixpkgs-rust = {
email = "rust@nixpkgs";
name = "Nixpkgs Rust Packages";
};
nixy = {
email = "nixy@nixy.moe";
github = "nixy";

View file

@ -241,5 +241,9 @@ stdenv.mkDerivation (args // {
meta = {
# default to Rust's platforms
platforms = rustc.meta.platforms;
} // meta;
} // meta // {
# add an extra maintainer to every package
maintainers = (meta.maintainers or []) ++
[ stdenv.lib.maintainers.nixpkgs-rust ];
};
})

View file

@ -236,7 +236,7 @@ let
} // meta // {
# add an extra maintainer to every package
maintainers = (meta.maintainers or []) ++
[ lib.maintainers.kalbasit ];
[ lib.maintainers.kalbasit lib.maintainers.nixpkgs-go ];
};
});
in if disabled then

View file

@ -239,7 +239,11 @@ let
# Add default meta information
homepage = "https://${goPackagePath}";
platforms = go.meta.platforms or lib.platforms.all;
} // meta;
} // meta // {
# add an extra maintainer to every package
maintainers = (meta.maintainers or []) ++
[ lib.maintainers.nixpkgs-go ];
};
});
in if disabled then
throw "${package.name} not supported for go ${go.meta.branch}"