Add metadata to packages #190

Manually merged
abonerib merged 3 commits from add-meta into master 2025-10-10 16:39:05 +02:00
3 changed files with 19 additions and 1 deletions
Showing only changes of commit 606386d006 - Show all commits

View File

@@ -45,6 +45,10 @@ in
hydraJobs = self.legacyPackages.${system}.bsc.hydraJobs;
# propagate nixpkgs lib, so we can do bscpkgs.lib
inherit (nixpkgs) lib;
lib = nixpkgs.lib // {
maintainers = nixpkgs.lib.maintainers // {
bsc = import ./pkgs/maintainers.nix;
};
abonerib marked this conversation as resolved Outdated

I would move this to pkgs/maintainers.nix so that m completes to m/ and it doesn't litter the root dir.

I would move this to pkgs/maintainers.nix so that m<tab> completes to m/ and it doesn't litter the root dir.
};
};
}

View File

@@ -129,6 +129,13 @@ let
(builtins.attrValues crossSet.riscv64));
in bscPkgs // {
lib = prev.lib // {
maintainers = prev.lib.maintainers // {
bsc = import ./pkgs/maintainers.nix;
};
};
# Prevent accidental usage of bsc-ci attribute
bsc-ci = throw "the bsc-ci attribute is deprecated, use bsc.ci";

7
pkgs/maintainers.nix Normal file
View File

@@ -0,0 +1,7 @@
builtins.mapAttrs (name: value: { email = name + "@bsc.es"; } // value) {
abonerib.name = "Aleix Boné";
arocanon.name = "Aleix Roca";
rarias.name = "Rodrigo Arias";
rpenacob.name = "Raúl Peñacoba";
varcila.name = "Vincent Arcila";
}