diff --git a/pkgs/by-name/ze/zegrapher/package.nix b/pkgs/by-name/ze/zegrapher/package.nix index 88b3f0c8775e..d4794550eddf 100644 --- a/pkgs/by-name/ze/zegrapher/package.nix +++ b/pkgs/by-name/ze/zegrapher/package.nix @@ -1,39 +1,46 @@ -{ lib, stdenv -, fetchFromGitHub -, qt5 -, boost }: +{ + lib, + boost, + fetchFromGitHub, + qt5, + stdenv, +}: let inherit (qt5) qmake wrapQtAppsHook; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "zegrapher"; version = "3.1.1"; src = fetchFromGitHub { owner = "AdelKS"; repo = "ZeGrapher"; - rev = "v${version}"; - sha256 = "sha256-OSQXm0gDI1zM2MBM4iiY43dthJcAZJkprklolsNMEvk="; + rev = "v${finalAttrs.version}"; + hash = "sha256-OSQXm0gDI1zM2MBM4iiY43dthJcAZJkprklolsNMEvk="; }; nativeBuildInputs = [ qmake wrapQtAppsHook ]; + buildInputs = [ boost ]; - meta = with lib; { - homepage = "https://zegrapher.com/"; + strictDeps = true; + + meta = { + homepage = "https://zegrapher.com/en/"; description = "Open source math plotter"; - mainProgram = "ZeGrapher"; longDescription = '' An open source, free and easy to use math plotter. It can plot functions, sequences, parametric equations and data on the plane. ''; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ AndersonTorres ]; + license = lib.licenses.gpl3Plus; + mainProgram = "ZeGrapher"; + maintainers = with lib.maintainers; [ AndersonTorres ]; + platforms = lib.platforms.unix; }; -} +})