Skip to content

Commit

Permalink
metapixel: init at 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dali99 committed Jan 17, 2021
1 parent 4e9bd00 commit a67d49d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/tools/graphics/metapixel/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ stdenv, fetchFromGitHub, libpng, libjpeg, giflib, perl, pkg-config }:

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
'';

meta = with stdenv.lib; {
homepage = "https://github.com/schani/metapixel";
description = "Tool for generating photomosaics";
license = licenses.gpl2Only;
maintainers = with maintainers; [ dandellion ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,8 @@ in

albert = libsForQt5.callPackage ../applications/misc/albert {};

metapixel = callPackage ../tools/graphics/metapixel { };

### APPLICATIONS/TERMINAL-EMULATORS

alacritty = callPackage ../applications/terminal-emulators/alacritty {
Expand Down

0 comments on commit a67d49d

Please sign in to comment.