summary refs log tree commit diff
path: root/pkgs/tools/graphics/perceptualdiff/default.nix
blob: 2227ff402994466d210dc17201968926aab2166a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, stdenv, fetchFromGitHub, cmake, freeimage }:

stdenv.mkDerivation rec {
  pname = "perceptualdiff";
  version = "2.1";

  src = fetchFromGitHub {
    owner = "myint";
    repo = pname;
    rev = "v${version}";
    sha256 = "176n518xv0pczf1yyz9r5a8zw5r6sh5ym596kmvw30qznp8n4a8j";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ freeimage ];

  meta = with lib; {
    description = "A program that compares two images using a perceptually based image metric";
    homepage = "https://github.com/myint/perceptualdiff";
    license = licenses.gpl2;
    maintainers = with maintainers; [ uri-canva ];
    platforms = platforms.x86;
  };
}