@@ -1,38 +0,0 @@
1−{stdenv, fetchurl}:
2−let
3− s = # Generated upstream information
4− rec {
5− baseName="ttysnoop";
6− version="0.12d.k26";
7− name="${baseName}-${version}";
8− hash="0jb2zchaiqmmickj0la7wjw3sf9vy65qfhhs11yrzx4mmwkp0395";
9− url="http://sysd.org/stas/files/active/0/ttysnoop-0.12d.k26.tar.gz";
10− sha256="0jb2zchaiqmmickj0la7wjw3sf9vy65qfhhs11yrzx4mmwkp0395";
11− };
12− buildInputs = [
13− ];
14−in
15−stdenv.mkDerivation {
16− inherit (s) name version;
17− inherit buildInputs;
18− src = fetchurl {
19− inherit (s) url sha256;
20− };
21− preBuild = ''
22− sed -e "s@/sbin@$out/sbin@g" -i Makefile
23− sed -e "s@/usr/man@$out/share/man@g" -i Makefile
24− mkdir -p "$out/share/man/man8"
25− mkdir -p "$out/sbin"
26− '';
27− postInstall = ''
28− mkdir -p "$out/etc"
29− cp snooptab.dist "$out/etc/snooptab"
30− '';
31− meta = {
32− inherit (s) version;
33− description = "A tool to clone input and output of another tty/pty to the current one";
34− license = stdenv.lib.licenses.gpl2 ;
35− maintainers = [stdenv.lib.maintainers.raskin];
36− platforms = stdenv.lib.platforms.linux;
37− };
38−}