From 9e33e2365eeff59e9a25701dc2cf8dbcc38a9dc8 Mon Sep 17 00:00:00 2001 From: Thomas Strobel Date: Fri, 2 Oct 2015 12:09:30 +0200 Subject: [PATCH] miraclecast: init at 0.0-git-20151002 --- .../os-specific/linux/miraclecast/default.nix | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/os-specific/linux/miraclecast/default.nix diff --git a/pkgs/os-specific/linux/miraclecast/default.nix b/pkgs/os-specific/linux/miraclecast/default.nix new file mode 100644 index 000000000000..3d5a76144af5 --- /dev/null +++ b/pkgs/os-specific/linux/miraclecast/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, udev, systemd, glib, readline }: + +with stdenv.lib; +stdenv.mkDerivation rec { + name = "miraclecast-0.0-git-20151002"; + + src = fetchFromGitHub { + owner = "albfan"; + repo = "miraclecast"; + rev = "30b8c2d22391423f76ba582aaaa1e0936869103a"; + sha256 = "0i076n76kq64fayc7v06gr1853pk5r6ms86m57vd1xsjd0r9wyxd"; + }; + + # 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. + buildInputs = [ systemd autoreconfHook pkgconfig udev glib readline ]; + + meta = { + homepage = https://github.com/albfan/miraclecast; + description = "Connect external monitors via Wi-Fi"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ tstrobel ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 144547f6dac8..fa466cf84ced 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10006,6 +10006,10 @@ let mingetty = callPackage ../os-specific/linux/mingetty { }; + miraclecast = callPackage ../os-specific/linux/miraclecast { + systemd = systemd.override { enableKDbus = true; }; + }; + module_init_tools = callPackage ../os-specific/linux/module-init-tools { }; aggregateModules = modules: