generated from linz/template-python-hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
39 lines (38 loc) · 1007 Bytes
/
shell.nix
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
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs { };
python = pkgs.python310;
poetryEnv = pkgs.poetry2nix.mkPoetryEnv {
inherit python;
projectDir = builtins.path {
path = ./.;
name = "oidc-provider";
};
overrides = pkgs.poetry2nix.overrides.withDefaults (self: super: {
aws-cdk-asset-node-proxy-agent-v6 = super.aws-cdk-asset-node-proxy-agent-v6.overridePythonAttrs (
# Upstream fix: https://github.com/nix-community/poetry2nix/pull/1306
old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.setuptools ];
}
);
});
};
nodeEnv = pkgs.callPackage ./node2nix/default.nix { };
in
poetryEnv.env.overrideAttrs (
oldAttrs: {
buildInputs = [
pkgs.cacert
pkgs.cargo
pkgs.gitFull
pkgs.niv
pkgs.node2nix
pkgs.nodejs
(pkgs.poetry.override {
python3 = python;
})
pkgs.which
nodeEnv.shell.nodeDependencies
];
}
)