summary refs log tree commit diff
path: root/pkgs/tools/graphics/dmtx-utils/default.nix
blob: f4cc746a24f3a019d62d3d86b128096198008eb7 (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
25
26
27
28
29
30
31
32
33
34
35
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libdmtx
, imagemagick
, Foundation
}:

stdenv.mkDerivation rec {
  pname = "dmtx-utils";
  version = "0.7.6";

  src = fetchFromGitHub {
    owner = "dmtx";
    repo = "dmtx-utils";
    rev = "v${version}";
    sha256 = "06m3qncqdlcnmw83n95yrx2alaq6bld320ax26z4ndnla41yk0p4";
  };

  nativeBuildInputs = [ autoreconfHook pkg-config ];

  buildInputs = [ libdmtx imagemagick ]
    ++ lib.optional stdenv.isDarwin Foundation;

  meta = {
    description = "Data matrix command-line utilities";
    homepage = "https://github.com/dmtx/dmtx-utils";
    changelog = "https://github.com/dmtx/dmtx-utils/blob/v${version}/ChangeLog";
    license = lib.licenses.lgpl2;
    maintainers = [ lib.maintainers.raskin ];
    platforms = lib.platforms.unix;
  };
}