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
39
shell.nix
39
shell.nix
|
@ -1,21 +1,7 @@
|
|||
let
|
||||
sources = import ./nix/sources.nix;
|
||||
pkgs = import sources.nixpkgs {
|
||||
overlays = [
|
||||
(import ./overlay.nix)
|
||||
];
|
||||
};
|
||||
tools = pkgs.callPackage ./tools { };
|
||||
|
||||
in
|
||||
pkgs.mkShell {
|
||||
|
||||
NIX_PATH = "nixpkgs=${sources.nixpkgs}";
|
||||
|
||||
buildInputs = [
|
||||
tools.env
|
||||
tools.py2-astparse
|
||||
tools.flamegraph
|
||||
{ packages ? pkgs: [
|
||||
pkgs.p2nix-tools.env
|
||||
pkgs.p2nix-tools.py2-astparse
|
||||
pkgs.p2nix-tools.flamegraph
|
||||
pkgs.nixpkgs-fmt
|
||||
pkgs.poetry
|
||||
pkgs.niv
|
||||
|
@ -23,5 +9,22 @@ pkgs.mkShell {
|
|||
pkgs.nix-prefetch-git
|
||||
pkgs.nix-eval-jobs
|
||||
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