mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-24 16:45:37 +00:00
remove flake-utils from poetry template
This commit is contained in:
parent
0f1cbe2e06
commit
0cdae3569e
@ -1,34 +1,50 @@
|
|||||||
{
|
{
|
||||||
description = "Python project flake";
|
description = "Python project flake";
|
||||||
|
inputs = {
|
||||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
poetry2nix.url = "github:nix-community/poetry2nix";
|
||||||
inputs.poetry2nix.url = "github:nix-community/poetry2nix";
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
{ nixpkgs, poetry2nix, ... }:
|
||||||
|
let
|
||||||
|
projectDir = ./.;
|
||||||
|
supportedSystems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"x86_64-darwin"
|
||||||
|
"aarch64-linux"
|
||||||
|
"aarch64-darwin"
|
||||||
|
];
|
||||||
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
self,
|
packages = forAllSystems (
|
||||||
nixpkgs,
|
system:
|
||||||
flake-utils,
|
let
|
||||||
poetry2nix,
|
pkgs = import nixpkgs {
|
||||||
}:
|
inherit system;
|
||||||
flake-utils.lib.eachDefaultSystem (
|
overlays = [ poetry2nix.overlays.default ];
|
||||||
system:
|
};
|
||||||
let
|
in
|
||||||
pkgs = import nixpkgs {
|
{
|
||||||
inherit system;
|
default = pkgs.poetry2nix.mkPoetryApplication { inherit projectDir; };
|
||||||
overlays = [ poetry2nix.overlay ];
|
}
|
||||||
};
|
);
|
||||||
projectDir = ./.;
|
devShells = forAllSystems (
|
||||||
in
|
system:
|
||||||
{
|
let
|
||||||
defaultPackage = pkgs.poetry2nix.mkPoetryApplication { inherit projectDir; };
|
pkgs = import nixpkgs {
|
||||||
devShells.default = pkgs.mkShell {
|
inherit system;
|
||||||
buildInputs = [
|
overlays = [ poetry2nix.overlays.default ];
|
||||||
(pkgs.poetry2nix.mkPoetryEnv { inherit projectDir; })
|
};
|
||||||
pkgs.poetry
|
in
|
||||||
];
|
{
|
||||||
};
|
default = pkgs.mkShell {
|
||||||
}
|
buildInputs = [
|
||||||
);
|
(pkgs.poetry2nix.mkPoetryEnv { inherit projectDir; })
|
||||||
|
pkgs.poetry
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user