Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: chromaprint 1.6.0 -> 1.6.1 https://github.com/acoustid/chromaprint/releases attrpath: chromaprint Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/41w4a4ifjyx8mcbxiy990gpgac4ya230-packages.json.drv building '/nix/store/41w4a4ifjyx8mcbxiy990gpgac4ya230-packages.json.drv'... Going to be running update for following packages: - chromaprint-1.6.0 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - chromaprint-1.6.0: UPDATING ... - chromaprint-1.6.0: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/ch/chromaprint/package.nix b/pkgs/by-name/ch/chromaprint/package.nix index 1f4a27adb643..b52758d9185b 100644 --- a/pkgs/by-name/ch/chromaprint/package.nix +++ b/pkgs/by-name/ch/chromaprint/package.nix @@ -17,13 +17,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "chromaprint"; - version = "1.6.0"; + version = "1.6.1"; src = fetchFromGitHub { owner = "acoustid"; repo = "chromaprint"; tag = "v${finalAttrs.version}"; - hash = "sha256-G3HIMgbjaAXsC+8nt7mkj58xA62qwA8FC+PfTGblhNg="; + hash = "sha256-Es903zeZ++9/Xb/npUU3rB0V87DVqwT9uTMbQdSzfJI="; }; patches = [ No auto update branch exists Old version 1.6.0" not present in staging derivation file with contents: { lib, stdenv, fetchFromGitHub, fetchurl, cmake, ninja, ffmpeg-headless, zlib, testers, validatePkgConfig, nix-update-script, withExamples ? true, withTools ? true, }: stdenv.mkDerivation (finalAttrs: { pname = "chromaprint"; version = "1.6.1"; src = fetchFromGitHub { owner = "acoustid"; repo = "chromaprint"; tag = "v${finalAttrs.version}"; hash = "sha256-Es903zeZ++9/Xb/npUU3rB0V87DVqwT9uTMbQdSzfJI="; }; nativeBuildInputs = [ cmake ninja validatePkgConfig ]; buildInputs = [ ffmpeg-headless ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ zlib ]; # with trivialautovarinit enabled can produce an empty .pc file hardeningDisable = [ "trivialautovarinit" ]; cmakeFlags = [ (lib.cmakeBool "BUILD_TOOLS" withTools) ] ++ lib.optionals (!finalAttrs.finalPackage.doCheck) [ # special-cased to avoid a mass-rebuild: remove from `lib.optionals` as part of next update (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) ]; passthru = { updateScript = nix-update-script { }; tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; # From some reason it dies at the end... doCheck = !stdenv.hostPlatform.isDarwin; checkPhase = let exampleAudio = fetchurl { name = "Dvorak_Symphony_9_1.mp3"; url = "https://archive.org/download/Dvorak_Symphony_9/01.Adagio-Allegro_Molto.mp3"; hash = "sha256-I+Ve3/OpL+3Joc928F8M21LhCH2eQfRtaJVx9mNOLW0="; meta.license = lib.licenses.publicDomain; }; # sha256 because actual output of fpcalc is quite long expectedHash = "e2895130bcbe7190184379021daa60c5f5d476da4a2fecb06df7160819662e20"; in '' runHook preCheck tests/all_tests ${lib.optionalString withTools "diff -u <(src/cmd/fpcalc -plain ${exampleAudio} | sha256sum | cut -c-64) <(echo '${expectedHash}')"} runHook postCheck ''; meta = { changelog = "https://github.com/acoustid/chromaprint/releases/tag/v${finalAttrs.version}"; homepage = "https://acoustid.org/chromaprint"; description = "AcoustID audio fingerprinting library"; license = lib.licenses.lgpl21Plus; platforms = lib.platforms.unix; pkgConfigModules = [ "libchromaprint" ]; } // lib.attrsets.optionalAttrs withTools { mainProgram = "fpcalc"; }; })