bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
25 lines
689 B
Nix
25 lines
689 B
Nix
{ 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 = "Program that compares two images using a perceptually based image metric";
|
|
homepage = "https://github.com/myint/perceptualdiff";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ uri-canva ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "perceptualdiff";
|
|
};
|
|
}
|