1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 gettext,
7 itstool,
8 gtk3,
9 libmpc,
10 libxml2,
11 mpfr,
12 wrapGAppsHook3,
13 mateUpdateScript,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "mate-calc";
18 version = "1.28.0";
19
20 src = fetchurl {
21 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
22 sha256 = "gEsSXR4oZLHnSvgW2psquLGUcrmvl0Q37nNVraXmKPU=";
23 };
24
25 strictDeps = true;
26
27 nativeBuildInputs = [
28 gettext
29 itstool
30 libxml2 # xmllint
31 pkg-config
32 wrapGAppsHook3
33 ];
34
35 buildInputs = [
36 gtk3
37 libmpc
38 libxml2
39 mpfr
40 ];
41
42 enableParallelBuilding = true;
43
44 passthru.updateScript = mateUpdateScript { inherit pname; };
45
46 meta = with lib; {
47 description = "Calculator for the MATE desktop";
48 homepage = "https://mate-desktop.org";
49 license = [ licenses.gpl2Plus ];
50 platforms = platforms.linux;
51 teams = [ teams.mate ];
52 };
53}