3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/graphics/metapixel/default.nix

34 lines
903 B
Nix
Raw Normal View History

2021-01-24 00:40:18 +00:00
{ lib, stdenv, fetchFromGitHub, libpng, libjpeg, giflib, perl, pkg-config }:
2021-01-16 20:57:41 +00:00
stdenv.mkDerivation rec {
pname = "metapixel";
version = "1.0.2";
src = fetchFromGitHub {
owner = "schani";
repo = pname;
rev = "98ee9daa093b6c334941242e63f90b1c2876eb4f";
fetchSubmodules = true;
sha256 = "0r7n3a6bvcxkbpda4mwmrpicii09iql5z69nkjqygkwxw7ny3309";
};
makeFlags = [ "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
'';
2021-01-24 00:40:18 +00:00
meta = with lib; {
2021-01-16 20:57:41 +00:00
homepage = "https://github.com/schani/metapixel";
description = "Tool for generating photomosaics";
license = licenses.gpl2Only;
maintainers = with maintainers; [ dandellion ];
};
}