nixpkgs/pkgs/development/libraries/zint/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.5 KiB
Nix
Raw Normal View History

2022-07-05 09:36:12 +00:00
{ lib
, stdenv
, fetchFromGitHub
, wrapQtAppsHook
, cmake
, qtbase
2022-08-23 08:48:32 +00:00
, qtsvg
2022-07-05 09:36:12 +00:00
, qttools
2022-08-23 08:48:32 +00:00
, testers
, zint
2022-07-05 09:36:12 +00:00
}:
stdenv.mkDerivation rec {
pname = "zint";
2023-12-25 07:15:25 +00:00
version = "2.13.0";
2022-07-05 09:36:12 +00:00
src = fetchFromGitHub {
2022-08-23 08:48:32 +00:00
owner = "zint";
2022-07-05 09:36:12 +00:00
repo = "zint";
rev = version;
2023-12-25 07:15:25 +00:00
hash = "sha256-/ILq/7A8Lffe2NuiABiV3KeYXapuL1SO55Qk3wXfC/8=";
2022-07-05 09:36:12 +00:00
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake wrapQtAppsHook ];
2022-08-23 08:48:32 +00:00
buildInputs = [ qtbase qtsvg qttools ];
cmakeFlags = [ "-DZINT_QT6:BOOL=ON" ];
2022-07-05 09:36:12 +00:00
postInstall = ''
2022-08-23 08:48:32 +00:00
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
2022-07-05 09:36:12 +00:00
'';
2022-08-23 08:48:32 +00:00
passthru.tests.version = testers.testVersion {
package = zint;
command = "zint --version";
inherit version;
2022-07-05 09:36:12 +00:00
};
meta = with lib; {
description = "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.
'';
2022-08-23 08:48:32 +00:00
homepage = "https://www.zint.org.uk";
changelog = "https://github.com/zint/zint/blob/${version}/ChangeLog";
2022-07-05 09:36:12 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ azahi ];
2023-09-08 15:23:08 +00:00
platforms = platforms.all;
2022-07-05 09:36:12 +00:00
};
}