forked from lost-university/data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
25 lines (24 loc) · 690 Bytes
/
flake.nix
File metadata and controls
25 lines (24 loc) · 690 Bytes
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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
inputs:
inputs.flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
pkgs-unstable = inputs.nixpkgs-unstable.legacyPackages.${system};
pythonEnv = pkgs.python3.withPackages (ps: [
ps.requests
ps.lxml
]);
in
{
devShells.default = pkgs.mkShell { nativeBuildInputs = [ pythonEnv ]; };
formatter = pkgs-unstable.nixfmt-rfc-style;
}
);
}