Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 38 lines 1.1 kB view raw
1{ stdenv, fetchurl, expat, curl, fftw }: 2 3let 4 version = "0.9.3"; 5 deb_patch = "5"; 6in 7stdenv.mkDerivation rec { 8 name = "libofa-${version}"; 9 10 src = fetchurl { 11 url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/musicip-libofa/${name}.tar.gz"; 12 sha256 = "184ham039l7lwhfgg0xr2vch2xnw1lwh7sid432mh879adhlc5h2"; 13 }; 14 15 patches = fetchurl { 16 url = "mirror://debian/pool/main/libo/libofa/libofa_${version}-${deb_patch}.debian.tar.gz"; 17 sha256 = "1rfkyz13cm8izm90c1xflp4rvsa24aqs6qpbbbqqcbmvzsj6j9yn"; 18 }; 19 20 outputs = [ "out" "dev" ]; 21 22 setOutputFlags = false; 23 24 preConfigure = '' 25 configureFlagsArray=(--includedir=$dev/include --libdir=$out/lib) 26 ''; 27 28 propagatedBuildInputs = [ expat curl fftw ]; 29 30 meta = { 31 homepage = https://code.google.com/archive/p/musicip-libofa/; 32 description = "Library Open Fingerprint Architecture"; 33 longDescription = '' 34 LibOFA (Library Open Fingerprint Architecture) is an open-source audio 35 fingerprint created and provided by MusicIP''; 36 platforms = stdenv.lib.platforms.linux; 37 }; 38}