Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, freeimage }: 2 3stdenv.mkDerivation rec { 4 pname = "perceptualdiff"; 5 version = "2.1"; 6 7 src = fetchFromGitHub { 8 owner = "myint"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "176n518xv0pczf1yyz9r5a8zw5r6sh5ym596kmvw30qznp8n4a8j"; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ freeimage ]; 16 17 meta = with lib; { 18 description = "A program that compares two images using a perceptually based image metric"; 19 homepage = "https://github.com/myint/perceptualdiff"; 20 license = licenses.gpl2Plus; 21 maintainers = with maintainers; [ uri-canva ]; 22 platforms = platforms.unix; 23 }; 24}