about summary refs log tree commit diff
path: root/pkgs/applications/networking/remote/putty
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/networking/remote/putty')
-rwxr-xr-xpkgs/applications/networking/remote/putty/builder.sh12
-rw-r--r--pkgs/applications/networking/remote/putty/default.nix22
l---------pkgs/applications/networking/remote/putty/result1
3 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/networking/remote/putty/builder.sh b/pkgs/applications/networking/remote/putty/builder.sh
new file mode 100755
index 000000000000..8b7da0a84e41
--- /dev/null
+++ b/pkgs/applications/networking/remote/putty/builder.sh
@@ -0,0 +1,12 @@
+source $stdenv/setup
+
+tar zxvf $src
+cd putty-*/unix/
+
+ensureDir $out/bin
+ensureDir $out/share/man/man1
+
+./configure --prefix=$out --with-gtk-prefix=$gtk
+make
+make install
+
diff --git a/pkgs/applications/networking/remote/putty/default.nix b/pkgs/applications/networking/remote/putty/default.nix
new file mode 100644
index 000000000000..402b5a520f45
--- /dev/null
+++ b/pkgs/applications/networking/remote/putty/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, fetchurl, ncurses
+, gtk
+}:
+ 
+stdenv.mkDerivation {
+  name = "putty-0.60";
+  builder = ./builder.sh;
+  
+  src = fetchurl {
+    url = http://the.earth.li/~sgtatham/putty/latest/putty-0.60.tar.gz;
+    sha256 = "b2bbaaf9324997e85cf15d44ed41e8e89539c8215dceac9d6d7272a37dbc2849";
+  };
+
+  buildInputs = [
+   gtk ncurses
+  ];
+
+  #propagatedBuildInputs = [
+  #];
+
+  inherit gtk;
+}
diff --git a/pkgs/applications/networking/remote/putty/result b/pkgs/applications/networking/remote/putty/result
new file mode 120000
index 000000000000..bd1d66a7191e
--- /dev/null
+++ b/pkgs/applications/networking/remote/putty/result
@@ -0,0 +1 @@
+/nix/store/3sydcphcaqf4wi28nkmdzbf1qnnfr0g3-putty-0.60
\ No newline at end of file