2024-08-23 08:59:39 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
gccStdenv,
|
|
|
|
dos2unix,
|
|
|
|
fetchurl,
|
|
|
|
unzip,
|
|
|
|
}:
|
2021-11-22 03:54:02 +00:00
|
|
|
|
2024-08-23 08:57:15 +00:00
|
|
|
gccStdenv.mkDerivation (finalAttrs: {
|
2021-11-22 03:54:02 +00:00
|
|
|
pname = "bwbasic";
|
|
|
|
version = "3.20";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-08-23 08:57:15 +00:00
|
|
|
url = "mirror://sourceforge/project/bwbasic/bwbasic/version%20${finalAttrs.version}/bwbasic-${finalAttrs.version}.zip";
|
|
|
|
hash = "sha256-7hju+rftka0a1QzKsz6wOMSr11NZXhmYKJCGfygjOfE=";
|
2021-11-22 03:54:02 +00:00
|
|
|
};
|
|
|
|
|
2024-08-23 08:59:39 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
dos2unix
|
|
|
|
unzip
|
|
|
|
];
|
2021-11-22 03:54:02 +00:00
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
unzip $src
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
dos2unix configure
|
|
|
|
patchShebangs configure
|
|
|
|
chmod +x configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
2024-08-23 08:57:15 +00:00
|
|
|
meta = {
|
2021-11-22 03:54:02 +00:00
|
|
|
description = "Bywater BASIC Interpreter";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "bwbasic";
|
2024-08-23 08:57:15 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
maintainers = with lib.maintainers; [ irenes ];
|
|
|
|
platforms = lib.platforms.all;
|
2021-11-22 03:54:02 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/bwbasic/";
|
|
|
|
};
|
2024-08-23 08:57:15 +00:00
|
|
|
})
|