mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 08:41:42 -05:00
shell.nix: Make shell packages parametric
We'll use this in the CI to control what packages are available from the github actions workflow.
This commit is contained in:
parent
c2be4579f0
commit
5e6ad67b5b
1 changed files with 22 additions and 19 deletions
41
shell.nix
41
shell.nix
|
@ -1,21 +1,7 @@
|
||||||
let
|
{ packages ? pkgs: [
|
||||||
sources = import ./nix/sources.nix;
|
pkgs.p2nix-tools.env
|
||||||
pkgs = import sources.nixpkgs {
|
pkgs.p2nix-tools.py2-astparse
|
||||||
overlays = [
|
pkgs.p2nix-tools.flamegraph
|
||||||
(import ./overlay.nix)
|
|
||||||
];
|
|
||||||
};
|
|
||||||
tools = pkgs.callPackage ./tools { };
|
|
||||||
|
|
||||||
in
|
|
||||||
pkgs.mkShell {
|
|
||||||
|
|
||||||
NIX_PATH = "nixpkgs=${sources.nixpkgs}";
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
tools.env
|
|
||||||
tools.py2-astparse
|
|
||||||
tools.flamegraph
|
|
||||||
pkgs.nixpkgs-fmt
|
pkgs.nixpkgs-fmt
|
||||||
pkgs.poetry
|
pkgs.poetry
|
||||||
pkgs.niv
|
pkgs.niv
|
||||||
|
@ -23,5 +9,22 @@ pkgs.mkShell {
|
||||||
pkgs.nix-prefetch-git
|
pkgs.nix-prefetch-git
|
||||||
pkgs.nix-eval-jobs
|
pkgs.nix-eval-jobs
|
||||||
pkgs.nix-build-uncached
|
pkgs.nix-build-uncached
|
||||||
];
|
]
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
sources = import ./nix/sources.nix;
|
||||||
|
pkgs = import sources.nixpkgs {
|
||||||
|
overlays = [
|
||||||
|
(import ./overlay.nix)
|
||||||
|
(self: super: {
|
||||||
|
p2nix-tools = self.callPackage ./tools { };
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
NIX_PATH = "nixpkgs=${sources.nixpkgs}";
|
||||||
|
packages = packages pkgs;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue