2019-12-06 04:36:00 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, python2 }:
|
2014-02-19 22:04:59 +01:00
|
|
|
|
2012-10-04 07:17:09 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-12-05 05:18:09 +01:00
|
|
|
version = "0.7.0";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "reptyr";
|
2018-12-05 05:18:09 +01:00
|
|
|
|
2018-10-08 13:13:44 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nelhage";
|
|
|
|
repo = "reptyr";
|
|
|
|
rev = "reptyr-${version}";
|
2018-12-05 05:18:09 +01:00
|
|
|
sha256 = "1hnijfz1ab34j2h2cxc3f43rmbclyihgn9x9wxa7jqqgb2xm71hj";
|
2012-10-04 07:17:09 +02:00
|
|
|
};
|
2017-02-22 16:54:19 +01:00
|
|
|
|
2019-12-06 04:36:00 +01:00
|
|
|
patches = [
|
|
|
|
# Fix tests hanging
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/nelhage/reptyr/commit/bca3070ac0f3888b5d37ee162505be81b3b496ff.patch";
|
|
|
|
sha256 = "0w6rpv9k4a80q0ijzdq5hlpr37ncr284piqjv5agy8diniwlilab";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-12-05 05:18:09 +01:00
|
|
|
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
|
2017-02-22 16:54:19 +01:00
|
|
|
|
2018-12-05 05:18:09 +01:00
|
|
|
checkInputs = [ (python2.withPackages (p: [ p.pexpect ])) ];
|
|
|
|
doCheck = true;
|
2017-11-16 18:48:50 +01:00
|
|
|
|
2012-10-04 07:17:09 +02:00
|
|
|
meta = {
|
2018-11-30 01:45:31 +01:00
|
|
|
platforms = [
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
"i686-freebsd"
|
|
|
|
"x86_64-freebsd"
|
2018-12-05 05:18:09 +01:00
|
|
|
"armv5tel-linux"
|
|
|
|
"armv6l-linux"
|
|
|
|
"armv7l-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
];
|
2018-11-30 01:45:31 +01:00
|
|
|
maintainers = with lib.maintainers; [raskin];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
description = "Reparent a running program to a new terminal";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/nelhage/reptyr";
|
2012-10-04 07:17:09 +02:00
|
|
|
};
|
|
|
|
}
|