about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/graphics/s2png/default.nix
blob: e7d3b8151a445f6aeb0002d9309de3f55b15fdfe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchFromGitHub, diffutils, gd, pkgconfig }:

stdenv.mkDerivation rec {
  pname = "s2png";
  version = "0.7.2";

  src = fetchFromGitHub {
    owner = "dbohdan";
    repo = "s2png";
    rev = "v${version}";
    sha256 = "0y3crfm0jqprgxamlly713cka2x1bp6z63p1lw9wh4wc37kpira6";
  };

  buildInputs = [ diffutils gd pkgconfig ];
  installFlags = [ "prefix=" "DESTDIR=$(out)" ];

  meta = {
    homepage = https://github.com/dbohdan/s2png/;
    description = "Store any data in PNG images";
    license = stdenv.lib.licenses.gpl2;
    maintainers = [ stdenv.lib.maintainers.dbohdan ];
    platforms = stdenv.lib.platforms.unix;
  };
}