summaryrefslogtreecommitdiffstats
path: root/pkgs/waypipe/default.nix
blob: 07268b50528c09f443406c3489805af159acb5d2 (plain)
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
{ stdenv, fetchgit
, meson, ninja, pkgconfig, python3
, wayland, wayland-protocols
, libffi, mesa_noglu
}:

let
  metadata = import ./metadata.nix;
in
stdenv.mkDerivation rec {
  name = "waypipe-${version}";
  version = metadata.rev;

  src = fetchgit {
    url = "https://gitlab.freedesktop.org/mstoeckl/waypipe";
    rev = version;
    sha256 = metadata.sha256;
  };

  nativeBuildInputs = [ pkgconfig meson ninja python3 ];
  buildInputs = [
    wayland wayland-protocols
    libffi mesa_noglu
  ];
  mesonFlags = [ "-Dauto_features=enabled" ];
  NIX_CFLAGS_COMPILE = "-Wno-error=unused-result";

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "Network transparency with Wayland";
    homepage    = "https://mstoeckl.com/notes/gsoc/blog.html";
    # license = ?
    platforms   = platforms.linux;
    maintainers = with maintainers; [ colemickens ];
  };
}