1 { lib, stdenv, fetchFromGitHub, python3, pkg-config, imagemagick, wafHook }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "commonsmachinery";
11 sha256 = "sha256-QoqFTCfWtXIrFF3Yx4NfOa9cSjHtCSKz3k3i0u9Qx9M=";
14 nativeBuildInputs = [ python3 pkg-config wafHook ];
15 buildInputs = [ imagemagick ];
20 homepage = "https://github.com/commonsmachinery/blockhash";
22 This is a perceptual image hash calculation tool based on algorithm
23 descibed in Block Mean Value Based Image Perceptual Hashing by Bian Yang,
26 license = licenses.mit;
28 platforms = platforms.unix;
29 mainProgram = "blockhash";