blockhash: init at 0.3 (#40737)
This commit is contained in:
parent
548417c209
commit
c8a8ecb5b3
2 changed files with 34 additions and 0 deletions
32
pkgs/tools/graphics/blockhash/default.nix
Normal file
32
pkgs/tools/graphics/blockhash/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, fetchFromGitHub, python, pkgconfig, imagemagick }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "blockhash-${version}";
|
||||
version = "0.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "commonsmachinery";
|
||||
repo = "blockhash";
|
||||
rev = "v${version}";
|
||||
sha256 = "15iwljpkykn2711jhls7cwkb23gk6iawlvvk4prl972wic2wlxcj";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ python pkgconfig ];
|
||||
buildInputs = [ imagemagick ];
|
||||
|
||||
configurePhase = "python waf configure --prefix=$out";
|
||||
buildPhase = "python waf";
|
||||
installPhase = "python waf install";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://blockhash.io/";
|
||||
description = ''
|
||||
This is a perceptual image hash calculation tool based on algorithm
|
||||
descibed in Block Mean Value Based Image Perceptual Hashing by Bian Yang,
|
||||
Fan Gu and Xiamu Niu.
|
||||
'';
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.infinisil ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -844,6 +844,8 @@ with pkgs;
|
|||
|
||||
blink = callPackage ../applications/networking/instant-messengers/blink { };
|
||||
|
||||
blockhash = callPackage ../tools/graphics/blockhash { };
|
||||
|
||||
bluemix-cli = callPackage ../tools/admin/bluemix-cli { };
|
||||
|
||||
libqmatrixclient = libsForQt5.callPackage ../development/libraries/libqmatrixclient { };
|
||||
|
|
Loading…
Reference in a new issue