summary refs log tree commit diff
path: root/pkgs/os-specific/linux/forktty/default.nix
blob: 7dc1f0c3b2e4ce1f52d3d992e274580858f9e762 (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
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "forktty";
  version = "1.3";

  src = fetchurl {
    url = "mirror://ibiblioPubLinux/utils/terminal/${pname}-${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 = with lib; {
    description = "Tool to detach from controlling TTY and attach to another";
    license = licenses.gpl2;
    maintainers = with maintainers; [ raskin ];
    platforms = platforms.linux;
  };
}