at 24.05-pre 809 B view raw
1{ lib, stdenv, dos2unix, fetchurl, unzip }: 2 3stdenv.mkDerivation rec { 4 pname = "bwbasic"; 5 version = "3.20"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/project/bwbasic/bwbasic/version%203.20/bwbasic-3.20.zip"; 9 sha256 = "1w9r4cl7z1lh52c1jpjragbspi1qn0zb7jhcsldav4gdnzxfw67f"; 10 }; 11 12 nativeBuildInputs = [ dos2unix unzip ]; 13 14 unpackPhase = '' 15 unzip $src 16 ''; 17 18 postPatch = '' 19 dos2unix configure 20 patchShebangs configure 21 chmod +x configure 22 ''; 23 24 hardeningDisable = [ "format" ]; 25 26 preInstall = '' 27 mkdir -p $out/bin 28 ''; 29 30 meta = with lib; { 31 description = "Bywater BASIC Interpreter"; 32 license = licenses.gpl2Only; 33 maintainers = with maintainers; [ irenes ]; 34 platforms = platforms.all; 35 homepage = "https://sourceforge.net/projects/bwbasic/"; 36 }; 37}