add flake

This commit is contained in:
Osman Faruk Bayram 2025-04-28 16:35:53 +03:00
parent 97a197e0a4
commit 74681d0be6

27
flake.nix Normal file
View 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
'';
};
};
}