about summary refs log tree commit diff
path: root/nix/templates/python3/flake.nix
blob: f5c2378c042856999e90d66aa01f60bcfc60c40f (plain)
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
{
	description = "a simple flake for using python with some dependencies";
	nixConfig.bash-promt = "py; ";

	inputs = {
    nixpkgs.url = "git+https://github.com/nixos/nixpkgs?ref=release-23.11";
	};
	
	outputs = { nixpkgs, ... }:
	
	let
		pkgs = import nixpkgs {
			system = "aarch64-darwin";
		};
	in {
		devShells."aarch64-darwin".default =
			let
				python = pkgs.python311;
			in
				pkgs.mkShell {
			  packages = [
			    (python.withPackages (ps: with ps; [
						pwntools
						beautifulsoup4
						requests
			    ]))
			  ];
			};
	};
}