diff options
author | Renaud <c0bw3b@users.noreply.github.com> | 2018-11-30 09:29:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-30 09:29:50 +0100 |
commit | 4088758a6bc73fdf57c4da2a4b0ee6a762b77428 (patch) | |
tree | c948e49e40dff4729de2dbae3f1172c4f9159a84 /pkgs/tools/graphics | |
parent | cf1fb28991f2bf2b47b650d1a233049d3aeca1eb (diff) | |
parent | 3f806a0ae7f00fc0bb629a8d2d45ffe306db95d7 (diff) |
Merge pull request #51244 from uri-canva/perceptualdiff
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; + }; +} |