2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
|
|
|
arch_table = {
|
|
|
|
"x86_64-linux" = "linux-x86_64";
|
|
|
|
"i686-linux" = "linux-i686";
|
|
|
|
};
|
|
|
|
|
|
|
|
sha_table = {
|
2022-03-30 09:31:56 +00:00
|
|
|
"x86_64-linux" = "d9902aadac4f442992877945da2a6fe8d6ea6b0de314ca8ac0c28dc5f253f7d8";
|
|
|
|
"i686-linux" = "46deb0a053b4910c4e68737a7b6556ff5360260c8f86652f91a0130445f5c949";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
throwSystem = throw "Unsupported system: ${stdenv.system}";
|
|
|
|
arch = arch_table.${stdenv.system} or throwSystem;
|
2021-03-19 17:17:44 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "essentia-extractor";
|
|
|
|
version = "2.1_beta2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-30 09:31:56 +00:00
|
|
|
url = "https://ftp.acousticbrainz.org/pub/acousticbrainz/essentia-extractor-v${version}-${arch}.tar.gz";
|
|
|
|
sha256 = sha_table.${stdenv.system} or throwSystem;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = "unpackFile $src ; export sourceRoot=.";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp streaming_extractor_music $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://acousticbrainz.org/download";
|
|
|
|
description = "AcousticBrainz audio feature extractor";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
};
|
|
|
|
}
|