Revert "Revert "Merge pull request #9543 from NixOS/staging.post-15.06""
This reverts commit 741bf840da.
This reverts the fallout from reverting the major changes.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -8,6 +8,8 @@ stdenv.mkDerivation {
|
||||
sha256 = "1c7ar39wc8jpqh67sw03lwnyp0m9l6dad469ybqrgcywdiwxspwj";
|
||||
};
|
||||
|
||||
patches = [ ./linux4compat.patch ];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's|/sbin/depmod|#/sbin/depmod|' Makefile
|
||||
'';
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
From 2bf6f08b2492cc04a2c39fdcb22a2d0c18963d1c Mon Sep 17 00:00:00 2001
|
||||
From: sonic414 <sonic414@gmail.com>
|
||||
Date: Tue, 28 Apr 2015 19:30:15 +0530
|
||||
Subject: [PATCH] strnicmp to strncasecmp in Linux 4.0.0
|
||||
|
||||
---
|
||||
nvidiabl-module.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/nvidiabl-module.c b/nvidiabl-module.c
|
||||
index b789ea4..b306579 100644
|
||||
--- a/nvidiabl-module.c
|
||||
+++ b/nvidiabl-module.c
|
||||
@@ -214,7 +214,7 @@ static int __init nvidiabl_init(void)
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
|
||||
|
||||
for (iii = 0 ; iii < sizeof(backlight_type_ids) ; iii++) {
|
||||
- if (strnicmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
|
||||
+ if (strncasecmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
|
||||
props.type = backlight_type_ids[iii].type;
|
||||
printk(KERN_INFO "nvidiabl: backlight type is %s\n", backlight_type_ids[iii].id);
|
||||
}
|
||||
@@ -8,8 +8,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "03l5iifwlg1wyb4yh98i0b7pd4j55a1c9y74q1frs47a5dnrilr6";
|
||||
};
|
||||
|
||||
# gcc5-fix should be in 6.04+, so remove if it fails to apply.
|
||||
patches = [ ./perl-deps.patch ./gcc5-fix.patch ];
|
||||
patches = [ ./perl-deps.patch ];
|
||||
|
||||
buildInputs = [ nasm perl libuuid ];
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
diff --git a/com32/include/menu.h b/com32/include/menu.h
|
||||
index bc0182f..b0251e4 100644
|
||||
--- a/com32/include/menu.h
|
||||
+++ b/com32/include/menu.h
|
||||
@@ -195,7 +195,7 @@ void local_cursor_enable(bool);
|
||||
|
||||
static inline int my_isspace(char c)
|
||||
{
|
||||
- return (unsigned char)c <= ' ';
|
||||
+ return (unsigned char)c <= ' ' || (unsigned char)c == '\x7f';
|
||||
}
|
||||
|
||||
int my_isxdigit(char c);
|
||||
diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c
|
||||
index b7814be..a433fad 100644
|
||||
--- a/com32/menu/readconfig.c
|
||||
+++ b/com32/menu/readconfig.c
|
||||
@@ -299,7 +299,7 @@ static char *copy_sysappend_string(char *dst, const char *src)
|
||||
char c;
|
||||
|
||||
while ((c = *src++)) {
|
||||
- if (c <= ' ' && c == '\x7f') {
|
||||
+ if (my_isspace(c)) {
|
||||
if (!was_space)
|
||||
*dst++ = '_';
|
||||
was_space = true;
|
||||
@@ -4,6 +4,7 @@
|
||||
, kexectools, libmicrohttpd, linuxHeaders, libseccomp
|
||||
, autoreconfHook, gettext, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_45
|
||||
, pythonPackages ? null, pythonSupport ? false
|
||||
, enableKDbus ? false
|
||||
}:
|
||||
|
||||
assert stdenv.isLinux;
|
||||
@@ -65,7 +66,7 @@ stdenv.mkDerivation rec {
|
||||
"--with-sysvinit-path="
|
||||
"--with-sysvrcnd-path="
|
||||
"--with-rc-local-script-path-stop=/etc/halt.local"
|
||||
];
|
||||
] ++ stdenv.lib.optional enableKDbus "--enable-kdbus";
|
||||
|
||||
preConfigure =
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user