Oh, the patch!

2009/1/3 Lluís Batlle <[email protected]>:
> Patch for those two programs. The mldonkey compiles without GUI (which
> uses gtk) and without gd (plots for the web interface), but it should
> at least work. I haven't attempted to get it running; I still have to
> think how to put it on usage on nixos.
>
> Cromfs uses fuse.
>
> I also add the removal of the patchPhase on ts.
>
> Regards,
> Lluís.
>
Index: pkgs/applications/networking/p2p/mldonkey/default.nix
===================================================================
--- pkgs/applications/networking/p2p/mldonkey/default.nix       (revision 0)
+++ pkgs/applications/networking/p2p/mldonkey/default.nix       (revision 0)
@@ -0,0 +1,18 @@
+{stdenv, fetchurl, ocaml, zlib, ncurses}:
+
+stdenv.mkDerivation {
+  name = "mldonkey-2.9.6";
+  
+  src = fetchurl {
+    url = mirror://sourceforge/mldonkey/mldonkey-2.9.6.tar.bz2;
+    sha256 = 
"27cc8ae95aa7a2934b6cc9b077d10ca6a776496c051d8f35d60f1e73d38fd505";
+  };
+  
+  meta = {
+    description = "Client for many p2p networks, with multiple frontends";
+    homepage = http://mldonkey.sourceforge.net/;
+  };
+
+  buildInputs = [ ocaml zlib ncurses ];
+  configureFlags = "--disable-gd --disable-gui";
+}
Index: pkgs/tools/system/ts/default.nix
===================================================================
--- pkgs/tools/system/ts/default.nix    (revision 13696)
+++ pkgs/tools/system/ts/default.nix    (working copy)
@@ -6,8 +6,6 @@
 
   installPhase=''make install "PREFIX=$out"'';
 
-  patchPhase = ''sed -i 's@/usr/bin/inst...@install@g' Makefile; set -x'';
-
   src = fetchurl {
     url = http://vicerveza.homeunix.net/~viric/soft/ts/ts-0.6.2.tar.gz;
     sha256 = 
"6a99b48800658fb7424a76c5756a638a6b6abb2a8a8c129e196bc24a9aeeb5cc";
Index: pkgs/tools/archivers/cromfs/default.nix
===================================================================
--- pkgs/tools/archivers/cromfs/default.nix     (revision 0)
+++ pkgs/tools/archivers/cromfs/default.nix     (revision 0)
@@ -0,0 +1,28 @@
+{stdenv, fetchurl, pkgconfig, fuse, perl}:
+
+stdenv.mkDerivation {
+  name = "cromfs-1.5.6.2";
+  src = fetchurl {
+    url = http://bisqwit.iki.fi/src/arch/cromfs-1.5.6.2.tar.bz2;
+    sha256 = 
"bbe5db623d3c0d2b92fe877d8c8e22a8f8d84210739313bf691d42c05406464d";
+  };
+
+  patchPhase = ''sed -i 's@/bin/bash@/bin/s...@g' configure; set -x'';
+
+
+  meta = {
+    description = "FUSE Compressed ROM filesystem with lzma"  ;
+         homepage = http://bisqwit.iki.fi/source/cromfs.html;
+  };
+  
+  installPhase = ''
+    install -d $out/bin
+    install cromfs-driver $out/bin
+    install cromfs-driver-static $out/bin
+    install util/cvcromfs $out/bin
+    install util/mkcromfs $out/bin
+    install util/unmkcromfs $out/bin
+  '';
+
+  buildInputs = [pkgconfig fuse perl];
+}
Index: pkgs/top-level/all-packages.nix
===================================================================
--- pkgs/top-level/all-packages.nix     (revision 13696)
+++ pkgs/top-level/all-packages.nix     (working copy)
@@ -607,6 +607,10 @@
     inherit fetchurl stdenv;
   };
 
+  cromfs = import ../tools/archivers/cromfs {
+    inherit fetchurl stdenv pkgconfig fuse perl;
+  };
+
   cron = import ../tools/system/cron { # see also fcron
     inherit fetchurl;
     stdenv = stdenvNew;
@@ -984,6 +988,10 @@
     inherit fetchurl stdenv;
   };
 
+  mldonkey = import ../applications/networking/p2p/mldonkey {
+    inherit fetchurl stdenv ocaml zlib ncurses;
+  };
+
   mpage = import ../tools/text/mpage {
     inherit fetchurl stdenv;
   };
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to