mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 00:54:46 +00:00
ab3eeabfed
Likewise for propagatedBuildNativeInputs, etc. "buildNativeInputs" sounds like an imperative rather than a noun phrase.
31 lines
875 B
Nix
31 lines
875 B
Nix
{ stdenv, fetchurl, ruby, qt4, pkgconfig, libsamplerate, fftwSinglePrec, which }:
|
|
|
|
let version = "0.3.3"; in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "liblastfm-${version}";
|
|
|
|
# Upstream does not package git tags as tarballs. Get tarball from github.
|
|
src = fetchurl {
|
|
url = "https://github.com/mxcl/liblastfm/tarball/${version}";
|
|
name = "${name}.tar.gz";
|
|
sha256 = "0v33vzj89mgx2pc5fmiywlz51i553ckydw9xz70fiflm2inbl1r6";
|
|
};
|
|
|
|
prefixKey = "--prefix ";
|
|
propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
|
|
nativeBuildInputs = [ ruby pkgconfig which ];
|
|
|
|
configureFlags = "--release";
|
|
|
|
patches = [ ./ruby-1.9.patch ];
|
|
postPatch = "patchShebangs .";
|
|
|
|
meta = {
|
|
homepage = http://github.com/mxcl/liblastfm;
|
|
description = "Official LastFM library";
|
|
inherit (qt4.meta) platforms;
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
|
};
|
|
}
|