NUR/pkgs/metapixel/default.nix

34 lines
918 B
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, stdenv, fetchFromGitHub, libpng, libjpeg, giflib, perl, pkg-config}:
stdenv.mkDerivation {
pname = "metapixel";
version = "1.0.2";
src = fetchFromGitHub {
owner = "schani";
repo = "metapixel";
rev = "98ee9daa093b6c334941242e63f90b1c2876eb4f";
fetchSubmodules = true;
sha256 = "0r7n3a6bvcxkbpda4mwmrpicii09iql5z69nkjqygkwxw7ny3309";
};
makeFlags = [ "PREFIX=build" "metapixel" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libpng libjpeg giflib perl ];
installPhase = ''
mkdir -p $out/bin
cp metapixel $out/bin/metapixel
cp metapixel-prepare $out/bin/metapixel-prepare
cp metapixel-sizesort $out/bin/metapixel-sizesort
'';
meta = with lib; {
homepage = "https://github.com/schani/metapixel";
description = "Tool for generating photomosaics";
license = licenses.gpl2;
# maintainers = with maintainers; [ dandellion ];
};
}