Remove package in flake.nix as we don't provide any

This commit is contained in:
Eric Wolf 2020-11-21 09:57:37 +01:00
parent 1894b501cf
commit 4d83e7e3af

View file

@ -1,30 +1,8 @@
{
description = "Poetry2nix flake";
outputs = { self, nixpkgs }:
let
# TODO: There must be a better way to provide arch-agnostic flakes..
systems = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
# Memoize nixpkgs for different platforms for efficiency.
nixpkgsFor = forAllSystems (
system:
import nixpkgs {
inherit system;
overlays = [ self.overlay ];
}
);
in
outputs = { self }:
{
overlay = import ./overlay.nix;
# TODO: I feel like `packages` is the wrong place for the poetry2nix attr
packages = forAllSystems (
system: {
inherit (nixpkgsFor.${system}) poetry poetry2nix;
}
);
};
}