depot/third_party/nixpkgs/pkgs/development/interpreters/bwbasic/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

37 lines
809 B
Nix

{ lib, stdenv, dos2unix, fetchurl, unzip }:
stdenv.mkDerivation rec {
pname = "bwbasic";
version = "3.20";
src = fetchurl {
url = "mirror://sourceforge/project/bwbasic/bwbasic/version%203.20/bwbasic-3.20.zip";
sha256 = "1w9r4cl7z1lh52c1jpjragbspi1qn0zb7jhcsldav4gdnzxfw67f";
};
nativeBuildInputs = [ dos2unix unzip ];
unpackPhase = ''
unzip $src
'';
postPatch = ''
dos2unix configure
patchShebangs configure
chmod +x configure
'';
hardeningDisable = [ "format" ];
preInstall = ''
mkdir -p $out/bin
'';
meta = with lib; {
description = "Bywater BASIC Interpreter";
license = licenses.gpl2Only;
maintainers = with maintainers; [ irenes ];
platforms = platforms.all;
homepage = "https://sourceforge.net/projects/bwbasic/";
};
}