mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 18:30:13 +00:00
move all files to new nixfmt rfc
This commit is contained in:
@ -5,23 +5,30 @@
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
inputs.poetry2nix.url = "github:nix-community/poetry2nix";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, poetry2nix }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
poetry2nix,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ poetry2nix.overlay ];
|
||||
};
|
||||
projectDir = ./.;
|
||||
|
||||
in {
|
||||
defaultPackage =
|
||||
pkgs.poetry2nix.mkPoetryApplication { inherit projectDir; };
|
||||
in
|
||||
{
|
||||
defaultPackage = pkgs.poetry2nix.mkPoetryApplication { inherit projectDir; };
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
(pkgs.poetry2nix.mkPoetryEnv { inherit projectDir; })
|
||||
pkgs.poetry
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user