summary refs log tree commit diff
path: root/pkgs/development/libraries/liblastfm/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/liblastfm/default.nix')
-rw-r--r--pkgs/development/libraries/liblastfm/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/development/libraries/liblastfm/default.nix b/pkgs/development/libraries/liblastfm/default.nix
index acc5af0ca9e0..57a325a72349 100644
--- a/pkgs/development/libraries/liblastfm/default.nix
+++ b/pkgs/development/libraries/liblastfm/default.nix
@@ -1,18 +1,25 @@
 { stdenv, fetchurl, ruby, qt4, pkgconfig, libsamplerate, fftwSinglePrec }:
 
+let version = "0.3.3"; in
+
 stdenv.mkDerivation rec {
-  name = "liblastfm-0.3.0";
+  name = "liblastfm-${version}";
 
+  # Upstream does not package git tags as tarballs. Get tarball from github.
   src = fetchurl {
-    url = "http://cdn.last.fm/src/${name}.tar.bz2";
-    sha256 = "0vgpkbqmynm975nlcw3caxpz30wvvz35c7a9kfr2wjqizvxrfwnx";
+    url = "https://github.com/mxcl/liblastfm/tarball/${version}";
+    name = "${name}.tar.gz";
+    sha256 = "0v33vzj89mgx2pc5fmiywlz51i553ckydw9xz70fiflm2inbl1r6";
   };
 
   prefixKey = "--prefix ";
   propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
-  buildInputs = [ ruby pkgconfig ];
+  buildNativeInputs = [ ruby pkgconfig ];
+
+  configureFlags = "--release";
 
-  patchPhase = "patchShebangs .";
+  patches = [ ./ruby-1.9.patch ];
+  postPatch = "patchShebangs .";
 
   meta = {
     homepage = http://github.com/mxcl/liblastfm;