add dev environment

This commit is contained in:
Marco Lents 2025-11-13 18:22:58 +01:00
commit e09c85b9bd
2 changed files with 65 additions and 0 deletions

42
flake.lock generated Normal file
View file

@ -0,0 +1,42 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1762756533,
"narHash": "sha256-HiRDeUOD1VLklHeOmaKDzf+8Hb7vSWPVFcWwaTrpm+U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c2448301fb856e351aab33e64c33a3fc8bcf637d",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-25.05",
"type": "indirect"
}
},
"nixpkgs_unstable": {
"locked": {
"lastModified": 1762844143,
"narHash": "sha256-SlybxLZ1/e4T2lb1czEtWVzDCVSTvk9WLwGhmxFmBxI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9da7f1cf7f8a6e2a7cb3001b048546c92a8258b4",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"nixpkgs_unstable": "nixpkgs_unstable"
}
}
},
"root": "root",
"version": 7
}

23
flake.nix Normal file
View file

@ -0,0 +1,23 @@
{
description = "Shell with python dev environment";
inputs = {
nixpkgs.url = "nixpkgs/nixos-25.05";
nixpkgs_unstable.url = "nixpkgs/nixos-unstable";
};
outputs =
{ nixpkgs, nixpkgs_unstable, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgs_ustbl = nixpkgs_unstable.legacyPackages.${system};
in
{
devShells.${system}.default = nixpkgs.legacyPackages.${system}.mkShell {
buildInputs = [
pkgs.python311
];
};
};
}