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