2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config
|
2024-04-21 15:54:59 +00:00
|
|
|
, glib, readline, pcre, systemd, udev, iproute2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "miraclecast";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.0-20231112";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "albfan";
|
|
|
|
repo = "miraclecast";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "af6ab257eae83bb0270a776a8fe00c0148bc53c4";
|
|
|
|
hash = "sha256-3ZIAvA3w/ZhoJtVmUD444nch0PGD58PdBRke7zd9IuQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
buildInputs = [ glib pcre readline systemd udev iproute2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Drely-udev=true"
|
|
|
|
"-Dbuild-tests=true"
|
2024-04-21 15:54:59 +00:00
|
|
|
"-Dip-binary=${iproute2}/bin/ip"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Connect external monitors via Wi-Fi";
|
|
|
|
homepage = "https://github.com/albfan/miraclecast";
|
|
|
|
license = licenses.lgpl21Plus;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|