diff options
author | Stanisław Pitucha <git@viraptor.info> | 2024-04-19 09:20:21 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 09:20:21 +1000 |
commit | 101f07032dceefcc98d78f12a054b85dbe27b75f (patch) | |
tree | a841276b82d1a3eb6fc79bd5fae1025f3e5c2fe1 /pkgs/by-name | |
parent | c84ad9e9651f41ab4c49b91a92665ea050910bb6 (diff) | |
parent | 8767312047844c224f9e7291f98bed436881f6da (diff) |
Merge pull request #304495 from viraptor/ssimulacra2
ssimulacra2: init at 2.1
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/ss/ssimulacra2/package.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/by-name/ss/ssimulacra2/package.nix b/pkgs/by-name/ss/ssimulacra2/package.nix new file mode 100644 index 0000000000000..9e9992f6d9368 --- /dev/null +++ b/pkgs/by-name/ss/ssimulacra2/package.nix @@ -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"; + }; +}) |