Reformat all projects; switch to overlay format
This commit is contained in:
parent
bf45826289
commit
fca8041d90
30 changed files with 532 additions and 600 deletions
|
@ -7,29 +7,31 @@
|
|||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, flake-utils, mach-nix, nixpkgs }:
|
||||
outputs =
|
||||
{ self
|
||||
, flake-utils
|
||||
, mach-nix
|
||||
, nixpkgs
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
inherit (pkgs) mkShell;
|
||||
let
|
||||
overlays = [
|
||||
(self: super: {
|
||||
machNix = mach-nix.defaultPackage.${system};
|
||||
python = super.python311;
|
||||
})
|
||||
];
|
||||
|
||||
python = pkgs.python311;
|
||||
pkgs = import nixpkgs { inherit overlays system; };
|
||||
in
|
||||
{
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [ python machNix virtualenv ] ++
|
||||
(with pkgs.python311Packages; [ pip ]);
|
||||
|
||||
machNix = mach-nix.defaultPackage.${system};
|
||||
|
||||
pythonTools = with pkgs;
|
||||
[ virtualenv ] ++ (with pkgs.python311Packages; [ pip ]);
|
||||
nixTools = [ machNix ];
|
||||
in
|
||||
{
|
||||
devShells = {
|
||||
default = mkShell {
|
||||
buildInputs = [ python ] ++ pythonTools ++ nixTools;
|
||||
|
||||
shellHook = ''
|
||||
${python}/bin/python --version
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
shellHook = ''
|
||||
${pkgs.python}/bin/python --version
|
||||
'';
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue