summary refs log tree commit diff
path: root/pkgs/os-specific/linux/reptyr
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2018-12-04 23:18:09 -0500
committerBen Wolsieffer <benwolsieffer@gmail.com>2018-12-04 23:46:29 -0500
commit3c22d57743d3eab7b18a38afe68b975f53d20dfd (patch)
treee1bfa0b0555d73da51b2b2da37fbf61ea895e535 /pkgs/os-specific/linux/reptyr
parent7c73f53d836af32624468e8de7730be1f033667c (diff)
downloadnixpkgs-3c22d57743d3eab7b18a38afe68b975f53d20dfd.tar
nixpkgs-3c22d57743d3eab7b18a38afe68b975f53d20dfd.tar.gz
nixpkgs-3c22d57743d3eab7b18a38afe68b975f53d20dfd.tar.bz2
nixpkgs-3c22d57743d3eab7b18a38afe68b975f53d20dfd.tar.lz
nixpkgs-3c22d57743d3eab7b18a38afe68b975f53d20dfd.tar.xz
nixpkgs-3c22d57743d3eab7b18a38afe68b975f53d20dfd.tar.zst
nixpkgs-3c22d57743d3eab7b18a38afe68b975f53d20dfd.zip
reptyr: 0.6.2 -> 0.7.0
Diffstat (limited to 'pkgs/os-specific/linux/reptyr')
-rw-r--r--pkgs/os-specific/linux/reptyr/default.nix23
1 files changed, 12 insertions, 11 deletions
diff --git a/pkgs/os-specific/linux/reptyr/default.nix b/pkgs/os-specific/linux/reptyr/default.nix
index 37f1362e14e..bd25dc65ec8 100644
--- a/pkgs/os-specific/linux/reptyr/default.nix
+++ b/pkgs/os-specific/linux/reptyr/default.nix
@@ -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";