16 stdenv.mkDerivation (finalAttrs: {
17 pname = "qalculate-qt";
20 src = fetchFromGitHub {
22 repo = "qalculate-qt";
23 rev = "v${finalAttrs.version}";
24 hash = "sha256-Tpb/ZN5p3JfPug9NpBHguOi6Okek+g87orD4ISkV+ac=";
38 ] ++ lib.optionals stdenv.hostPlatform.isLinux [ qtwayland ];
41 substituteInPlace qalculate-qt.pro\
42 --replace "LRELEASE" "${qttools.dev}/bin/lrelease"
45 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
46 mkdir -p $out/Applications
47 mv $out/bin/qalculate-qt.app $out/Applications
48 makeWrapper $out/{Applications/qalculate-qt.app/Contents/MacOS,bin}/qalculate-qt
52 description = "Ultimate desktop calculator";
53 homepage = "http://qalculate.github.io";
54 maintainers = with maintainers; [ _4825764518 ];
55 license = licenses.gpl2Plus;
56 mainProgram = "qalculate-qt";
57 platforms = platforms.unix;