blob: 0e722a0acb3b9d8e034c0ffca430bae3641d3b3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
inputs = {
nixpkgs.url = "nixpkgs";
nix-filter.url = "github:numtide/nix-filter";
flake-utils.url = "github:numtide/flake-utils";
nixpkgs-terraform-providers-bin.url = "github:nix-community/nixpkgs-terraform-providers-bin";
nixpkgs-terraform-providers-bin.inputs.nixpkgs.follows = "nixpkgs";
poetry2nix = {
url = "github:nix-community/poetry2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
flake-utils,
...
} @ inputs:
flake-utils.lib.eachDefaultSystem (system: let
pkgs =
import inputs.nixpkgs
{
inherit system;
};
poetry = inputs.poetry2nix.packages.${system}.poetry;
inherit (inputs.poetry2nix.legacyPackages.${system}) mkPoetryEnv defaultPoetryOverrides;
in {
devShells.default = pkgs.mkShell {
name = "dev";
buildInputs = [
poetry
];
shellHook = ''
[[ -f ./.venv/bin/activate ]] && {
source ./.venv/bin/activate
source ~/awx-login.sh
}
'';
};
});
}
|