qtforkawesome: refactor

emaryn e1b085ae f2acf15f

Changed files
+9 -8
pkgs
development
libraries
qtforkawesome
+9 -8
pkgs/development/libraries/qtforkawesome/default.nix
···
fork_awesome_release = fetchFromGitHub {
owner = "ForkAwesome";
repo = "Fork-Awesome";
-
rev = "1.2.0";
-
sha256 = "sha256-zG6/0dWjU7/y/oDZuSEv+54Mchng64LVyV8bluskYzc=";
+
tag = "1.2.0";
+
hash = "sha256-zG6/0dWjU7/y/oDZuSEv+54Mchng64LVyV8bluskYzc=";
};
in
stdenv.mkDerivation (finalAttrs: {
···
src = fetchFromGitHub {
owner = "Martchus";
repo = "qtforkawesome";
-
rev = "v${finalAttrs.version}";
-
sha256 = "sha256-9e2TCg3itYtHZSvzCoaiIZmgsCMIoebh6C/XWtKz/2Q=";
+
tag = "v${finalAttrs.version}";
+
hash = "sha256-9e2TCg3itYtHZSvzCoaiIZmgsCMIoebh6C/XWtKz/2Q=";
};
nativeBuildInputs = [
···
cpp-utilities
qtutilities
];
+
cmakeFlags = [
"-DQT_PACKAGE_PREFIX=Qt${lib.versions.major qtbase.version}"
# Current freetype used by NixOS users doesn't support the `.woff2` font
···
dontWrapQtApps = true;
-
meta = with lib; {
+
meta = {
homepage = "https://github.com/Martchus/qtforkawesome";
description = "Library that bundles ForkAwesome for use within Qt applications";
-
license = licenses.gpl2Plus;
-
maintainers = with maintainers; [ doronbehar ];
-
platforms = platforms.linux ++ platforms.darwin;
+
license = lib.licenses.gpl2Plus;
+
maintainers = with lib.maintainers; [ doronbehar ];
+
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
})