chromaprint: add darwin compatibility
This commit is contained in:
parent
f1325cdfe7
commit
c6dd555bde
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl, cmake, boost, ffmpeg }:
|
{ lib, stdenv, fetchurl, cmake, boost, ffmpeg, zlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let frameworks = (import <nixpkgs> {}).darwin.apple_sdk.frameworks;
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
pname = "chromaprint";
|
pname = "chromaprint";
|
||||||
version = "1.5.0";
|
version = "1.5.0";
|
||||||
|
|
||||||
@ -11,7 +12,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
buildInputs = [ boost ffmpeg ];
|
darwinInputs = [
|
||||||
|
frameworks.Accelerate
|
||||||
|
frameworks.CoreGraphics
|
||||||
|
frameworks.CoreVideo
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
buildInputs = [ boost ffmpeg ] ++ lib.optional stdenv.isDarwin darwinInputs;
|
||||||
|
|
||||||
cmakeFlags = [ "-DBUILD_EXAMPLES=ON" "-DBUILD_TOOLS=ON" ];
|
cmakeFlags = [ "-DBUILD_EXAMPLES=ON" "-DBUILD_TOOLS=ON" ];
|
||||||
|
|
||||||
@ -20,6 +27,6 @@ stdenv.mkDerivation rec {
|
|||||||
description = "AcoustID audio fingerprinting library";
|
description = "AcoustID audio fingerprinting library";
|
||||||
maintainers = with maintainers; [ ehmry ];
|
maintainers = with maintainers; [ ehmry ];
|
||||||
license = licenses.lgpl21Plus;
|
license = licenses.lgpl21Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user