-
Notifications
You must be signed in to change notification settings - Fork 6
/
flake.nix
37 lines (36 loc) · 1.16 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
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = (import nixpkgs) { inherit system; };
python-pandoc = with pkgs.python3Packages; buildPythonPackage rec {
pname = "pandoc";
propagatedBuildInputs = [ plumbum ply ];
src = fetchPypi {
inherit pname version;
sha256 = "sha256-LfsXvAVGkHbJfB20wIqFIKP3awhuJuMtAf5OQIryroc=";
};
version = "2.4b0";
};
pythonWithPkgs = pkgs.python3.withPackages(p: with p; [
google-api-python-client
google-auth-httplib2
google-auth-oauthlib
python-pandoc
xdg
]);
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs;
[ pandoc pyright pythonWithPkgs ruff ruff-lsp ];
shellHook = ''
PYTHONPATH=${pythonWithPkgs}/${pythonWithPkgs.sitePackages}
'';
};
}
);
}