diff options
Diffstat (limited to 'flakes/mypackages/pkgs/terminal-velocity/default.nix')
-rw-r--r-- | flakes/mypackages/pkgs/terminal-velocity/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/flakes/mypackages/pkgs/terminal-velocity/default.nix b/flakes/mypackages/pkgs/terminal-velocity/default.nix new file mode 100644 index 0000000..3ccfcd3 --- /dev/null +++ b/flakes/mypackages/pkgs/terminal-velocity/default.nix | |||
@@ -0,0 +1,37 @@ | |||
1 | { python37Packages }: | ||
2 | with python37Packages; | ||
3 | buildPythonApplication rec { | ||
4 | pname = "terminal-velocity-git"; | ||
5 | version = "0.2.0"; | ||
6 | src = fetchPypi { | ||
7 | inherit pname version; | ||
8 | sha256 = "13yrkcmvh5h5fwnai61sbmqkrjyisz08n62pq0ada2lyyqf7g6b9"; | ||
9 | }; | ||
10 | |||
11 | patches = [ | ||
12 | ./sort_found_notes.patch | ||
13 | ./python3_support.patch | ||
14 | # FIXME: update this patch when version changes | ||
15 | ./fix_build.patch | ||
16 | ]; | ||
17 | |||
18 | preCheck = '' | ||
19 | # Needed for urwid test | ||
20 | export LC_ALL=en_US.UTF-8 | ||
21 | ''; | ||
22 | propagatedBuildInputs = [ | ||
23 | chardet | ||
24 | urwid | ||
25 | (sh.overridePythonAttrs { doCheck = false; }) | ||
26 | pyyaml | ||
27 | ]; | ||
28 | buildInputs = [ | ||
29 | m2r | ||
30 | (restructuredtext_lint.overridePythonAttrs { doCheck = false; }) | ||
31 | pygments | ||
32 | ]; | ||
33 | |||
34 | postInstall = '' | ||
35 | rm $out/bin/terminal_velocity | ||
36 | ''; | ||
37 | } | ||