Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 48 lines 1.1 kB view raw
1{ stdenv, lib, fetchFromGitHub 2, automake, autoconf, readline 3, libX11, bluez, SDL2 4}: 5 6stdenv.mkDerivation rec { 7 pname = "X11basic"; 8 version = "1.26"; 9 name = pname + "-" + version; 10 11 src = fetchFromGitHub { 12 owner = "kollokollo"; 13 repo = pname; 14 rev = version; 15 sha256 = "0rwj9cf496xailply0rgw695bzdladh2dhy7vdqac1pwbkl53nvd"; 16 }; 17 18 buildInputs = [ 19 autoconf automake 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 stdenv.lib; { 41 homepage = http://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}