2018-11-29 16:45:31 -08:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
2014-02-19 13:04:59 -08:00
|
|
|
|
2012-10-03 22:17:09 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-27 00:46:24 -07:00
|
|
|
version = "0.6.2";
|
2012-10-03 22:17:09 -07:00
|
|
|
name = "reptyr-${version}";
|
2018-10-08 04:13:44 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nelhage";
|
|
|
|
repo = "reptyr";
|
|
|
|
rev = "reptyr-${version}";
|
|
|
|
sha256 = "0yfy1p0mz05xg5gzp52vilfz0yl1sjjsvwn0z073mnr4wyam7fg8";
|
2012-10-03 22:17:09 -07:00
|
|
|
};
|
2017-02-22 07:54:19 -08: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 09:48:50 -08:00
|
|
|
# Needed with GCC 7
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation";
|
|
|
|
|
2012-10-03 22:17:09 -07:00
|
|
|
makeFlags = ["PREFIX=$(out)"];
|
|
|
|
meta = {
|
2018-11-29 16:45:31 -08:00
|
|
|
platforms = [
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
"i686-freebsd"
|
|
|
|
"x86_64-freebsd"
|
|
|
|
] ++ lib.platforms.arm;
|
|
|
|
maintainers = with lib.maintainers; [raskin];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
description = "Reparent a running program to a new terminal";
|
2018-11-30 08:44:05 -08:00
|
|
|
homepage = https://github.com/nelhage/reptyr;
|
2012-10-03 22:17:09 -07:00
|
|
|
};
|
|
|
|
}
|