depot/third_party/nixpkgs/pkgs/tools/graphics/s2png/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

26 lines
687 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";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ diffutils gd ];
installFlags = [ "prefix=" "DESTDIR=$(out)" ];
meta = {
homepage = "https://github.com/dbohdan/s2png/";
description = "Store any data in PNG images";
license = lib.licenses.gpl2Plus;
maintainers = [ lib.maintainers.dbohdan ];
platforms = lib.platforms.unix;
mainProgram = "s2png";
};
}