diff --git a/pkgs/tools/graphics/dmtx/default.nix b/pkgs/tools/graphics/dmtx/default.nix new file mode 100644 index 00000000000..3457a0ab402 --- /dev/null +++ b/pkgs/tools/graphics/dmtx/default.nix @@ -0,0 +1,27 @@ +args : +let + lib = args.lib; + fetchurl = args.fetchurl; + + version = lib.getAttr ["version"] "0.5.2" args; + buildInputs = with args; [ + libpng libtiff + ]; +in +rec { + src = fetchurl { + url = "http://prdownloads.sourceforge.net/libdmtx/libdmtx-${version}.tar.bz2"; + sha256 = "1xx61gykmq07m2vkqazns5whj8rv9nhwhjs6dakz9ai4qh7d53qz"; + }; + + inherit buildInputs; + configureFlags = []; + + /* doConfigure should be specified separately */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + name = "dmtx-" + version; + meta = { + description = "DataMatrix (2D bar code) processing tools."; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4cb38c31d54..cd492518048 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7049,6 +7049,10 @@ let inherit (xlibs) libX11 libXinerama; }; + dmtx = builderDefsPackage (import ../tools/graphics/dmtx) { + inherit libpng libtiff; + }; + dwm = import ../applications/window-managers/dwm { inherit fetchurl stdenv; inherit (xlibs) libX11 libXinerama;