2020-10-05 08:44:06 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, lib
|
|
|
|
, autoreconfHook
|
2021-01-17 02:30:45 +00:00
|
|
|
, pkg-config
|
2020-10-05 08:44:06 +01:00
|
|
|
, glib
|
|
|
|
, darwin
|
|
|
|
, acl
|
|
|
|
, gnome2
|
2020-10-26 21:38:28 +00:00
|
|
|
, libticonv
|
2020-10-26 21:42:34 +00:00
|
|
|
, libtifiles2
|
2020-10-26 21:45:19 +00:00
|
|
|
, libticables2
|
2020-10-05 08:44:06 +01:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
libticalcs2 = stdenv.mkDerivation rec {
|
|
|
|
pname = "libticalcs2";
|
|
|
|
version = "1.1.9";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/tilp/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "08c9wgrdnyqcs45mx1bjb8riqq81bzfkhgaijxzn96rhpj40fy3n";
|
|
|
|
};
|
2021-01-17 02:30:45 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-10-05 08:44:06 +01:00
|
|
|
buildInputs = [ glib libticables2 libticonv libtifiles2 lzma bzip2 ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ acl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ darwin.libobjc ];
|
|
|
|
};
|
|
|
|
in
|
2020-10-26 21:38:28 +00:00
|
|
|
|
2020-10-05 08:44:06 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tilem";
|
|
|
|
version = "2.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "1ba38xzhp3yf21ip3cgql6jzy49jc34sfnjsl4syxyrd81d269zw";
|
|
|
|
};
|
2021-01-17 02:30:45 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-10-05 08:44:06 +01:00
|
|
|
buildInputs = [ glib gnome2.gtk libticonv libtifiles2 libticables2 libticalcs2 ];
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-lm" ];
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-05 08:44:06 +01:00
|
|
|
homepage = "http://lpg.ticalc.org/prj_tilem/";
|
|
|
|
description = "Emulator and debugger for Texas Instruments Z80-based graphing calculators";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-10-26 21:38:28 +00:00
|
|
|
maintainers = with maintainers; [ siraben luc65r ];
|
2020-10-05 08:44:06 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|