about summary refs log tree commit diff
path: root/pkgs/applications/networking/remote/putty/default.nix
blob: e35f8c739c548d87bec7f9140f7bbc059793c75a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchsvn, ncurses, gtk, pkgconfig, autoconf, automake, perl, halibut
, libtool }:
 
let
  rev = 9690;
in
stdenv.mkDerivation {
  name = "putty-${toString rev}";
  # builder = ./builder.sh;

  preConfigure = ''
    perl mkfiles.pl
    ( cd doc ; make );
    sed '/AM_PATH_GTK(/d' -i unix/configure.ac
    sed '/AC_OUTPUT/iAM_PROG_CC_C_O' -i unix/configure.ac
    sed '/AC_OUTPUT/iAM_PROG_AR' -i unix/configure.ac
    ./mkauto.sh
    cd unix
  '';
  
  # The hash is going to change on new snapshot.
  # I don't know of any better URL
  src = fetchsvn {
    url = svn://svn.tartarus.org/sgt/putty;
    rev = rev;
    sha256 = "e1fb49766e0724a12776ec3d6cd0bd420e03ebdc3383a01a12dbfd30983f81ef";
  };

  buildInputs = [ gtk ncurses pkgconfig autoconf automake perl halibut libtool ];
}