about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/wvdial/default.nix
blob: eb9d09d2a119662a7319bf7c588f111bfdfc3c19 (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
{ stdenv, fetchurl, wvstreams, pkgconfig }:

stdenv.mkDerivation rec {
  name = "wvdial-1.61";

  src = fetchurl {
    url = "http://wvstreams.googlecode.com/files/${name}.tar.gz";
    sha256 = "0mzcrv8mc60gbdrixc9k8ammbslvjb9x2cs50yf1jq67aabapzsg";
  };

  buildInputs = [ wvstreams pkgconfig ];

  preConfigure = ''
    find -type f | xargs sed -i 's@/bin/bash@bash@g'
    export makeFlags="prefix=$out"
    # not sure about this line
    sed -i 's@/etc/ppp/peers@$out/etc/ppp/peers@' Makefile.in
  '';

  meta = {
    description = "A dialer that automatically recognises the modem";
    homepage = http://alumnit.ca/wiki/index.php?page=WvDial;
    license = "LGPL";
    maintainers = [ stdenv.lib.maintainers.marcweber ];
    platforms = stdenv.lib.platforms.linux;
  };
}