summary refs log tree commit diff
path: root/pkgs/development/tools/ofono-phonesim/default.nix
blob: cc33b675954a5efcc9073520e73c0cf2880083e9 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ stdenv
, mkDerivation
, fetchFromGitHub
, autoreconfHook
, pkgconfig
, qtbase
, qtscript
}:

mkDerivation {
  pname = "ofono-phonesim";
  version = "unstable-2014-04-22";

  src = fetchFromGitHub {
    owner = "jpakkane";
    repo = "ofono-phonesim";
    rev = "baa41f04e6a86c5289d7185cad8a6f08a5c3ed0a";
    sha256 = "0ywalvvf3dfbn81ml21gji1n2hywh2nmakynakjzyyskcqjn2wiz";
  };

  patches = [
    ./qt5-compat.patch
  ];

  nativeBuildInputs = [
    autoreconfHook
    pkgconfig
  ];

  buildInputs = [
    qtbase
    qtscript
  ];

  makeFlags = [
    "MOC=${qtbase.dev}/bin/moc"
    "UIC=${qtbase.dev}/bin/uic"
  ];

  meta = with stdenv.lib; {
    description = "Phone Simulator for modem testing";
    homepage = https://github.com/jpakkane/ofono-phonesim;
    license = licenses.gpl2;
    maintainers = with maintainers; [ jtojnar ];
    platforms = platforms.linux;
  };
}