forked from sumnerevans/offlinemsmtp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
53 lines (49 loc) · 1.04 KB
/
shell.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
{ pkgs ? import <nixpkgs> {} }: with pkgs; let
py = python38.override {
packageOverrides = self: super: {
pycairo = super.pycairo.overridePythonAttrs (
oldAttrs: rec {
version = "1.20.0";
src = oldAttrs.src.override {
inherit version;
sha256 = "5695a10cb7f9ae0d01f665b56602a845b0a8cb17e2123bfece10c2e58552468c";
};
}
);
};
};
in
pkgs.mkShell {
nativeBuildInputs = [
gobject-introspection
python3Packages.setuptools
wrapGAppsHook
];
buildInputs = [
libnotify
rnix-lsp
];
propagatedBuildInputs = with python3Packages; [
cairo
msmtp
pass
pkg-config
poetry
(
python3.withPackages (
ps: with ps; [
pygobject3
pycairo
watchdog
pkgconfig
]
)
)
];
shellHook = ''
export SOURCE_DATE_EPOCH=315532800
'';
# hook for gobject-introspection doesn't like strictDeps
# https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;
}