2021-01-15 15:45:37 +01:00
|
|
|
{lib, stdenv, fetchurl}:
|
2013-10-20 18:26:36 +02:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="forktty";
|
|
|
|
version="1.3";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
hash="0nd55zdqly6nl98k9lc7j751x86cw9hayx1qn0725f22r1x3j5zb";
|
|
|
|
url="http://sunsite.unc.edu/pub/linux/utils/terminal/forktty-1.3.tgz";
|
|
|
|
sha256="0nd55zdqly6nl98k9lc7j751x86cw9hayx1qn0725f22r1x3j5zb";
|
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
preBuild = ''
|
|
|
|
sed -e s@/usr/bin/ginstall@install@g -i Makefile
|
|
|
|
'';
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
mkdir -p "$out/share/man/man8"
|
|
|
|
'';
|
2019-10-28 10:17:49 +01:00
|
|
|
makeFlags = [ "prefix=$(out)" "manprefix=$(out)/share/" ];
|
2013-10-20 18:26:36 +02:00
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
2021-01-24 10:19:10 +01:00
|
|
|
description = "Tool to detach from controlling TTY and attach to another";
|
2021-01-15 15:45:37 +01:00
|
|
|
license = lib.licenses.gpl2 ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2013-10-20 18:26:36 +02:00
|
|
|
};
|
|
|
|
}
|