mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
Adding forktty terminal connection/disconnection helper
This commit is contained in:
parent
9b6f7c14ec
commit
e8773c4139
36
pkgs/os-specific/linux/forktty/default.nix
Normal file
36
pkgs/os-specific/linux/forktty/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{stdenv, fetchurl}:
|
||||
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"
|
||||
'';
|
||||
makeFlags='' prefix="''${out}" manprefix="''${out}/share/" '';
|
||||
meta = {
|
||||
inherit (s) version;
|
||||
description = ''Tool to detach from controlling TTY and attach to another'';
|
||||
license = stdenv.lib.licenses.gpl2 ;
|
||||
maintainers = [stdenv.lib.maintainers.raskin];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
2
pkgs/os-specific/linux/forktty/default.upstream
Normal file
2
pkgs/os-specific/linux/forktty/default.upstream
Normal file
|
@ -0,0 +1,2 @@
|
|||
url http://sunsite.unc.edu/pub/linux/utils/terminal/
|
||||
version_link 'forktty.*tgz'
|
|
@ -898,6 +898,8 @@ let
|
|||
withX11 = true;
|
||||
};
|
||||
|
||||
forktty = callPackage ../os-specific/linux/forktty {};
|
||||
|
||||
fortune = callPackage ../tools/misc/fortune { };
|
||||
|
||||
fox = callPackage ../development/libraries/fox/default.nix {
|
||||
|
|
Loading…
Reference in a new issue