Merge: zmap: 4.2.0 -> 4.3.1 (#364578)
[NixPkgs.git] / pkgs / by-name / wv / wvdial / package.nix
blobc71addca1a9bd781f35249fc04261fc1bac70c33
2   stdenv,
3   fetchFromGitea,
4   fetchpatch,
5   wvstreams,
6   pkg-config,
7   lib,
8 }:
10 stdenv.mkDerivation {
11   pname = "wvdial";
12   version = "unstable-2016-06-15";
14   src = fetchFromGitea {
15     domain = "gitea.osmocom.org";
16     owner = "retronetworking";
17     repo = "wvdial";
18     rev = "42d084173cc939586c1963b8835cb00ec56b2823";
19     hash = "sha256-q7pFvpJvv+ZvbN4xxolI9ZRULr+N5sqO9BOXUqSG5v4=";
20   };
22   patches = [
23     (fetchpatch {
24       url = "https://git.openembedded.org/meta-openembedded/plain/meta-oe/recipes-connectivity/wvdial/wvdial/typo_pon.wvdial.1.patch?h=73a68490efe05cdbec540ec6f17782816632a24d";
25       hash = "sha256-fsneoB5GeKH/nxwW0z8Mk6892PtnZ3J77wP4BGo3Tj8=";
26     })
27   ];
29   buildInputs = [ wvstreams ];
30   nativeBuildInputs = [ pkg-config ];
32   makeFlags = [
33     "prefix=${placeholder "out"}"
34     "PPPDIR=${placeholder "out"}/etc/ppp/peers"
35   ];
37   meta = {
38     description = "A dialer that automatically recognises the modem";
39     homepage = "https://gitea.osmocom.org/retronetworking/wvdial";
40     license = lib.licenses.lgpl2;
41     maintainers = with lib.maintainers; [ flokli ];
42     platforms = lib.platforms.linux;
43   };