2022-11-27 09:42:12 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, python3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
let
|
|
|
|
python = python3.withPackages (p: [ p.pexpect ]);
|
|
|
|
in stdenv.mkDerivation rec {
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "reptyr";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nelhage";
|
|
|
|
repo = "reptyr";
|
|
|
|
rev = "reptyr-${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-jlO/ykrwGJkgKiPxfRQEX4TSksrbPQhkQs+QddwqaQ4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ python ];
|
2022-11-27 09:42:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
checkFlags = [
|
|
|
|
"PYTHON_CMD=${python.interpreter}"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
platforms = [
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
"i686-freebsd"
|
|
|
|
"x86_64-freebsd"
|
|
|
|
"armv5tel-linux"
|
|
|
|
"armv6l-linux"
|
|
|
|
"armv7l-linux"
|
|
|
|
"aarch64-linux"
|
2022-08-12 12:06:08 +00:00
|
|
|
"riscv64-linux"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
maintainers = with lib.maintainers; [raskin];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
description = "Reparent a running program to a new terminal";
|
|
|
|
homepage = "https://github.com/nelhage/reptyr";
|
|
|
|
};
|
|
|
|
}
|