Files
nixpkgs/pkgs/by-name/bl/blockhash/package.nix
Ben Siraphob 5506449838 pkgs/by-name: fix typos
Assisted-by: Claude Code (claude-opus-5)
2026-08-05 09:56:33 -07:00

44 lines
906 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
python3,
pkg-config,
imagemagick,
wafHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "blockhash";
version = "0.3.3";
src = fetchFromGitHub {
owner = "commonsmachinery";
repo = "blockhash";
rev = "v${finalAttrs.version}";
sha256 = "sha256-QoqFTCfWtXIrFF3Yx4NfOa9cSjHtCSKz3k3i0u9Qx9M=";
};
nativeBuildInputs = [
python3
pkg-config
wafHook
];
buildInputs = [ imagemagick ];
strictDeps = true;
meta = {
homepage = "https://github.com/commonsmachinery/blockhash";
description = ''
This is a perceptual image hash calculation tool based on algorithm
described in Block Mean Value Based Image Perceptual Hashing by Bian Yang,
Fan Gu and Xiamu Niu.
'';
license = lib.licenses.mit;
maintainers = [ ];
platforms = lib.platforms.unix;
mainProgram = "blockhash";
};
})