depot/third_party/nixpkgs/pkgs/os-specific/linux/reptyr/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

43 lines
945 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)" ];
nativeCheckInputs = [ 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";
};
}