2021-02-22 14:13:47 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, libdmtx
|
|
|
|
, imagemagick
|
2021-05-14 22:34:07 +01:00
|
|
|
, Foundation
|
2021-02-22 14:13:47 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dmtx-utils";
|
|
|
|
version = "0.7.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dmtx";
|
|
|
|
repo = "dmtx-utils";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "06m3qncqdlcnmw83n95yrx2alaq6bld320ax26z4ndnla41yk0p4";
|
2014-10-23 05:54:49 +01:00
|
|
|
};
|
2021-02-22 14:13:47 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
|
2021-05-14 22:34:07 +01:00
|
|
|
buildInputs = [ libdmtx imagemagick ]
|
|
|
|
++ lib.optional stdenv.isDarwin Foundation;
|
2021-02-22 14:13:47 +00:00
|
|
|
|
2014-10-23 05:54:49 +01:00
|
|
|
meta = {
|
|
|
|
description = "Data matrix command-line utilities";
|
2021-02-22 14:13:47 +00:00
|
|
|
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 ];
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2014-10-23 05:54:49 +01:00
|
|
|
};
|
|
|
|
}
|