From e09c85b9bde9449bd21bda2ec3d0ca7f8b6f2030 Mon Sep 17 00:00:00 2001 From: Marco Lents Date: Thu, 13 Nov 2025 18:22:58 +0100 Subject: [PATCH] add dev environment --- flake.lock | 42 ++++++++++++++++++++++++++++++++++++++++++ flake.nix | 23 +++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..87f31f4 --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f362cb6 --- /dev/null +++ b/flake.nix @@ -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 + ]; + }; + }; +}