forked from cclib/cclib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
63 lines (56 loc) · 1.54 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
description = "Parsers and algorithms for computational chemistry logfiles";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
qchem.url = "github:nix-qchem/nixos-qchem";
flake-utils.url = "github:numtide/flake-utils";
};
nixConfig = {
bash-prompt = "\\[\\e[0;1;38;5;214m\\]cclib\\[\\e[0;1m\\]:\\[\\e[0;1;38;5;39m\\]\\w\\[\\e[0;1m\\]$ \\[\\e[0m\\]";
};
outputs = { self, nixpkgs, qchem, flake-utils }:
let
overlay = import ./nix/overlay.nix;
in
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
qchem.overlays.default
overlay
];
};
in
{
packages.default = pkgs.python3.pkgs.cclib;
devShells.default =
let
pyEnv = pkgs.python3.withPackages (p: with p; [
pip
pytest-cov
coverage
sphinx
sphinx-rtd-theme
identify
cfgv
] ++ p.cclib.nativeBuildInputs
++ p.cclib.propagatedBuildInputs
);
in
pkgs.mkShell {
buildInputs = with pkgs; [
pyEnv
black
pre-commit
ruff
actionlint
isort
];
};
formatter = pkgs.nixpkgs-fmt;
}) // {
overlays.default = overlay;
};
}