summary refs log tree commit diff
path: root/pkgs/os-specific/linux/miraclecast/default.nix
blob: b5efaa40afe9ef823ed153ca0bf9fc0c9f31b1b8 (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
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config
, glib, readline, pcre, systemd, udev }:

stdenv.mkDerivation {
  pname = "miraclecast";
  version = "1.0-20190403";

  src = fetchFromGitHub {
    owner  = "albfan";
    repo   = "miraclecast";
    rev    = "960a785e10523cc525885380dd03aa2c5ba11bc7";
    sha256 = "05afqi33rv7k6pbkkw4mynj6p97vkzhhh13y5nh0yxkyhcgf45pm";
  };

  nativeBuildInputs = [ meson ninja pkg-config ];

  buildInputs = [ glib pcre readline systemd udev ];

  mesonFlags = [
    "-Drely-udev=true"
    "-Dbuild-tests=true"
  ];

  meta = with lib; {
    description = "Connect external monitors via Wi-Fi";
    homepage    = "https://github.com/albfan/miraclecast";
    license     = licenses.lgpl21Plus;
    maintainers = with maintainers; [ tstrobel ];
    platforms   = platforms.linux;
  };
}