2021-01-22 12:25:31 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2018-11-03 17:56:04 +01:00
|
|
|
, automake, autoconf, readline
|
|
|
|
, libX11, bluez, SDL2
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "X11basic";
|
2019-11-30 01:33:22 +01:00
|
|
|
version = "1.27";
|
2018-11-03 17:56:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kollokollo";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-30 01:33:22 +01:00
|
|
|
sha256 = "1hpxzdqnjl1fiwgs2vrjg4kxm29c7pqwk3g1m4p5pm4x33a3d1q2";
|
2018-11-03 17:56:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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/.
|
|
|
|
'';
|
|
|
|
|
2021-01-22 12:25:31 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://x11-basic.sourceforge.net/";
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "A Basic interpreter and compiler with graphics capabilities";
|
2018-11-03 17:56:04 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|