Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, autoreconfHook 5, pkg-config 6, libdmtx 7, imagemagick 8, Foundation 9}: 10 11stdenv.mkDerivation rec { 12 pname = "dmtx-utils"; 13 version = "0.7.6"; 14 15 src = fetchFromGitHub { 16 owner = "dmtx"; 17 repo = "dmtx-utils"; 18 rev = "v${version}"; 19 sha256 = "06m3qncqdlcnmw83n95yrx2alaq6bld320ax26z4ndnla41yk0p4"; 20 }; 21 22 nativeBuildInputs = [ autoreconfHook pkg-config ]; 23 24 buildInputs = [ libdmtx imagemagick ] 25 ++ lib.optional stdenv.isDarwin Foundation; 26 27 meta = { 28 description = "Data matrix command-line utilities"; 29 homepage = "https://github.com/dmtx/dmtx-utils"; 30 changelog = "https://github.com/dmtx/dmtx-utils/blob/v${version}/ChangeLog"; 31 license = lib.licenses.lgpl2; 32 maintainers = [ lib.maintainers.raskin ]; 33 platforms = lib.platforms.unix; 34 }; 35}