diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/zint')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/zint/default.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/zint/default.nix b/nixpkgs/pkgs/development/libraries/zint/default.nix new file mode 100644 index 000000000000..8ba4a68e4b82 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/zint/default.nix @@ -0,0 +1,58 @@ +{ lib +, stdenv +, fetchFromGitHub +, wrapQtAppsHook +, cmake +, qtbase +, qtsvg +, qttools +, testers +, zint +}: + +stdenv.mkDerivation rec { + pname = "zint"; + version = "2.13.0"; + + src = fetchFromGitHub { + owner = "zint"; + repo = "zint"; + rev = version; + hash = "sha256-/ILq/7A8Lffe2NuiABiV3KeYXapuL1SO55Qk3wXfC/8="; + }; + + outputs = [ "out" "dev" ]; + + nativeBuildInputs = [ cmake wrapQtAppsHook ]; + + buildInputs = [ qtbase qtsvg qttools ]; + + cmakeFlags = [ "-DZINT_QT6:BOOL=ON" ]; + + postInstall = '' + install -Dm644 -t $out/share/applications $src/zint-qt.desktop + install -Dm644 -t $out/share/pixmaps $src/zint-qt.png + install -Dm644 -t $out/share/icons/hicolor/scalable/apps $src/frontend_qt/images/scalable/zint-qt.svg + ''; + + passthru.tests.version = testers.testVersion { + package = zint; + command = "zint --version"; + inherit version; + }; + + meta = with lib; { + description = "A barcode generating tool and library"; + longDescription = '' + The Zint project aims to provide a complete cross-platform open source + barcode generating solution. The package currently consists of a Qt based + GUI, a CLI command line executable and a library with an API to allow + developers access to the capabilities of Zint. + ''; + homepage = "https://www.zint.org.uk"; + changelog = "https://github.com/zint/zint/blob/${version}/ChangeLog"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ azahi ]; + platforms = platforms.all; + }; +} |