flake.nix: init

This commit is contained in:
2025-08-14 16:31:01 +02:00
parent 136aca2697
commit 74354fd5ca
3 changed files with 55 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
{
inputs.nixpkgs.url = "nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }: let
inherit (nixpkgs) lib;
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
"armv7l-linux"
];
forAllSystems = f: lib.genAttrs systems (system: f system nixpkgs.legacyPackages.${system});
in {
devShells = forAllSystems (system: pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
(python3.withPackages (ppkgs: with ppkgs; [
tqdm
psycopg2-binary
]))
];
};
});
};
}