diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-26 01:32:07 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-26 01:32:07 +0200 |
commit | 8c4f6e37479002818bcfe7381cd4e4b47fd2d1fb (patch) | |
tree | 8d032273fb3b5e4216b021795256e79dffe0b667 /pkgs/terminal-velocity/default.nix | |
parent | c79bb68270abd6e5a59e36bf09d64b2eb0d23fb8 (diff) | |
download | Nix-8c4f6e37479002818bcfe7381cd4e4b47fd2d1fb.tar.gz Nix-8c4f6e37479002818bcfe7381cd4e4b47fd2d1fb.tar.zst Nix-8c4f6e37479002818bcfe7381cd4e4b47fd2d1fb.zip |
Start splitting nix environment to smaller files
Diffstat (limited to 'pkgs/terminal-velocity/default.nix')
-rw-r--r-- | pkgs/terminal-velocity/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/terminal-velocity/default.nix b/pkgs/terminal-velocity/default.nix new file mode 100644 index 0000000..9e79dee --- /dev/null +++ b/pkgs/terminal-velocity/default.nix | |||
@@ -0,0 +1,33 @@ | |||
1 | { python36Packages }: | ||
2 | with python36Packages; | ||
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 | propagatedBuildInputs = [ | ||
19 | chardet | ||
20 | urwid | ||
21 | (sh.overridePythonAttrs { doCheck = false; }) | ||
22 | pyyaml | ||
23 | ]; | ||
24 | buildInputs = [ | ||
25 | m2r | ||
26 | (restructuredtext_lint.overridePythonAttrs { doCheck = false; }) | ||
27 | pygments | ||
28 | ]; | ||
29 | |||
30 | postInstall = '' | ||
31 | rm $out/bin/terminal_velocity | ||
32 | ''; | ||
33 | } | ||