diff options
author | aszlig <aszlig@redmoonstudios.org> | 2013-08-14 18:39:35 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2013-08-14 20:50:58 +0200 |
commit | edc4e8086205e9843a28535c26d82f9bdb160015 (patch) | |
tree | 1e80e99a3c61b8e9448eeb1b50722c5f653c2edd /pkgs/applications/audio | |
parent | e8eea6c2c0aad111eb00c6f4aab37a137d80494d (diff) | |
download | nixlib-edc4e8086205e9843a28535c26d82f9bdb160015.tar nixlib-edc4e8086205e9843a28535c26d82f9bdb160015.tar.gz nixlib-edc4e8086205e9843a28535c26d82f9bdb160015.tar.bz2 nixlib-edc4e8086205e9843a28535c26d82f9bdb160015.tar.lz nixlib-edc4e8086205e9843a28535c26d82f9bdb160015.tar.xz nixlib-edc4e8086205e9843a28535c26d82f9bdb160015.tar.zst nixlib-edc4e8086205e9843a28535c26d82f9bdb160015.zip |
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>
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r-- | pkgs/applications/audio/picard/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/audio/picard/default.nix b/pkgs/applications/audio/picard/default.nix index eaf31a76e0e5..1ce09a6dd884 100644 --- a/pkgs/applications/audio/picard/default.nix +++ b/pkgs/applications/audio/picard/default.nix @@ -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 |