add flake
This commit is contained in:
parent
97a197e0a4
commit
74681d0be6
1 changed files with 27 additions and 0 deletions
27
flake.nix
Normal file
27
flake.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
description = "Python development environment";
|
||||
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
outputs = { nixpkgs, ... }: let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in {
|
||||
devShells."${system}".default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
(python312.withPackages (
|
||||
ppkgs: [
|
||||
python312Packages.django
|
||||
]
|
||||
))
|
||||
# other packages
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo "Welcome to your declarative Python development environment!"
|
||||
python --version
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue