about summary refs log tree commit diff
path: root/pkgs/applications/editors/nvpy
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2013-08-21 01:23:40 +0200
committerDomen Kožar <domen@dev.si>2013-08-21 01:23:40 +0200
commit7837b994bffe655bb19d448f8622a61ca78694ee (patch)
tree84d8087565e517c587871dc2b632ec7e8b4eb4d5 /pkgs/applications/editors/nvpy
parent7188cc39fa5c692691d16f342db17d174d2ffce3 (diff)
downloadnixlib-7837b994bffe655bb19d448f8622a61ca78694ee.tar
nixlib-7837b994bffe655bb19d448f8622a61ca78694ee.tar.gz
nixlib-7837b994bffe655bb19d448f8622a61ca78694ee.tar.bz2
nixlib-7837b994bffe655bb19d448f8622a61ca78694ee.tar.lz
nixlib-7837b994bffe655bb19d448f8622a61ca78694ee.tar.xz
nixlib-7837b994bffe655bb19d448f8622a61ca78694ee.tar.zst
nixlib-7837b994bffe655bb19d448f8622a61ca78694ee.zip
fix eval
Diffstat (limited to 'pkgs/applications/editors/nvpy')
-rw-r--r--pkgs/applications/editors/nvpy/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/editors/nvpy/default.nix b/pkgs/applications/editors/nvpy/default.nix
new file mode 100644
index 000000000000..29402f3b3d80
--- /dev/null
+++ b/pkgs/applications/editors/nvpy/default.nix
@@ -0,0 +1,35 @@
+{ pkgs, fetchurl, tk, buildPythonPackage, pythonPackages }:
+
+buildPythonPackage rec {
+  version = "0.9.2";
+  name = "nvpy-${version}";
+
+  src = fetchurl {
+    url = "https://github.com/cpbotha/nvpy/archive/v${version}.tar.gz";
+    sha256 = "78e41b80fc5549cba8cfd92b52d6530e8dfc8e8f37e96e4b219f30c266af811d";
+  };
+
+  buildInputs = [tk];
+
+  propagatedBuildInputs = [
+    pythonPackages.markdown
+    pythonPackages.tkinter
+  ];
+
+  postInstall = ''
+    install -dm755 "$out/share/licenses/nvpy/"
+    install -m644 LICENSE.txt "$out/share/licenses/nvpy/LICENSE"
+
+    install -dm755 "$out/share/doc/nvpy/"
+    install -m644 README.rst "$out/share/doc/nvpy/README"
+
+    wrapProgram $out/bin/nvpy --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}"
+  '';
+
+  meta = with pkgs.lib; {
+    description = "A simplenote-syncing note-taking tool inspired by Notational Velocity";
+    homepage = "https://github.com/cpbotha/nvpy";
+    platforms = platforms.linux;
+    license = licenses.bsd3;
+  };
+}