mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
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 ];
|
|
|
|
# reptyr needs to do ptrace of a non-child process
|
|
# It can be neither used nor tested if the kernel is not told to allow this
|
|
doCheck = false;
|
|
|
|
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";
|
|
mainProgram = "reptyr";
|
|
homepage = "https://github.com/nelhage/reptyr";
|
|
};
|
|
}
|