diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2022-07-07 21:56:25 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 21:56:25 -0300 |
commit | b7fc6f9ffe9da29a788b94625080c3f12eb26ab5 (patch) | |
tree | e344fdaac6687753a2fa3988d8bc6fb23da8c6d0 /pkgs/development | |
parent | 1e0fdf9b8ee8a5fa661732a1a53b46cc13e7ab5c (diff) | |
parent | bf40759a3579135def7f5dc4d8aa0b10f1c03eda (diff) |
Merge pull request #180047 from azahi/zint
zint: init at 2.11.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/zint/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/libraries/zint/default.nix b/pkgs/development/libraries/zint/default.nix new file mode 100644 index 0000000000000..e7663009c59dd --- /dev/null +++ b/pkgs/development/libraries/zint/default.nix @@ -0,0 +1,51 @@ +{ lib +, stdenv +, fetchFromGitHub +, wrapQtAppsHook +, cmake +, qtbase +, qttools +, nix-update-script +}: + +stdenv.mkDerivation rec { + pname = "zint"; + version = "2.11.0"; + + src = fetchFromGitHub { + owner = "woo-j"; + repo = "zint"; + rev = version; + sha256 = "sha256-DtfyXBBEDcltGUAutHl/ksRTTYmS7Ll9kjfgD7NmBbA="; + }; + + outputs = [ "out" "dev" ]; + + nativeBuildInputs = [ cmake wrapQtAppsHook ]; + + buildInputs = [ qtbase qttools ]; + + postInstall = '' + install -Dm644 $src/zint-qt.desktop $out/share/applications/zint-qt.desktop + install -Dm644 $src/zint-qt.png $out/share/pixmaps/zint-qt.png + install -Dm644 $src/frontend_qt/images/scalable/zint-qt.svg $out/share/icons/hicolor/scalable/apps/zint-qt.svg + ''; + + passthru.updateScript = nix-update-script { + attrPath = pname; + }; + + 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 = "http://www.zint.org.uk"; + changelog = "https://github.com/woo-j/zint/blob/${version}/ChangeLog"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ azahi ]; + }; +} |