-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
41 lines (39 loc) · 1.1 KB
/
flake.nix
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
34
35
36
37
38
39
40
41
{
description = "Dependency and Build Process for the Text Pre-Processing Pipeline";
inputs = {
# track unstable because one of our dependencies, py3langid, is only
# available in unstable. change this to nixos-24.05, once that is
# available.
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
nix-filter.url = "github:numtide/nix-filter";
};
outputs =
{
self,
nixpkgs,
flake-utils,
...
}:
{
overlays = import ./overlays.nix {
inherit (nixpkgs) lib;
nix-filter = self.inputs.nix-filter.lib;
};
}
// flake-utils.lib.eachDefaultSystem (
system:
let
# import the packages from nixpkgs
pkgs = nixpkgs.legacyPackages.${system}.extend self.outputs.overlays.default;
in
{
packages = rec {
default = its-prep;
its-prep = pkgs.python3Packages.its-prep;
docs = pkgs.python3Packages.callPackage ./docs.nix { };
};
devShells.default = pkgs.callPackage ./shell.nix { };
}
);
}