nixpkgs/pkgs/applications/networking/remote/putty/default.nix

31 lines
792 B
Nix
Raw Normal View History

2012-10-30 09:49:43 +01:00
{ stdenv, fetchsvn, ncurses, gtk, pkgconfig, autoconf, automake, perl, halibut
, libtool }:
let
2012-10-30 09:49:43 +01:00
rev = 9690;
in
stdenv.mkDerivation {
name = "putty-${toString rev}";
# builder = ./builder.sh;
preConfigure = ''
perl mkfiles.pl
( cd doc ; make );
2012-10-30 09:49:43 +01:00
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;
2012-10-30 09:49:43 +01:00
sha256 = "e1fb49766e0724a12776ec3d6cd0bd420e03ebdc3383a01a12dbfd30983f81ef";
};
2012-10-30 09:49:43 +01:00
buildInputs = [ gtk ncurses pkgconfig autoconf automake perl halibut libtool ];
}