non important commit

This commit is contained in:
maxstrb 2026-02-19 10:19:10 +01:00
parent 6d517609de
commit e01a84c36f
12 changed files with 101 additions and 11 deletions

View file

@ -3,20 +3,29 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = {nixpkgs, ...} @ inputs: let
outputs = {nixpkgs, ...}: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
pythonEnv = pkgs.python3.withPackages (python-pkgs: [
python-pkgs.numpy
python-pkgs.pandas
]);
in {
packages."${system}" = {
default = pkgs.writeShellApplication {
name = "my-app";
runtimeInputs = [pythonEnv];
text = ''
python ${./main.py} "$@"
'';
};
};
devShells."${system}" = {
default = pkgs.mkShell {
packages = [
(pkgs.python3.withPackages (python-pkgs: [
python-pkgs.numpy
python-pkgs.pandas
]))
];
packages = [pythonEnv];
};
};
};