mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
48 lines
938 B
Nix
48 lines
938 B
Nix
{
|
|
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 = [ "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 = {
|
|
homepage = "https://github.com/schani/metapixel";
|
|
description = "Tool for generating photomosaics";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ dandellion ];
|
|
};
|
|
}
|