mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Revert "Remove package in flake.nix as we don't provide any"
This reverts commit 4d83e7e3af
.
This commit is contained in:
parent
84a5da7b59
commit
034761d214
1 changed files with 23 additions and 1 deletions
24
flake.nix
24
flake.nix
|
@ -1,8 +1,30 @@
|
|||
{
|
||||
description = "Poetry2nix flake";
|
||||
|
||||
outputs = { self }:
|
||||
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
|
||||
{
|
||||
|
||||
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;
|
||||
}
|
||||
);
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue