nixpkgs/pkgs/os-specific/linux/reptyr/default.nix
2023-07-02 20:32:57 +00:00

44 lines
946 B
Nix

{ stdenv, lib, fetchFromGitHub, python3 }:
let
python = python3.withPackages (p: [ p.pexpect ]);
in stdenv.mkDerivation rec {
version = "0.10.0";
pname = "reptyr";
src = fetchFromGitHub {
owner = "nelhage";
repo = "reptyr";
rev = "reptyr-${version}";
sha256 = "sha256-jlO/ykrwGJkgKiPxfRQEX4TSksrbPQhkQs+QddwqaQ4=";
};
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";
};
}