picard: Patch in path of AcoustED fingerprinter.

That way we have the fingerprinter preselected in the configuration file
and the user doesn't need to search with an "open file" dialog inside
the Nix store.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-08-14 18:39:35 +02:00
parent e8eea6c2c0
commit edc4e80862
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -1,5 +1,6 @@
{ stdenv, fetchurl, pythonPackages, gettext, pyqt4
, pkgconfig, libdiscid, libofa, ffmpeg }:
, pkgconfig, libdiscid, libofa, ffmpeg, acoustidFingerprinter
}:
pythonPackages.buildPythonPackage rec {
name = "picard-${version}";
@ -11,6 +12,13 @@ pythonPackages.buildPythonPackage rec {
md5 = "d1086687b7f7b0d359a731b1a25e7b66";
};
postPatch = let
fpr = "${acoustidFingerprinter}/bin/acoustid_fpcalc";
in ''
sed -ri -e 's|(TextOption.*"acoustid_fpcalc"[^"]*")[^"]*|\1${fpr}|' \
picard/ui/options/fingerprinting.py
'';
buildInputs = [
pkgconfig
ffmpeg