1{ lib, stdenv, fetchFromGitHub
2, automake, autoconf, readline
3, libX11, bluez, SDL2
4}:
5
6stdenv.mkDerivation rec {
7 pname = "X11basic";
8 version = "1.27";
9
10 src = fetchFromGitHub {
11 owner = "kollokollo";
12 repo = pname;
13 rev = version;
14 sha256 = "1hpxzdqnjl1fiwgs2vrjg4kxm29c7pqwk3g1m4p5pm4x33a3d1q2";
15 };
16
17 nativeBuildInputs = [ autoconf automake ];
18 buildInputs = [
19 readline libX11 SDL2 bluez
20 ];
21
22 preConfigure = "cd src;autoconf";
23
24 configureFlags = [
25 "--with-bluetooth"
26 "--with-usb"
27 "--with-readline"
28 "--with-sdl"
29 "--with-x"
30 "--enable-cryptography"
31 ];
32
33 preInstall = ''
34 touch x11basic.{eps,svg}
35 mkdir -p $out/{bin,lib}
36 mkdir -p $out/share/{applications,icons/hicolor/scalable/apps}
37 cp -r ../examples $out/share/.
38 '';
39
40 meta = with lib; {
41 homepage = "https://x11-basic.sourceforge.net/";
42 description = "A Basic interpreter and compiler with graphics capabilities";
43 license = licenses.gpl2;
44 maintainers = with maintainers; [ edwtjo ];
45 platforms = platforms.unix;
46 };
47
48}