ssimulacra2: init at 2.1
This commit is contained in:
parent
1f54fa2ddf
commit
8767312047
1 changed files with 49 additions and 0 deletions
49
pkgs/by-name/ss/ssimulacra2/package.nix
Normal file
49
pkgs/by-name/ss/ssimulacra2/package.nix
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, ninja
|
||||||
|
, cmake
|
||||||
|
, libpng
|
||||||
|
, libhwy
|
||||||
|
, lcms2
|
||||||
|
, giflib
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "ssimulacra2";
|
||||||
|
version = "2.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "cloudinary";
|
||||||
|
repo = "ssimulacra2";
|
||||||
|
hash = "sha256-gOo8WCWMdXOSmny0mQSzCvHgURQTCNBFD4G4sxfmXik=";
|
||||||
|
rev = "tags/v${finalAttrs.version}";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
ninja
|
||||||
|
cmake
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libpng
|
||||||
|
libhwy
|
||||||
|
lcms2
|
||||||
|
giflib
|
||||||
|
];
|
||||||
|
|
||||||
|
sourceRoot = "${finalAttrs.src.name}/src";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
install -m 755 -D ssimulacra2 -t $out/bin/
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/cloudinary/ssimulacra2";
|
||||||
|
maintainers = [ maintainers.viraptor ];
|
||||||
|
license = licenses.bsd3;
|
||||||
|
description = "Perceptual image comparison tool";
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in a new issue