Clean up flake structure a little bit

This commit is contained in:
Nathan McCarty 2023-05-16 15:57:26 -04:00
parent 30e29cc5d0
commit 1f18ca97fe
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 4 additions and 13 deletions

View File

@ -76,29 +76,20 @@
'';
};
in with import nixpkgs { system = system; }; {
packages.temurin =
(builtins.mapAttrs (name: value: buildAdoptLike name value)
packages = {
temurin = (builtins.mapAttrs (name: value: buildAdoptLike name value)
sources.${system}.temurin.versions) // {
latest = buildAdoptLike "latest" sources.${system}.temurin.latest;
stable = buildAdoptLike "stable" sources.${system}.temurin.stable;
lts = buildAdoptLike "lts" sources.${system}.temurin.lts;
};
packages.temurin-latest = self.packages.${system}.temurin.latest;
packages.temurin-stable = self.packages.${system}.temurin.stable;
packages.temurin-lts = self.packages.${system}.temurin.lts;
packages.semeru =
(builtins.mapAttrs (name: value: buildAdoptLike name value)
semeru = (builtins.mapAttrs (name: value: buildAdoptLike name value)
sources.${system}.semeru.versions) // {
latest = buildAdoptLike "latest" sources.${system}.semeru.latest;
stable = buildAdoptLike "stable" sources.${system}.semeru.stable;
lts = buildAdoptLike "lts" sources.${system}.semeru.lts;
};
packages.semeru-latest = self.packages.${system}.semeru.latest;
packages.semeru-stable = self.packages.${system}.semeru.stable;
packages.semeru-lts = self.packages.${system}.semeru.lts;
};
defaultPackage = self.packages.${system}.temurin.stable;
});