nixpkgs/pkgs/tools/graphics/s2png/default.nix
2021-01-17 23:27:27 +07:00

25 lines
629 B
Nix

{ lib, stdenv, fetchFromGitHub, diffutils, gd, pkg-config }:
stdenv.mkDerivation rec {
pname = "s2png";
version = "0.7.2";
src = fetchFromGitHub {
owner = "dbohdan";
repo = "s2png";
rev = "v${version}";
sha256 = "0y3crfm0jqprgxamlly713cka2x1bp6z63p1lw9wh4wc37kpira6";
};
buildInputs = [ diffutils gd pkg-config ];
installFlags = [ "prefix=" "DESTDIR=$(out)" ];
meta = {
homepage = "https://github.com/dbohdan/s2png/";
description = "Store any data in PNG images";
license = lib.licenses.gpl2;
maintainers = [ lib.maintainers.dbohdan ];
platforms = lib.platforms.unix;
};
}