summary refs log tree commit diff
path: root/pkgs/applications/audio/lastwatch
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2012-09-05 03:56:24 +0200
committeraszlig <aszlig@redmoonstudios.org>2012-09-10 19:54:54 +0200
commit3ed91754e27683abf611d5089612f57366335207 (patch)
tree1094f578c8dabdd8e27030b541f520faae297bc1 /pkgs/applications/audio/lastwatch
parent9d71bb96c0d2a7f1640dd05c3dcc06c2d1501057 (diff)
downloadnixlib-3ed91754e27683abf611d5089612f57366335207.tar
nixlib-3ed91754e27683abf611d5089612f57366335207.tar.gz
nixlib-3ed91754e27683abf611d5089612f57366335207.tar.bz2
nixlib-3ed91754e27683abf611d5089612f57366335207.tar.lz
nixlib-3ed91754e27683abf611d5089612f57366335207.tar.xz
nixlib-3ed91754e27683abf611d5089612f57366335207.tar.zst
nixlib-3ed91754e27683abf611d5089612f57366335207.zip
lastwatch: New package, version 0.4.1.
This is actually one of my own programs I've written some years ago, but as I'm
still using it on several systems, I'm adding it to nixpkgs. As it is an (at the
moment, fanotify looks like it's more suitable) inotify based scrobbler, it of
course requires the inotify feature to be enabled in the kernel.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/applications/audio/lastwatch')
-rw-r--r--pkgs/applications/audio/lastwatch/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/audio/lastwatch/default.nix b/pkgs/applications/audio/lastwatch/default.nix
new file mode 100644
index 000000000000..324a0b0bebcb
--- /dev/null
+++ b/pkgs/applications/audio/lastwatch/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchgit, pythonPackages }:
+
+pythonPackages.buildPythonPackage rec {
+  name = "lastwatch-${version}";
+  namePrefix = "";
+  version = "0.4.1";
+
+  src = fetchgit {
+    url = "git://github.com/aszlig/LastWatch.git";
+    rev = "refs/tags/v${version}";
+    sha256 = "c43f0fd87e9f3daafc7e8676daf2e89c8e21fbabc278eb1455e28d2997587a92";
+  };
+
+  pythonPath = [
+    pythonPackages.pyinotify
+    pythonPackages.pylast
+    pythonPackages.mutagen
+  ];
+
+  propagatedBuildInputs = pythonPath;
+
+  installCommand = "python setup.py install --prefix=$out";
+
+  meta = {
+    homepage = "https://github.com/aszlig/LastWatch";
+    description = "An inotify-based last.fm audio scrobbler";
+    license = stdenv.lib.licenses.gpl2;
+  };
+}