mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{ stdenv, fetchFromGitHub
|
|
, automake, autoconf, readline
|
|
, libX11, bluez, SDL2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "X11basic";
|
|
version = "1.26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kollokollo";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0rwj9cf496xailply0rgw695bzdladh2dhy7vdqac1pwbkl53nvd";
|
|
};
|
|
|
|
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/.
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://x11-basic.sourceforge.net/;
|
|
description = "A Basic interpreter and compiler with graphics capabilities.";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
platforms = platforms.unix;
|
|
};
|
|
|
|
}
|