1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Fixing openssh hpn support for 6.1p1

I had to write a weird download derivation to overcome their download procedure.
This commit is contained in:
Lluís Batlle i Rossell 2013-02-19 10:50:21 +01:00
parent e7f1aeb2c5
commit cde20d6951

View file

@ -1,13 +1,30 @@
{ stdenv, fetchurl, zlib, openssl, perl, libedit, pkgconfig, pam
{ stdenv, fetchurl, zlib, openssl, perl, libedit, pkgconfig, pam, curl
, etcDir ? null
, hpnSupport ? false
}:
let
hpnSrc = fetchurl {
url = http://www.psc.edu/networking/projects/hpn-ssh/openssh-5.9p1-hpn13v12.diff.gz;
sha256 = "0h1h45vic4zks5bc5mvkc50rlgy2c219vn3rmpmalgm5hws9qjbl";
# Ugly download
hpnSrc = stdenv.mkDerivation {
name = "openssh-6.1p1-hpn13v14.diff.gz";
buildInputs = [ curl ];
url = "http://www.psc.edu/index.php/component/remository/HPN-SSH/OpenSSH-6.1-Patches/HPN-SSH-Kitchen-Sink-Patch-for-OpenSSH-6.1/";
phases = [ "installPhase" ];
installPhase = ''
URL2=$(curl -c cookies.jar "$url" | grep "window.location" |
sed 's,.*\(http:/.*\)'"'"'},\1,')
URL3=$(curl -b cookies.jar -c cookies.jar "$URL2" | grep "window.location" |
sed 's,.*\(http:/.*\)'"'"'},\1,')
curl -b cookies.jar "$URL3" > $out
'';
outputHashAlgo = "sha256";
outputHash = "14das6lim6fxxnx887ssw76ywsbvx3s4q3n43afgh5rgvs4xmnnq";
};
in