flake: Add overlay

This commit is contained in:
Robert Hensing 2020-10-05 17:38:48 +02:00
parent 39249c5956
commit 525b598ce3

View file

@ -9,14 +9,21 @@
"x86_64-darwin"
"x86_64-linux"
];
arionFromPkgs = pkgs: import ./nix/arion.nix { inherit pkgs; };
in {
# The overlay is currently the recommended way to integrate arion,
# because its arion attribute behaves just like Nixpkgs.
overlay = final: prev: {
arion = arionFromPkgs final;
};
packages = lib.genAttrs systems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
arion = import ./nix/arion.nix { inherit pkgs; };
arion = arionFromPkgs pkgs;
});
# Does not include the eval and build functions like you may expect from Nixpkgs.