mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{ lib, 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";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoconf automake ];
|
|
buildInputs = [
|
|
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 lib; {
|
|
homepage = "https://x11-basic.sourceforge.net/";
|
|
description = "Basic interpreter and compiler with graphics capabilities";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
platforms = platforms.unix;
|
|
};
|
|
|
|
}
|