summary refs log tree commit diff
path: root/pkgs/servers/shellinabox/default.nix
diff options
context:
space:
mode:
authorSergey Mironov <grrwlf@gmail.com>2014-03-28 14:51:41 +0400
committerSergey Mironov <grrwlf@gmail.com>2014-03-28 14:58:10 +0400
commit0f2d7fa6f67399aa381cd65ac6dbb55f3c69e287 (patch)
tree4623750eff825d06f54cd46c691e012d0f3fadd1 /pkgs/servers/shellinabox/default.nix
parent691b499a66095dbdb397d987a5d8dceed14eff49 (diff)
downloadnixpkgs-0f2d7fa6f67399aa381cd65ac6dbb55f3c69e287.tar
nixpkgs-0f2d7fa6f67399aa381cd65ac6dbb55f3c69e287.tar.gz
nixpkgs-0f2d7fa6f67399aa381cd65ac6dbb55f3c69e287.tar.bz2
nixpkgs-0f2d7fa6f67399aa381cd65ac6dbb55f3c69e287.tar.lz
nixpkgs-0f2d7fa6f67399aa381cd65ac6dbb55f3c69e287.tar.xz
nixpkgs-0f2d7fa6f67399aa381cd65ac6dbb55f3c69e287.tar.zst
nixpkgs-0f2d7fa6f67399aa381cd65ac6dbb55f3c69e287.zip
shellinabox: unhardcode /bin/login, apply vt100 '-' fixup
Diffstat (limited to 'pkgs/servers/shellinabox/default.nix')
-rw-r--r--pkgs/servers/shellinabox/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/servers/shellinabox/default.nix b/pkgs/servers/shellinabox/default.nix
index 49d7810a3c2..acff3a84a31 100644
--- a/pkgs/servers/shellinabox/default.nix
+++ b/pkgs/servers/shellinabox/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, pam, openssl, openssh }:
+{ stdenv, fetchurl, pam, openssl, openssh, shadow }:
 
 stdenv.mkDerivation {
   name = "shellinabox-2.14";
@@ -7,12 +7,17 @@ stdenv.mkDerivation {
     url = "https://shellinabox.googlecode.com/files/shellinabox-2.14.tar.gz";
     sha1 = "9e01f58c68cb53211b83d0f02e676e0d50deb781";
   };
+
   buildInputs = [pam openssl openssh];
 
+  patches = [ ./shellinabox-minus.patch ];
+
   # Disable GSSAPIAuthentication errors as well as correct hardcoded path. Take /usr/games's place. 
   preConfigure = ''
     substituteInPlace ./shellinabox/service.c --replace "-oGSSAPIAuthentication=no" ""
     substituteInPlace ./shellinabox/launcher.c --replace "/usr/games" "${openssh}/bin"
+    substituteInPlace ./shellinabox/service.c --replace "/bin/login" "${shadow}/bin/login"
+    substituteInPlace ./shellinabox/launcher.c --replace "/bin/login" "${shadow}/bin/login"
     '';
   meta = {
     homepage = https://code.google.com/p/shellinabox;