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