mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 09:07:29 +00:00
zint: 2.11.0 -> 2.11.1
This commit is contained in:
parent
10f404d749
commit
c9a8985bdb
@ -4,35 +4,41 @@
|
||||
, wrapQtAppsHook
|
||||
, cmake
|
||||
, qtbase
|
||||
, qtsvg
|
||||
, qttools
|
||||
, nix-update-script
|
||||
, testers
|
||||
, zint
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zint";
|
||||
version = "2.11.0";
|
||||
version = "2.11.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "woo-j";
|
||||
owner = "zint";
|
||||
repo = "zint";
|
||||
rev = version;
|
||||
sha256 = "sha256-DtfyXBBEDcltGUAutHl/ksRTTYmS7Ll9kjfgD7NmBbA=";
|
||||
sha256 = "sha256-ozhXy7ftmGz1XvmF8AS1ifWJ3Q5hLSsysB8qLUP60n8=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
||||
|
||||
buildInputs = [ qtbase qttools ];
|
||||
buildInputs = [ qtbase qtsvg qttools ];
|
||||
|
||||
cmakeFlags = [ "-DZINT_QT6:BOOL=ON" ];
|
||||
|
||||
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
|
||||
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.updateScript = nix-update-script {
|
||||
attrPath = pname;
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = zint;
|
||||
command = "zint --version";
|
||||
inherit version;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
@ -43,8 +49,8 @@ stdenv.mkDerivation rec {
|
||||
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";
|
||||
homepage = "https://www.zint.org.uk";
|
||||
changelog = "https://github.com/zint/zint/blob/${version}/ChangeLog";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ azahi ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user