zint: init at 2.11.0

Fixes: #176559
This commit is contained in:
Azat Bahawi 2022-07-05 12:36:12 +03:00
parent 369ab30030
commit bf40759a35
No known key found for this signature in database
GPG key ID: C8C6BDDB3847F72B
2 changed files with 53 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -12228,6 +12228,8 @@ with pkgs;
zinit = callPackage ../shells/zsh/zinit {} ; zinit = callPackage ../shells/zsh/zinit {} ;
zint = qt6Packages.callPackage ../development/libraries/zint { };
zs-apc-spdu-ctl = callPackage ../tools/networking/zs-apc-spdu-ctl { }; zs-apc-spdu-ctl = callPackage ../tools/networking/zs-apc-spdu-ctl { };
zs-wait4host = callPackage ../tools/networking/zs-wait4host { }; zs-wait4host = callPackage ../tools/networking/zs-wait4host { };