dmtx-utils: 0.7.4 -> 0.7.6

+27 -28
+27 -24
pkgs/tools/graphics/dmtx-utils/default.nix
··· 1 - {lib, stdenv, fetchurl, libdmtx, pkg-config, imagemagick}: 2 - let 3 - s = # Generated upstream information 4 - rec { 5 - baseName="dmtx-utils"; 6 - version="0.7.4"; 7 - name="${baseName}-${version}"; 8 - hash="1di8ymlziy9856abd6rb72z0zqzmrff4r3vql0q9r5sk5ax4s417"; 9 - url="mirror://sourceforge/project/libdmtx/libdmtx/0.7.4/dmtx-utils-0.7.4.tar.gz"; 10 - sha256="1di8ymlziy9856abd6rb72z0zqzmrff4r3vql0q9r5sk5ax4s417"; 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + , pkg-config 6 + , libdmtx 7 + , imagemagick 8 + }: 9 + 10 + stdenv.mkDerivation rec { 11 + pname = "dmtx-utils"; 12 + version = "0.7.6"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "dmtx"; 16 + repo = "dmtx-utils"; 17 + rev = "v${version}"; 18 + sha256 = "06m3qncqdlcnmw83n95yrx2alaq6bld320ax26z4ndnla41yk0p4"; 11 19 }; 12 - nativeBuildInputs = [ pkg-config ]; 13 - buildInputs = [ 14 - libdmtx imagemagick 15 - ]; 16 - in 17 - stdenv.mkDerivation { 18 - inherit (s) name version; 19 - inherit nativeBuildInputs buildInputs; 20 - src = fetchurl { 21 - inherit (s) url sha256; 22 - }; 20 + 21 + nativeBuildInputs = [ autoreconfHook pkg-config ]; 22 + 23 + buildInputs = [ libdmtx imagemagick ]; 24 + 23 25 meta = { 24 - inherit (s) version; 25 26 description = "Data matrix command-line utilities"; 26 - license = lib.licenses.lgpl2 ; 27 - maintainers = [lib.maintainers.raskin]; 27 + homepage = "https://github.com/dmtx/dmtx-utils"; 28 + changelog = "https://github.com/dmtx/dmtx-utils/blob/v${version}/ChangeLog"; 29 + license = lib.licenses.lgpl2; 30 + maintainers = [ lib.maintainers.raskin ]; 28 31 platforms = lib.platforms.unix; 29 32 }; 30 33 }
-4
pkgs/tools/graphics/dmtx-utils/default.upstream
··· 1 - url https://sourceforge.net/projects/libdmtx/files/libdmtx/ 2 - SF_version_dir 3 - version_link 'dmtx-utils-.*[.]tar[.][a-z0-9]+/download$' 4 - SF_redirect