forktty: refactor
This commit is contained in:
parent
459f9fe2be
commit
ec0126de09
2 changed files with 16 additions and 25 deletions
|
@ -1,36 +1,29 @@
|
|||
{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;
|
||||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "forktty";
|
||||
version = "1.3";
|
||||
|
||||
src = fetchurl {
|
||||
inherit (s) url sha256;
|
||||
url = "http://sunsite.unc.edu/pub/linux/utils/terminal/forktty-${version}.tgz";
|
||||
sha256 = "sha256-6xc5eshCuCIOsDh0r2DizKAeypGH0TRRotZ4itsvpVk=";
|
||||
};
|
||||
|
||||
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;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to detach from controlling TTY and attach to another";
|
||||
license = lib.licenses.gpl2 ;
|
||||
maintainers = [lib.maintainers.raskin];
|
||||
platforms = lib.platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
url http://sunsite.unc.edu/pub/linux/utils/terminal/
|
||||
version_link 'forktty.*tgz'
|
Loading…
Reference in a new issue