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 }: 2 3 stdenv.mkDerivation rec { 4 - version = "0.6.2"; 5 name = "reptyr-${version}"; 6 src = fetchFromGitHub { 7 owner = "nelhage"; 8 repo = "reptyr"; 9 rev = "reptyr-${version}"; 10 - sha256 = "0yfy1p0mz05xg5gzp52vilfz0yl1sjjsvwn0z073mnr4wyam7fg8"; 11 }; 12 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 - ''; 17 18 - # Needed with GCC 7 19 - NIX_CFLAGS_COMPILE = "-Wno-error=format-truncation"; 20 21 - makeFlags = ["PREFIX=$(out)"]; 22 meta = { 23 platforms = [ 24 "i686-linux" 25 "x86_64-linux" 26 "i686-freebsd" 27 "x86_64-freebsd" 28 - ] ++ lib.platforms.arm; 29 maintainers = with lib.maintainers; [raskin]; 30 license = lib.licenses.mit; 31 description = "Reparent a running program to a new terminal";
··· 1 + { stdenv, lib, fetchFromGitHub, python2 }: 2 3 stdenv.mkDerivation rec { 4 + version = "0.7.0"; 5 name = "reptyr-${version}"; 6 + 7 src = fetchFromGitHub { 8 owner = "nelhage"; 9 repo = "reptyr"; 10 rev = "reptyr-${version}"; 11 + sha256 = "1hnijfz1ab34j2h2cxc3f43rmbclyihgn9x9wxa7jqqgb2xm71hj"; 12 }; 13 14 + makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ]; 15 16 + checkInputs = [ (python2.withPackages (p: [ p.pexpect ])) ]; 17 + doCheck = true; 18 19 meta = { 20 platforms = [ 21 "i686-linux" 22 "x86_64-linux" 23 "i686-freebsd" 24 "x86_64-freebsd" 25 + "armv5tel-linux" 26 + "armv6l-linux" 27 + "armv7l-linux" 28 + "aarch64-linux" 29 + ]; 30 maintainers = with lib.maintainers; [raskin]; 31 license = lib.licenses.mit; 32 description = "Reparent a running program to a new terminal";