at 23.11-beta 29 lines 702 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "forktty"; 5 version = "1.3"; 6 7 src = fetchurl { 8 url = "mirror://ibiblioPubLinux/utils/terminal/${pname}-${version}.tgz"; 9 hash = "sha256-6xc5eshCuCIOsDh0r2DizKAeypGH0TRRotZ4itsvpVk="; 10 }; 11 12 preBuild = '' 13 sed -e s@/usr/bin/ginstall@install@g -i Makefile 14 ''; 15 16 preInstall = '' 17 mkdir -p "$out/bin" 18 mkdir -p "$out/share/man/man8" 19 ''; 20 21 makeFlags = [ "prefix=$(out)" "manprefix=$(out)/share/" ]; 22 23 meta = with lib; { 24 description = "Tool to detach from controlling TTY and attach to another"; 25 license = licenses.gpl2; 26 maintainers = with maintainers; [ raskin ]; 27 platforms = platforms.linux; 28 }; 29}