2021-12-24 04:21:11 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "forktty";
|
|
|
|
version = "1.3";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2022-03-30 09:31:56 +00:00
|
|
|
url = "mirror://ibiblioPubLinux/utils/terminal/${pname}-${version}.tgz";
|
|
|
|
hash = "sha256-6xc5eshCuCIOsDh0r2DizKAeypGH0TRRotZ4itsvpVk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preBuild = ''
|
|
|
|
sed -e s@/usr/bin/ginstall@install@g -i Makefile
|
|
|
|
'';
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
mkdir -p "$out/share/man/man8"
|
|
|
|
'';
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
makeFlags = [ "prefix=$(out)" "manprefix=$(out)/share/" ];
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "Tool to detach from controlling TTY and attach to another";
|
2021-12-24 04:21:11 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|