2014-02-19 22:04:59 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2012-10-04 07:17:09 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-27 09:46:24 +02:00
|
|
|
version = "0.6.2";
|
2012-10-04 07:17:09 +02:00
|
|
|
name = "reptyr-${version}";
|
2014-02-19 22:04:59 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/nelhage/reptyr/archive/reptyr-${version}.tar.gz";
|
2015-08-27 09:46:24 +02:00
|
|
|
sha256 = "07pfl0rkgm8m3f3jy8r9l2yvnhf8lgllpsk3mh57mhzdxq8fagf7";
|
2012-10-04 07:17:09 +02:00
|
|
|
};
|
2017-02-22 16:54:19 +01:00
|
|
|
|
|
|
|
# Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
|
|
|
|
postPatch = ''
|
|
|
|
sed 1i'#include <sys/sysmacros.h>' -i platform/linux/linux.c
|
|
|
|
'';
|
|
|
|
|
2017-11-16 18:48:50 +01:00
|
|
|
# Needed with GCC 7
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation";
|
|
|
|
|
2012-10-04 07:17:09 +02:00
|
|
|
makeFlags = ["PREFIX=$(out)"];
|
|
|
|
meta = {
|
2017-09-13 14:19:14 +02:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2012-10-04 07:17:09 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
description = ''A Linux tool to change controlling pty of a process'';
|
|
|
|
};
|
|
|
|
}
|