diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-03-23 02:18:28 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-03-23 02:18:28 +0100 |
commit | b7639c40d1f249a4961a663d768a2a55e1a052d6 (patch) | |
tree | f40ad23ae1b365ef11be4b06ac69da5b6c7c1476 /pkgs/tools/audio | |
parent | 85a633de9fb69e1becebe8d69dbf8ad12b06e08d (diff) |
essentia-extractor: fix eval on darwin
Diffstat (limited to 'pkgs/tools/audio')
-rw-r--r-- | pkgs/tools/audio/essentia-extractor/default.nix | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/tools/audio/essentia-extractor/default.nix b/pkgs/tools/audio/essentia-extractor/default.nix index 63ebbb0ffc0b6..4fbdd02e4404c 100644 --- a/pkgs/tools/audio/essentia-extractor/default.nix +++ b/pkgs/tools/audio/essentia-extractor/default.nix @@ -6,22 +6,20 @@ let }; sha_table = { - "x86_64-linux" = - "d9902aadac4f442992877945da2a6fe8d6ea6b0de314ca8ac0c28dc5f253f7d8"; - "i686-linux" = - "46deb0a053b4910c4e68737a7b6556ff5360260c8f86652f91a0130445f5c949"; + "x86_64-linux" = "d9902aadac4f442992877945da2a6fe8d6ea6b0de314ca8ac0c28dc5f253f7d8"; + "i686-linux" = "46deb0a053b4910c4e68737a7b6556ff5360260c8f86652f91a0130445f5c949"; }; - arch = arch_table.${stdenv.system}; - sha = sha_table.${stdenv.system}; + throwSystem = throw "Unsupported system: ${stdenv.system}"; + arch = arch_table.${stdenv.system} or throwSystem; in stdenv.mkDerivation rec { pname = "essentia-extractor"; version = "2.1_beta2"; src = fetchurl { - url = "ftp://ftp.acousticbrainz.org/pub/acousticbrainz/essentia-extractor-v${version}-${arch}.tar.gz"; - sha256 = sha; + url = "https://ftp.acousticbrainz.org/pub/acousticbrainz/essentia-extractor-v${version}-${arch}.tar.gz"; + sha256 = sha_table.${stdenv.system} or throwSystem; }; unpackPhase = "unpackFile $src ; export sourceRoot=."; |