nixpkgs-suyu/pkgs/tools/graphics/blockhash/default.nix
Matthew Bauer f2a20b6e52 treewide: use wafHook
Replace "waf" phases with wafHook that manages everything
automatically. Should make things more modular.

Packages affected here are:

- a2jmidid
- ams-lv2
- ardour
- fomp
- guitarix
- ingen
- jalv
- mda-lv2
- non
- patchage
- hamster-time-tracker
- kupfer
- xiphos
- xfce4-dockbarx-plugin
- xfce4-namebar-plugin
- dropbox
- clasp
- aubio
- liliv
- lv2
- lvtk
- ntk
- raul
- sratom
- suil
- ganv
- ndn-cxx
- ns3
- serd
- sord
- termbox
- wxmupen64plus
- jackaudio
- pflask
- blockhash
- glmark2
- weighttp
2018-11-13 19:13:48 -06:00

28 lines
810 B
Nix

{ stdenv, fetchFromGitHub, python, pkgconfig, imagemagick, wafHook }:
stdenv.mkDerivation rec {
name = "blockhash-${version}";
version = "0.3.1";
src = fetchFromGitHub {
owner = "commonsmachinery";
repo = "blockhash";
rev = "v${version}";
sha256 = "0m7ikppl42iicgmwsb7baajmag7v0p1ab06xckifvrr0zm21bq9p";
};
nativeBuildInputs = [ python pkgconfig wafHook ];
buildInputs = [ imagemagick ];
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;
};
}