feat(nix): Don't hardcode package outputs

In order to determine the name of a package you want to include in your
own nix-config, simply copy the filename without the .nix part.
This commit is contained in:
Donovan Glover 2024-03-31 18:57:59 -04:00
parent 5674d3ed81
commit d1513228d0
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -35,13 +35,8 @@
};
};
packages."x86_64-linux" = with nixpkgs.legacyPackages."x86_64-linux"; {
aleo-fonts = callPackage ./packages/aleo-fonts.nix { };
fluent-icons = callPackage ./packages/fluent-icons.nix { };
hycov = callPackage ./packages/hycov.nix { };
osu-backgrounds = callPackage ./packages/osu-backgrounds.nix { };
webp-thumbnailer = callPackage ./packages/webp-thumbnailer.nix { };
};
packages."x86_64-linux" = with nixpkgs.legacyPackages."x86_64-linux";
builtins.mapAttrs (name: value: callPackage ./packages/${name}) (builtins.readDir ./packages);
overlays = builtins.mapAttrs (name: value: import ./overlays/${name}) (builtins.readDir ./overlays);
};