1 { lib, stdenv, fetchFromGitHub, intltool, autoreconfHook, pkg-config, libqalculate, gtk3, curl, wrapGAppsHook3, desktopToDarwinBundle }:
3 stdenv.mkDerivation (finalAttrs: {
4 pname = "qalculate-gtk";
7 src = fetchFromGitHub {
9 repo = "qalculate-gtk";
10 rev = "v${finalAttrs.version}";
11 hash = "sha256-YZfjZxuYnpmIh9dKk1ggLgwww6gCP9F0MnY8BBOWiB0=";
14 hardeningDisable = [ "format" ];
16 nativeBuildInputs = [ intltool pkg-config autoreconfHook wrapGAppsHook3 ]
17 ++ lib.optionals stdenv.hostPlatform.isDarwin [ desktopToDarwinBundle ];
18 buildInputs = [ libqalculate gtk3 curl ];
19 enableParallelBuilding = true;
22 description = "Ultimate desktop calculator";
23 homepage = "http://qalculate.github.io";
24 maintainers = with maintainers; [ gebner doronbehar alyaeanyx ];
25 license = licenses.gpl2Plus;
26 mainProgram = "qalculate-gtk";
27 platforms = platforms.all;