mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
Merge pull request #51552 from lopsided98/reptyr-update
reptyr: 0.6.2 -> 0.7.0
This commit is contained in:
commit
be1d5e83c7
@ -1,31 +1,32 @@
|
||||
{ stdenv, lib, fetchFromGitHub }:
|
||||
{ stdenv, lib, fetchFromGitHub, python2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.6.2";
|
||||
version = "0.7.0";
|
||||
name = "reptyr-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nelhage";
|
||||
repo = "reptyr";
|
||||
rev = "reptyr-${version}";
|
||||
sha256 = "0yfy1p0mz05xg5gzp52vilfz0yl1sjjsvwn0z073mnr4wyam7fg8";
|
||||
sha256 = "1hnijfz1ab34j2h2cxc3f43rmbclyihgn9x9wxa7jqqgb2xm71hj";
|
||||
};
|
||||
|
||||
# Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
|
||||
postPatch = ''
|
||||
sed 1i'#include <sys/sysmacros.h>' -i platform/linux/linux.c
|
||||
'';
|
||||
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
|
||||
|
||||
# Needed with GCC 7
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation";
|
||||
checkInputs = [ (python2.withPackages (p: [ p.pexpect ])) ];
|
||||
doCheck = true;
|
||||
|
||||
makeFlags = ["PREFIX=$(out)"];
|
||||
meta = {
|
||||
platforms = [
|
||||
"i686-linux"
|
||||
"x86_64-linux"
|
||||
"i686-freebsd"
|
||||
"x86_64-freebsd"
|
||||
] ++ lib.platforms.arm;
|
||||
"armv5tel-linux"
|
||||
"armv6l-linux"
|
||||
"armv7l-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
maintainers = with lib.maintainers; [raskin];
|
||||
license = lib.licenses.mit;
|
||||
description = "Reparent a running program to a new terminal";
|
||||
|
Loading…
Reference in New Issue
Block a user