at 22.05-pre 1.0 kB view raw
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 buildInputs = [ 18 autoconf automake readline libX11 SDL2 bluez 19 ]; 20 21 preConfigure = "cd src;autoconf"; 22 23 configureFlags = [ 24 "--with-bluetooth" 25 "--with-usb" 26 "--with-readline" 27 "--with-sdl" 28 "--with-x" 29 "--enable-cryptography" 30 ]; 31 32 preInstall = '' 33 touch x11basic.{eps,svg} 34 mkdir -p $out/{bin,lib} 35 mkdir -p $out/share/{applications,icons/hicolor/scalable/apps} 36 cp -r ../examples $out/share/. 37 ''; 38 39 meta = with lib; { 40 homepage = "http://x11-basic.sourceforge.net/"; 41 description = "A Basic interpreter and compiler with graphics capabilities"; 42 license = licenses.gpl2; 43 maintainers = with maintainers; [ edwtjo ]; 44 platforms = platforms.unix; 45 }; 46 47}