mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
bc0d605cf1
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
37 lines
973 B
Nix
37 lines
973 B
Nix
{lib, 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 = lib.licenses.gpl2 ;
|
|
maintainers = [lib.maintainers.raskin];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|