2022-11-26 02:21:12 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, python3 }:
|
2014-02-19 21:04:59 +00:00
|
|
|
|
2022-11-26 02:21:12 +00:00
|
|
|
let
|
|
|
|
python = python3.withPackages (p: [ p.pexpect ]);
|
|
|
|
in stdenv.mkDerivation rec {
|
2022-07-17 10:17:10 +00:00
|
|
|
version = "0.9.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "reptyr";
|
2018-12-05 04:18:09 +00:00
|
|
|
|
2018-10-08 11:13:44 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nelhage";
|
|
|
|
repo = "reptyr";
|
|
|
|
rev = "reptyr-${version}";
|
2022-07-17 10:17:10 +00:00
|
|
|
sha256 = "sha256-gM3aMEqk71RWUN1NxByd21tIzp6PmJ54Cqrh5MsjHtI=";
|
2012-10-04 05:17:09 +00:00
|
|
|
};
|
2017-02-22 15:54:19 +00:00
|
|
|
|
2018-12-05 04:18:09 +00:00
|
|
|
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
|
2017-02-22 15:54:19 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ python ];
|
2022-11-26 02:21:12 +00:00
|
|
|
|
2018-12-05 04:18:09 +00:00
|
|
|
doCheck = true;
|
2017-11-16 17:48:50 +00:00
|
|
|
|
2022-11-26 02:21:12 +00:00
|
|
|
checkFlags = [
|
|
|
|
"PYTHON_CMD=${python.interpreter}"
|
|
|
|
];
|
|
|
|
|
2012-10-04 05:17:09 +00:00
|
|
|
meta = {
|
2018-11-30 00:45:31 +00:00
|
|
|
platforms = [
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
"i686-freebsd"
|
|
|
|
"x86_64-freebsd"
|
2018-12-05 04:18:09 +00:00
|
|
|
"armv5tel-linux"
|
|
|
|
"armv6l-linux"
|
|
|
|
"armv7l-linux"
|
|
|
|
"aarch64-linux"
|
2022-07-17 10:17:10 +00:00
|
|
|
"riscv64-linux"
|
2018-12-05 04:18:09 +00:00
|
|
|
];
|
2018-11-30 00:45:31 +00:00
|
|
|
maintainers = with lib.maintainers; [raskin];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
description = "Reparent a running program to a new terminal";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/nelhage/reptyr";
|
2012-10-04 05:17:09 +00:00
|
|
|
};
|
|
|
|
}
|