Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libsndfile, 6 wxGTK32, 7 SDL, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "pterm"; 12 version = "6.0.4"; 13 14 buildInputs = [ 15 libsndfile 16 SDL 17 wxGTK32 18 ]; 19 20 src = fetchurl { 21 url = "https://www.cyber1.org/download/linux/pterm-${version}.tar.bz2"; 22 hash = "sha256-0OJvoCOGx/a51Ja7n3fOTeQJEcdyn/GhaJ0NtVCyuC8="; 23 }; 24 25 patches = [ ./0001-dtnetsubs-remove-null-check.patch ]; 26 27 preBuild = '' 28 substituteInPlace Makefile.common Makefile.wxpterm --replace "/bin/echo" "echo" 29 echo "exit 0" > wxversion.py 30 ''; 31 32 hardeningDisable = [ "format" ]; 33 34 env.PTERMVERSION = "${version}"; 35 36 installPhase = '' 37 runHook preInstall 38 39 install -Dm755 "pterm" "$out/bin/pterm" 40 41 runHook postInstall 42 ''; 43 44 meta = with lib; { 45 description = "Terminal emulator for the Cyber1 mainframe-based CYBIS system"; 46 homepage = "https://www.cyber1.org/"; 47 license = licenses.zlib; 48 maintainers = with maintainers; [ sarcasticadmin ]; 49 mainProgram = "pterm"; 50 platforms = platforms.unix; 51 broken = stdenv.hostPlatform.isDarwin; 52 }; 53}