depot/third_party/nixpkgs/pkgs/os-specific/linux/reptyr/default.nix
Default email a71eb02b76 Project import generated by Copybara.
GitOrigin-RevId: a115bb9bd56831941be3776c8a94005867f316a7
2022-11-27 10:42:12 +01:00

43 lines
939 B
Nix

{ stdenv, lib, fetchFromGitHub, python3 }:
let
python = python3.withPackages (p: [ p.pexpect ]);
in stdenv.mkDerivation rec {
version = "0.9.0";
pname = "reptyr";
src = fetchFromGitHub {
owner = "nelhage";
repo = "reptyr";
rev = "reptyr-${version}";
sha256 = "sha256-gM3aMEqk71RWUN1NxByd21tIzp6PmJ54Cqrh5MsjHtI=";
};
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
checkInputs = [ python ];
doCheck = true;
checkFlags = [
"PYTHON_CMD=${python.interpreter}"
];
meta = {
platforms = [
"i686-linux"
"x86_64-linux"
"i686-freebsd"
"x86_64-freebsd"
"armv5tel-linux"
"armv6l-linux"
"armv7l-linux"
"aarch64-linux"
"riscv64-linux"
];
maintainers = with lib.maintainers; [raskin];
license = lib.licenses.mit;
description = "Reparent a running program to a new terminal";
homepage = "https://github.com/nelhage/reptyr";
};
}