Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #51552 from lopsided98/reptyr-update

reptyr: 0.6.2 -> 0.7.0

authored by

Michael Raskin and committed by
GitHub
be1d5e83 3ebdd65a

+12 -11
+12 -11
pkgs/os-specific/linux/reptyr/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub }: 1 + { stdenv, lib, fetchFromGitHub, python2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 - version = "0.6.2"; 4 + version = "0.7.0"; 5 5 name = "reptyr-${version}"; 6 + 6 7 src = fetchFromGitHub { 7 8 owner = "nelhage"; 8 9 repo = "reptyr"; 9 10 rev = "reptyr-${version}"; 10 - sha256 = "0yfy1p0mz05xg5gzp52vilfz0yl1sjjsvwn0z073mnr4wyam7fg8"; 11 + sha256 = "1hnijfz1ab34j2h2cxc3f43rmbclyihgn9x9wxa7jqqgb2xm71hj"; 11 12 }; 12 13 13 - # Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror. 14 - postPatch = '' 15 - sed 1i'#include <sys/sysmacros.h>' -i platform/linux/linux.c 16 - ''; 14 + makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ]; 17 15 18 - # Needed with GCC 7 19 - NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation"; 16 + checkInputs = [ (python2.withPackages (p: [ p.pexpect ])) ]; 17 + doCheck = true; 20 18 21 - makeFlags = ["PREFIX=$(out)"]; 22 19 meta = { 23 20 platforms = [ 24 21 "i686-linux" 25 22 "x86_64-linux" 26 23 "i686-freebsd" 27 24 "x86_64-freebsd" 28 - ] ++ lib.platforms.arm; 25 + "armv5tel-linux" 26 + "armv6l-linux" 27 + "armv7l-linux" 28 + "aarch64-linux" 29 + ]; 29 30 maintainers = with lib.maintainers; [raskin]; 30 31 license = lib.licenses.mit; 31 32 description = "Reparent a running program to a new terminal";