-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
35 lines (29 loc) · 1.08 KB
/
flake.nix
File metadata and controls
35 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
# I hace realized that the comlexity of a flake largely depends on what system you are using. I am using linux
# so I will be using x86_64-linux, everything else will be made as simple as possible.
# ie. only one system and only one shell.
# I will still be using the python.withPackages function to download python with the stated extra packages, because
# it seems beter than isntalling them seperatly in the buildInputs.
# picking a python version
python = pkgs.python311;
in {
devShell.${system} = pkgs.mkShell{
packages = [
# downloading python with stated extra packages
(python.withPackages (ps: with ps; [
pip
jupyter
pandas
]))
];
};
};
}