Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitea,
|
|
autoreconfHook,
|
|
fig2dev,
|
|
readline,
|
|
libX11,
|
|
bluez,
|
|
SDL2,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "x11basic";
|
|
version = "1.28-65";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "kollo";
|
|
repo = "X11Basic";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-07sRUFKJ4CYMtQhRu18PElvNQN2DyKkRJUt7oIhenkA=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/src";
|
|
|
|
postPatch = ''
|
|
chmod -R u+w examples/compiler
|
|
substituteInPlace configure.in \
|
|
--replace-fail "main(foo)" "int main(int foo)"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
fig2dev
|
|
];
|
|
|
|
buildInputs = [
|
|
readline
|
|
libX11
|
|
SDL2
|
|
bluez
|
|
];
|
|
|
|
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 = {
|
|
homepage = "https://x11-basic.codeberg.page";
|
|
description = "Basic interpreter and compiler with graphics capabilities";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ edwtjo ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|