summary refs log tree commit diff
path: root/pkgs/development/compilers/x11basic/default.nix
blob: 147ec13c5556a7f895f14212307fb533fcb99818 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ stdenv, fetchFromGitHub
, automake, autoconf, readline
, libX11, bluez, SDL2
}:

stdenv.mkDerivation rec {
  pname = "X11basic";
  version = "1.27";

  src = fetchFromGitHub {
    owner = "kollokollo";
    repo = pname;
    rev = version;
    sha256 = "1hpxzdqnjl1fiwgs2vrjg4kxm29c7pqwk3g1m4p5pm4x33a3d1q2";
  };

  buildInputs = [
    autoconf automake readline libX11 SDL2 bluez
  ];

  preConfigure = "cd src;autoconf";

  configureFlags = [
    "--with-bluetooth"
    "--with-usb"
    "--with-readline"
    "--with-sdl"
    "--with-x"
    "--enable-cryptography"
  ];

  preInstall = ''
    touch x11basic.{eps,svg}
    mkdir -p $out/{bin,lib}
    mkdir -p $out/share/{applications,icons/hicolor/scalable/apps}
    cp -r ../examples $out/share/.
  '';

  meta = with stdenv.lib; {
    homepage = http://x11-basic.sourceforge.net/;
    description = "A Basic interpreter and compiler with graphics capabilities.";
    license = licenses.gpl2;
    maintainers = with maintainers; [ edwtjo ];
    platforms = platforms.unix;
  };

}