summary refs log tree commit diff
path: root/pkgs/os-specific/linux/miraclecast
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-12-26 12:18:33 +0800
committerPeter Hoeg <peter@hoeg.com>2017-12-26 12:18:40 +0800
commit644e39abf19e3b79bfca91694f9eca54c22642f7 (patch)
tree5843c94edd6bc8b3f3bfa916e9a1904f8d262414 /pkgs/os-specific/linux/miraclecast
parentcf52f8e7e5d318a0a75200c7ad00cd733a91c83f (diff)
downloadnixpkgs-644e39abf19e3b79bfca91694f9eca54c22642f7.tar
nixpkgs-644e39abf19e3b79bfca91694f9eca54c22642f7.tar.gz
nixpkgs-644e39abf19e3b79bfca91694f9eca54c22642f7.tar.bz2
nixpkgs-644e39abf19e3b79bfca91694f9eca54c22642f7.tar.lz
nixpkgs-644e39abf19e3b79bfca91694f9eca54c22642f7.tar.xz
nixpkgs-644e39abf19e3b79bfca91694f9eca54c22642f7.tar.zst
nixpkgs-644e39abf19e3b79bfca91694f9eca54c22642f7.zip
miraclecast: 20151002 -> 20170427
Diffstat (limited to 'pkgs/os-specific/linux/miraclecast')
-rw-r--r--pkgs/os-specific/linux/miraclecast/default.nix38
1 files changed, 22 insertions, 16 deletions
diff --git a/pkgs/os-specific/linux/miraclecast/default.nix b/pkgs/os-specific/linux/miraclecast/default.nix
index 0d79027d8b7..c7990466ca7 100644
--- a/pkgs/os-specific/linux/miraclecast/default.nix
+++ b/pkgs/os-specific/linux/miraclecast/default.nix
@@ -1,27 +1,33 @@
-{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, systemd, glib, readline }:
+{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig
+, glib, readline, pcre, systemd, udev }:
 
-with stdenv.lib;
 stdenv.mkDerivation rec {
-  name = "miraclecast-0.0-git-20151002";
+  name = "miraclecast-${version}";
+  version = "1.0-20170427";
 
   src = fetchFromGitHub {
-    owner = "albfan";
-    repo = "miraclecast";
-    rev = "30b8c2d22391423f76ba582aaaa1e0936869103a";
-    sha256 = "0i076n76kq64fayc7v06gr1853pk5r6ms86m57vd1xsjd0r9wyxd";
+    owner  = "albfan";
+    repo   = "miraclecast";
+    rev    = "a395c3c7afc39a958ae8ab805dea0f5d22118f0c";
+    sha256 = "03kbjajv2x0i2g68c5aij0icf9waxnqkc9pp32z60nc8zxy9jk1y";
   };
 
-  # INFO: It is important to list 'systemd' first as for now miraclecast
-  # links against a customized systemd. Otherwise, a systemd package from
-  # a propagatedBuildInput could take precedence.
-  nativeBuildInputs = [ autoreconfHook pkgconfig ];
-  buildInputs = [ systemd udev glib readline ];
+  nativeBuildInputs = [ meson ninja pkgconfig ];
 
-  meta = {
-    homepage = https://github.com/albfan/miraclecast;
+  buildInputs = [ glib pcre readline systemd udev ];
+
+  enableParallelBuilding = true;
+
+  mesonFlags = [
+    "-Drely-udev=true"
+    "-Dbuild-tests=true"
+  ];
+
+  meta = with stdenv.lib; {
     description = "Connect external monitors via Wi-Fi";
-    license = licenses.lgpl21Plus;
+    homepage    = https://github.com/albfan/miraclecast;
+    license     = licenses.lgpl21Plus;
     maintainers = with maintainers; [ tstrobel ];
-    platforms = platforms.linux;
+    platforms   = platforms.linux;
   };
 }