4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, fetchpatch, cmake, pkg-config, qt4, taglib, chromaprint, ffmpeg }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "acoustid-fingerprinter";
|
|
version = "0.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://bitbucket.org/acoustid/acoustid-fingerprinter/downloads/"
|
|
+ "${pname}-${version}.tar.gz";
|
|
sha256 = "0ckglwy95qgqvl2l6yd8ilwpd6qs7yzmj8g7lnxb50d12115s5n0";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ qt4 taglib chromaprint ffmpeg ];
|
|
|
|
cmakeFlags = [ "-DTAGLIB_MIN_VERSION=${stdenv.lib.getVersion taglib}" ];
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://bitbucket.org/acoustid/acoustid-fingerprinter/commits/632e87969c3a5562a5d4842b03613267ba6236b2/raw";
|
|
sha256 = "15hm9knrpqn3yqrwyjz4zh2aypwbcycd0c5svrsy1fb2h2rh05jk";
|
|
})
|
|
./ffmpeg.patch
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://acoustid.org/fingerprinter";
|
|
description = "Audio fingerprinting tool using chromaprint";
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ ehmry ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|