mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
7a00f3bca9
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/liblastfm/versions
30 lines
992 B
Nix
30 lines
992 B
Nix
{ stdenv, fetchurl, qt4, pkgconfig, libsamplerate, fftwSinglePrec, which, cmake
|
|
, darwin }:
|
|
|
|
let version = "1.1.0"; 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/lastfm/liblastfm/tarball/${version}";
|
|
name = "${name}.tar.gz";
|
|
sha256 = "1j34xc30vg7sfszm2jx9mlz9hy7p1l929fka9wnfcpbib8gfi43x";
|
|
};
|
|
|
|
prefixKey = "--prefix ";
|
|
propagatedBuildInputs = [ qt4 libsamplerate fftwSinglePrec ];
|
|
nativeBuildInputs = [ pkgconfig which cmake ];
|
|
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/lastfm/liblastfm;
|
|
repositories.git = git://github.com/lastfm/liblastfm.git;
|
|
description = "Official LastFM library";
|
|
inherit (qt4.meta) platforms;
|
|
maintainers = [ maintainers.phreedom ];
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|