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