git.iko.soy/typeable/nixpkgs
on master help sign in
haskellPackages.dbus: fix for new DBUS_SESSION_BUS_ADDRESS format
commitdd8f60fbd94c09ae6bbc4553079cd199a1635dfc authorNikolay Amiantov <ab@fmap.me> dateSat 5 Nov 2016, 14:43 (10 years ago) parent45bff42
2 files changed+38−1
pkgs/development/haskell-modules/configuration-common.nix+4−1 pkgs/development/haskell-modules/patches/hdbus-semicolons.patch+34
pkgs/development/haskell-modules/configuration-common.nix+4−1
@@ -291,7 +291,6 @@ self: super: {
291291 bitcoin-api-extra = dontCheck super.bitcoin-api-extra;
292292 bitx-bitcoin = dontCheck super.bitx-bitcoin; # http://hydra.cryp.to/build/926187/log/raw
293293 concurrent-dns-cache = dontCheck super.concurrent-dns-cache;
294− dbus = dontCheck super.dbus; # http://hydra.cryp.to/build/498404/log/raw
295294 digitalocean-kzs = dontCheck super.digitalocean-kzs; # https://github.com/KazumaSATO/digitalocean-kzs/issues/1
296295 github-types = dontCheck super.github-types; # http://hydra.cryp.to/build/1114046/nixlog/1/raw
297296 hadoop-rpc = dontCheck super.hadoop-rpc; # http://hydra.cryp.to/build/527461/nixlog/2/raw
@@ -1067,4 +1066,8 @@ self: super: {
10671066 # horribly outdated (X11 interface changed a lot)
10681067 sindre = markBroken super.sindre;
10691068
1069+ # https://github.com/jmillikin/haskell-dbus/pull/7
1070+ # http://hydra.cryp.to/build/498404/log/raw
1071+ dbus = dontCheck (appendPatch super.dbus ./patches/hdbus-semicolons.patch);
1072+
10701073}
pkgs/development/haskell-modules/patches/hdbus-semicolons.patchnew file+34
@@ -0,0 +1,34 @@
1+From 8fd84b4d6ba257ac93a61bce3378777840e8bf80 Mon Sep 17 00:00:00 2001
2+From: Nikolay Amiantov <ab@fmap.me>
3+Date: Sat, 5 Nov 2016 14:27:04 +0300
4+Subject: [PATCH] getSessionAddress: take first bus address from
5+ semicolon-separated variable
6+
7+---
8+ lib/DBus/Address.hs | 3 ++-
9+ 1 file changed, 2 insertions(+), 1 deletion(-)
10+
11+diff --git a/lib/DBus/Address.hs b/lib/DBus/Address.hs
12+index 72ac99d..596b18c 100644
13+--- a/lib/DBus/Address.hs
14++++ b/lib/DBus/Address.hs
15+@@ -18,6 +18,7 @@ module DBus.Address where
16+ import qualified Control.Exception
17+ import Data.Char (digitToInt, ord, chr)
18+ import Data.List (intercalate)
19++import Data.Maybe (listToMaybe)
20+ import qualified Data.Map
21+ import Data.Map (Map)
22+ import qualified System.Environment
23+@@ -152,7 +153,7 @@ getSystemAddress = do
24+ getSessionAddress :: IO (Maybe Address)
25+ getSessionAddress = do
26+ env <- getenv "DBUS_SESSION_BUS_ADDRESS"
27+- return (env >>= parseAddress)
28++ return $ maybe Nothing listToMaybe (env >>= parseAddresses)
29+
30+ -- | Returns the address in the environment variable
31+ -- @DBUS_STARTER_ADDRESS@, which must be set.
32+--
33+2.10.1
34+