2010-09-14 14:29:25 +00:00
|
|
|
{ stdenv, fetchurl, expat, curl, fftw }:
|
|
|
|
|
2013-07-01 07:20:05 +00:00
|
|
|
let
|
|
|
|
version = "0.9.3";
|
|
|
|
deb_patch = "5";
|
|
|
|
in
|
2010-09-14 14:29:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-07-01 07:20:05 +00:00
|
|
|
name = "libofa-${version}";
|
2010-09-14 14:29:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-26 23:44:19 +00:00
|
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/musicip-libofa/${name}.tar.gz";
|
2010-09-14 14:29:25 +00:00
|
|
|
sha256 = "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2";
|
|
|
|
};
|
2010-09-15 12:57:49 +00:00
|
|
|
|
2013-07-01 07:20:05 +00:00
|
|
|
patches = fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/libo/libofa/libofa_${version}-${deb_patch}.debian.tar.gz";
|
|
|
|
sha256 = "1rfkyz13cm8izm90c1xflp4rvsa24aqs6qpbbbqqcbmvzsj6j9yn";
|
|
|
|
};
|
|
|
|
|
2016-09-19 12:48:30 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
setOutputFlags = false;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray=(--includedir=$dev/include --libdir=$out/lib)
|
|
|
|
'';
|
|
|
|
|
2013-07-01 07:20:05 +00:00
|
|
|
propagatedBuildInputs = [ expat curl fftw ];
|
|
|
|
|
2018-10-18 19:26:36 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-10-26 23:44:19 +00:00
|
|
|
homepage = https://code.google.com/archive/p/musicip-libofa/;
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Library Open Fingerprint Architecture";
|
2010-09-15 12:57:49 +00:00
|
|
|
longDescription = ''
|
|
|
|
LibOFA (Library Open Fingerprint Architecture) is an open-source audio
|
|
|
|
fingerprint created and provided by MusicIP'';
|
2018-10-18 19:26:36 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2010-09-15 12:57:49 +00:00
|
|
|
};
|
2010-09-14 14:29:25 +00:00
|
|
|
}
|