nixpkgs/pkgs/os-specific/linux/reptyr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
945 B
Nix
Raw Normal View History

2022-11-26 02:21:12 +00:00
{ stdenv, lib, fetchFromGitHub, python3 }:
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";
pname = "reptyr";
2018-12-05 04:18:09 +00:00
src = fetchFromGitHub {
owner = "nelhage";
repo = "reptyr";
rev = "reptyr-${version}";
2022-07-17 10:17:10 +00:00
sha256 = "sha256-gM3aMEqk71RWUN1NxByd21tIzp6PmJ54Cqrh5MsjHtI=";
};
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
nativeCheckInputs = [ python ];
2022-11-26 02:21:12 +00:00
2018-12-05 04:18:09 +00:00
doCheck = true;
2022-11-26 02:21:12 +00:00
checkFlags = [
"PYTHON_CMD=${python.interpreter}"
];
meta = {
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
];
maintainers = with lib.maintainers; [raskin];
license = lib.licenses.mit;
description = "Reparent a running program to a new terminal";
homepage = "https://github.com/nelhage/reptyr";
};
}