2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, freeimage }:
|
2018-11-29 19:12:24 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "perceptualdiff";
|
|
|
|
version = "2.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "myint";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "176n518xv0pczf1yyz9r5a8zw5r6sh5ym596kmvw30qznp8n4a8j";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ freeimage ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-11-29 19:12:24 +01:00
|
|
|
description = "A program that compares two images using a perceptually based image metric";
|
|
|
|
homepage = "https://github.com/myint/perceptualdiff";
|
2021-05-06 04:36:08 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2018-11-29 19:12:24 +01:00
|
|
|
maintainers = with maintainers; [ uri-canva ];
|
|
|
|
platforms = platforms.x86;
|
|
|
|
};
|
|
|
|
}
|