Merge branch 'x-updates' into staging
...in preparation for a merge to master
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "alsa-lib-1.0.27.2";
|
||||
name = "alsa-lib-1.0.28";
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
"ftp://ftp.alsa-project.org/pub/lib/${name}.tar.bz2"
|
||||
"http://alsa.cybermirror.org/lib/${name}.tar.bz2"
|
||||
];
|
||||
sha256 = "068d8c92122hwca5jzhrjp4a131995adlb1d79zgrm7gwy9x63k9";
|
||||
sha256 = "0vaafg5q1q1mqcsgin5v7xlmngl3cnbmg5a9xxw0xcz1vn2ln1rw";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -18,11 +18,6 @@ stdenv.mkDerivation rec {
|
||||
See http://thread.gmane.org/gmane.linux.distributions.nixos/3435
|
||||
*/
|
||||
./alsa-plugin-dirs.patch
|
||||
|
||||
/* patch provided by larsc on irc.
|
||||
it may be a compiler problem on mips; without this, alsa does not build
|
||||
on mips, because lacks some symbols atomic_add/atomic_sub */
|
||||
./mips-atomic.patch
|
||||
];
|
||||
|
||||
# Fix pcm.h file in order to prevent some compilation bugs
|
||||
@@ -35,15 +30,13 @@ stdenv.mkDerivation rec {
|
||||
sed -i -e 's/u_int\([0-9]*\)_t/uint\1_t/g' include/pcm.h
|
||||
'';
|
||||
|
||||
configureFlags = "--disable-xmlto";
|
||||
|
||||
crossAttrs = {
|
||||
patchPhase = ''
|
||||
sed -i s/extern/static/g include/iatomic.h
|
||||
'';
|
||||
};
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.alsa-project.org/;
|
||||
description = "ALSA, the Advanced Linux Sound Architecture libraries";
|
||||
|
||||
@@ -52,6 +45,7 @@ stdenv.mkDerivation rec {
|
||||
MIDI functionality to the Linux-based operating system.
|
||||
'';
|
||||
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
diff --git a/include/iatomic.h b/include/iatomic.h
|
||||
index e92dbfd..364bc5c 100644
|
||||
--- a/include/iatomic.h
|
||||
+++ b/include/iatomic.h
|
||||
@@ -720,7 +720,7 @@ typedef struct { volatile int counter; } atomic_t;
|
||||
* Atomically adds @i to @v. Note that the guaranteed useful range
|
||||
* of an atomic_t is only 24 bits.
|
||||
*/
|
||||
-extern __inline__ void atomic_add(int i, atomic_t * v)
|
||||
+static __inline__ void atomic_add(int i, atomic_t * v)
|
||||
{
|
||||
unsigned long temp;
|
||||
|
||||
@@ -744,7 +744,7 @@ extern __inline__ void atomic_add(int i, atomic_t * v)
|
||||
* Atomically subtracts @i from @v. Note that the guaranteed
|
||||
* useful range of an atomic_t is only 24 bits.
|
||||
*/
|
||||
-extern __inline__ void atomic_sub(int i, atomic_t * v)
|
||||
+static __inline__ void atomic_sub(int i, atomic_t * v)
|
||||
{
|
||||
unsigned long temp;
|
||||
|
||||
@@ -763,7 +763,7 @@ extern __inline__ void atomic_sub(int i, atomic_t * v)
|
||||
/*
|
||||
* Same as above, but return the result value
|
||||
*/
|
||||
-extern __inline__ int atomic_add_return(int i, atomic_t * v)
|
||||
+static __inline__ int atomic_add_return(int i, atomic_t * v)
|
||||
{
|
||||
unsigned long temp, result;
|
||||
|
||||
@@ -784,7 +784,7 @@ extern __inline__ int atomic_add_return(int i, atomic_t * v)
|
||||
return result;
|
||||
}
|
||||
|
||||
-extern __inline__ int atomic_sub_return(int i, atomic_t * v)
|
||||
+static __inline__ int atomic_sub_return(int i, atomic_t * v)
|
||||
{
|
||||
unsigned long temp, result;
|
||||
@@ -1,12 +1,14 @@
|
||||
{stdenv, fetchurl, alsaLib, gettext, ncurses, libsamplerate}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "alsa-oss-1.0.25";
|
||||
name = "alsa-oss-1.0.28";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.alsa-project.org/pub/oss-lib/${name}.tar.bz2";
|
||||
# url = "http://alsa.cybermirror.org/oss-lib/${name}.tar.bz2";
|
||||
sha256 = "ed823b8e42599951d896c1709615d4cf7cb1cb3a7c55c75ccee82e24ccaf28e3";
|
||||
urls = [
|
||||
"ftp://ftp.alsa-project.org/pub/oss-lib/${name}.tar.bz2"
|
||||
"http://alsa.cybermirror.org/oss-lib/${name}.tar.bz2"
|
||||
];
|
||||
sha256 = "1mbabiywxjjlvdh257j3a0v4vvy69mwwnvc3xlq7pg50i2m2rris";
|
||||
};
|
||||
|
||||
buildInputs = [ alsaLib ncurses libsamplerate ];
|
||||
|
||||
@@ -11,16 +11,17 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "081is33afhykb4ysll8s6gh0d6nm1cglslj9ck0disbyl3qqlvs2";
|
||||
};
|
||||
|
||||
# ToDo: a52, etc.?
|
||||
buildInputs =
|
||||
[ pkgconfig alsaLib libogg ]
|
||||
++ stdenv.lib.optional (pulseaudio != null) pulseaudio
|
||||
++ stdenv.lib.optional (jackaudio != null) jackaudio;
|
||||
++ lib.optional (pulseaudio != null) pulseaudio
|
||||
++ lib.optional (jackaudio != null) jackaudio;
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "Various plugins for ALSA";
|
||||
homepage = http://alsa-project.org/;
|
||||
license = "GPL2.1";
|
||||
maintainers = [lib.maintainers.marcweber];
|
||||
platforms = lib.platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
maintainers = [maintainers.marcweber];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
{stdenv, fetchurl, alsaLib, gettext, ncurses, libsamplerate}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "alsa-utils-1.0.27.2";
|
||||
name = "alsa-utils-1.0.28";
|
||||
|
||||
src = fetchurl {
|
||||
# url = "ftp://ftp.alsa-project.org/pub/utils/${name}.tar.bz2";
|
||||
url = "http://alsa.cybermirror.org/utils/${name}.tar.bz2";
|
||||
sha256 = "1sjjngnq50jv5ilwsb4zys6smifni3bd6fn28gbnhfrg14wsrgq2";
|
||||
urls = [
|
||||
"ftp://ftp.alsa-project.org/pub/utils/${name}.tar.bz2"
|
||||
"http://alsa.cybermirror.org/utils/${name}.tar.bz2"
|
||||
];
|
||||
sha256 = "1k1ach1jv0bf71klj9sqaijnw9wjrjad0g5in6bpfnhjn24lrzzk";
|
||||
};
|
||||
|
||||
buildInputs = [ alsaLib ncurses libsamplerate ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, glib, dbus, dbus_glib, dbus_tools, polkit
|
||||
{ stdenv, fetchurl, fetchpatch, pkgconfig, glib, dbus, dbus_glib, dbus_tools, polkit
|
||||
, intltool, libxslt, docbook_xsl, udev, libusb1, pmutils
|
||||
, useSystemd ? true, systemd, gobjectIntrospection
|
||||
}:
|
||||
@@ -13,6 +13,20 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "06wqhab2mn0j4biiwh7mn4kxbxnfnzjkxvhpgvnlpaz9m2q54cj3";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch rec {
|
||||
url = "http://anonscm.debian.org/gitweb/?p=pkg-utopia/upower.git;"
|
||||
+ "a=blob_plain;f=debian/patches/${name};hb=b424b2763fbbba95df8c6ab3feeb57d072a9ddf7";
|
||||
sha256 = "0iq991abrn745icyz6x0wyixrjli01vbmbd9lnwwgyil58h3z8sp";
|
||||
name = "no_deprecation_define.patch";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "http://cgit.freedesktop.org/upower/patch/?id=22da1a0bc5943b683189418d8b0f766e91b2bdbe";
|
||||
sha256 = "0yfgg6pw4bwskannvdwjxr75lgdrjpxhsskwlzm0frp8v5jy4k4z";
|
||||
name = "clamp-battery-percentages.patch";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
[ dbus_glib polkit intltool libxslt docbook_xsl udev libusb1 gobjectIntrospection ]
|
||||
++ stdenv.lib.optional useSystemd systemd;
|
||||
|
||||
Reference in New Issue
Block a user