Skip to content

Instantly share code, notes, and snippets.

@lovesegfault
Created November 18, 2019 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lovesegfault/bfc0b9a3b9d037fca4ab12f92612c2cc to your computer and use it in GitHub Desktop.
Save lovesegfault/bfc0b9a3b9d037fca4ab12f92612c2cc to your computer and use it in GitHub Desktop.
{ stdenv, fetchurl }:
stdenv.mkDerivation {
pname = "essentia-extractor";
version = "2.1_beta2";
arch_table = {
"x86_64-linux" = "linux-x86_64";
"i686-linux" = "linux-i686";
};
sha_table = {
"x86_64-linux" = "d9902aadac4f442992877945da2a6fe8d6ea6b0de314ca8ac0c28dc5f253f7d8";
"i686-linux" = "46deb0a053b4910c4e68737a7b6556ff5360260c8f86652f91a0130445f5c949";
};
arch = arch_table.${stdenv.system};
sha = sha_table.${stdenv.system};
src = fetchurl {
url =
"ftp://ftp.acousticbrainz.org/pub/acousticbrainz/essentia-extractor-v${version}-${arch}.tar.gz";
sha256 = "${sha}";
};
unpackPhase = "unpackFile $src ; export sourceRoot=.";
installPhase = ''
mkdir -p $out/bin
cp streaming_extractor_music $out/bin
'';
meta = with stdenv.lib; {
homepage = https://acousticbrainz.org/download;
description = "AcousticBrainz audio feature extractor";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ lovesegfault ];
platforms = [ "x86_64-linux" "i686-linux" ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment