diff options
author | Uri Baghin <uri@canva.com> | 2018-11-30 05:12:24 +1100 |
---|---|---|
committer | Uri Baghin <uri@canva.com> | 2018-11-30 18:27:43 +1100 |
commit | 3f806a0ae7f00fc0bb629a8d2d45ffe306db95d7 (patch) | |
tree | 24c020a14869bd4aa62c46c74352f9577b00d618 /pkgs/tools/graphics | |
parent | b6dcb9e641950d1ce2e56724573e77b9999ed043 (diff) |
perceptualdiff: init at 2.1
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r-- | pkgs/tools/graphics/perceptualdiff/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/perceptualdiff/default.nix b/pkgs/tools/graphics/perceptualdiff/default.nix new file mode 100644 index 0000000000000..d394a816a49d2 --- /dev/null +++ b/pkgs/tools/graphics/perceptualdiff/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub, cmake, freeimage }: + +stdenv.mkDerivation rec { + pname = "perceptualdiff"; + name = "${pname}-${version}"; + version = "2.1"; + + src = fetchFromGitHub { + owner = "myint"; + repo = pname; + rev = "v${version}"; + sha256 = "176n518xv0pczf1yyz9r5a8zw5r6sh5ym596kmvw30qznp8n4a8j"; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ freeimage ]; + + meta = with stdenv.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; + }; +} |