12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
17 owner = "thomasokken";
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-X1fNr+0xc15KmR+qbDOkQraYPUj50b1eWmSheIKl4e8=";
34 sed -i -e "s|/bin/ls|ls|" gtk/Makefile
41 name = "com.thomasokken.free42bin";
42 desktopName = "Free42Bin";
43 genericName = "Calculator";
46 comment = "A software clone of HP-42S Calculator";
53 name = "com.thomasokken.free42dec";
54 desktopName = "Free42Dec";
55 genericName = "Calculator";
58 comment = "A software clone of HP-42S Calculator";
70 make --jobs=$NIX_BUILD_CORES -C gtk
72 make --jobs=$NIX_BUILD_CORES -C gtk BCD_MATH=1
80 install --directory $out/bin \
81 $out/share/doc/free42 \
82 $out/share/free42/skins \
83 $out/share/icons/hicolor/48x48/apps \
84 $out/share/icons/hicolor/128x128/apps
86 install -m755 gtk/free42dec gtk/free42bin $out/bin
87 install -m644 gtk/README $out/share/doc/free42/README-GTK
88 install -m644 README $out/share/doc/free42/README
90 install -m644 gtk/icon-48x48.xpm $out/share/icons/hicolor/48x48/apps
91 install -m644 gtk/icon-128x128.xpm $out/share/icons/hicolor/128x128/apps
92 install -m644 skins/* $out/share/free42/skins
98 homepage = "https://github.com/thomasokken/free42";
99 description = "Software clone of HP-42S Calculator";
100 license = with lib.licenses; [ gpl2Only ];
101 maintainers = with lib.maintainers; [ AndersonTorres ];
102 mainProgram = "free42dec";
103 platforms = with lib.platforms; unix;