arion/flake.nix

28 lines
507 B
Nix
Raw Normal View History

2020-10-05 16:22:15 +02:00
{
description = "Arion - use Docker Compose via Nix";
outputs = { self, nixpkgs }:
let
lib = import (nixpkgs + "/lib");
systems = [
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
in {
packages = lib.genAttrs systems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
arion = import ./nix/arion.nix { inherit pkgs; };
});
defaultPackage = lib.genAttrs systems (system:
self.packages.${system}.arion
);
};
}