mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
27 lines
787 B
Nix
27 lines
787 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.6.2";
|
|
name = "reptyr-${version}";
|
|
src = fetchurl {
|
|
url = "https://github.com/nelhage/reptyr/archive/reptyr-${version}.tar.gz";
|
|
sha256 = "07pfl0rkgm8m3f3jy8r9l2yvnhf8lgllpsk3mh57mhzdxq8fagf7";
|
|
};
|
|
|
|
# Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
|
|
postPatch = ''
|
|
sed 1i'#include <sys/sysmacros.h>' -i platform/linux/linux.c
|
|
'';
|
|
|
|
# Needed with GCC 7
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation";
|
|
|
|
makeFlags = ["PREFIX=$(out)"];
|
|
meta = {
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
|
license = stdenv.lib.licenses.mit;
|
|
description = ''A Linux tool to change controlling pty of a process'';
|
|
};
|
|
}
|