11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
16 owner = "thomasokken";
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-v3nZMjV9KnoTefeu2jl3k1B7efnJnNVOAfDVLyce6QI=";
33 sed -i -e "s|/bin/ls|ls|" gtk/Makefile
40 name = "com.thomasokken.free42bin";
41 desktopName = "Free42Bin";
42 genericName = "Calculator";
45 comment = finalAttrs.meta.description;
46 categories = [ "Utility" "Calculator" ];
49 name = "com.thomasokken.free42dec";
50 desktopName = "Free42Dec";
51 genericName = "Calculator";
54 comment = finalAttrs.meta.description;
55 categories = [ "Utility" "Calculator" ];
63 make --jobs=$NIX_BUILD_CORES -C gtk
65 make --jobs=$NIX_BUILD_CORES -C gtk BCD_MATH=1
73 install --directory $out/bin \
74 $out/share/doc/free42 \
75 $out/share/free42/skins \
76 $out/share/icons/hicolor/48x48/apps \
77 $out/share/icons/hicolor/128x128/apps
79 install -m755 gtk/free42dec gtk/free42bin $out/bin
80 install -m644 gtk/README $out/share/doc/free42/README-GTK
81 install -m644 README $out/share/doc/free42/README
83 install -m644 gtk/icon-48x48.xpm $out/share/icons/hicolor/48x48/apps
84 install -m644 gtk/icon-128x128.xpm $out/share/icons/hicolor/128x128/apps
85 install -m644 skins/* $out/share/free42/skins
91 homepage = "https://github.com/thomasokken/free42";
92 description = "A software clone of HP-42S Calculator";
93 license = with lib.licenses; [ gpl2Only ];
94 maintainers = with lib.maintainers; [ AndersonTorres ];
95 mainProgram = "free42dec";
96 platforms = with lib.platforms; unix;