non important commit
This commit is contained in:
parent
6d517609de
commit
e01a84c36f
12 changed files with 101 additions and 11 deletions
|
|
@ -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];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue