tm: unbreak (#403519)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
diff --git a/unix_client.c b/unix_client.c
|
||||
index 920910a..6d608fd 100644
|
||||
--- a/unix_client.c
|
||||
+++ b/unix_client.c
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
+#include <string.h>
|
||||
|
||||
#include "main.h"
|
||||
#include "handlers.h"
|
||||
diff --git a/unix_server.c b/unix_server.c
|
||||
index 5cf93ed..d3c51c9 100644
|
||||
--- a/unix_server.c
|
||||
+++ b/unix_server.c
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
#include <sys/un.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/select.h>
|
||||
@@ -4,27 +4,32 @@
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAtts: {
|
||||
pname = "tm";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://vicerveza.homeunix.net/~viric/soft/tm/tm-${version}.tar.gz";
|
||||
sha256 = "3b389bc03b6964ad5ffa57a344b891fdbcf7c9b2604adda723a863f83657c4a0";
|
||||
url = "https://vicerveza.homeunix.net/~viric/soft/tm/tm-${finalAtts.version}.tar.gz";
|
||||
hash = "sha256-OzibwDtpZK1f+lejRLiR/bz3ybJgSt2nI6hj+DZXxKA=";
|
||||
};
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
patches = [
|
||||
# fix using strncpy and strlen without including string.h
|
||||
./missing-string-header.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's@/usr/bin/install@install@g ; s/gcc/cc/g' Makefile
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Terminal mixer - multiplexer for the i/o of terminal applications";
|
||||
homepage = "http://vicerveza.homeunix.net/~viric/soft/tm";
|
||||
license = licenses.gpl2Plus;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = [ ];
|
||||
platforms = platforms.all;
|
||||
platforms = lib.platforms.all;
|
||||
mainProgram = "tm";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user