blob: 929a327bd35ca010005710f501f5302b896a59d3 (
plain)
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
|
{
lib,
stdenv,
fetchurl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "forktty";
version = "1.3";
src = fetchurl {
url = "mirror://ibiblioPubLinux/utils/terminal/forktty-${finalAttrs.version}.tgz";
hash = "sha256-6xc5eshCuCIOsDh0r2DizKAeypGH0TRRotZ4itsvpVk=";
};
preBuild = ''
sed -e s@/usr/bin/ginstall@install@g -i Makefile
'';
preInstall = ''
mkdir -p "$out/bin"
mkdir -p "$out/share/man/man8"
'';
makeFlags = [
"prefix=$(out)"
"manprefix=$(out)/share/"
];
meta = {
description = "Tool to detach from controlling TTY and attach to another";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ raskin ];
platforms = lib.platforms.linux;
};
})
|