2018-11-30 00:45:31 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
2014-02-19 21:04:59 +00:00
|
|
|
|
2012-10-04 06:17:09 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-27 08:46:24 +01:00
|
|
|
version = "0.6.2";
|
2012-10-04 06:17:09 +01:00
|
|
|
name = "reptyr-${version}";
|
2018-10-08 12:13:44 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nelhage";
|
|
|
|
repo = "reptyr";
|
|
|
|
rev = "reptyr-${version}";
|
|
|
|
sha256 = "0yfy1p0mz05xg5gzp52vilfz0yl1sjjsvwn0z073mnr4wyam7fg8";
|
2012-10-04 06:17:09 +01:00
|
|
|
};
|
2017-02-22 15:54:19 +00: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 17:48:50 +00:00
|
|
|
# Needed with GCC 7
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation";
|
|
|
|
|
2012-10-04 06:17:09 +01:00
|
|
|
makeFlags = ["PREFIX=$(out)"];
|
|
|
|
meta = {
|
2018-11-30 00:45:31 +00: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 16:44:05 +00:00
|
|
|
homepage = https://github.com/nelhage/reptyr;
|
2012-10-04 06:17:09 +01:00
|
|
|
};
|
|
|
|
}
|