about summary refs log tree commit diff
path: root/overrides
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-06-30 07:30:38 +0200
committeraszlig <aszlig@redmoonstudios.org>2014-06-30 07:30:38 +0200
commit93a955098a71223d305f636ed413481ee96073d9 (patch)
treec7249639d26632f8f5c11e610296f014047c264e /overrides
parentd0203c506781049b196c922666cb70c41d8e7919 (diff)
overrides: Make expression for gajim more robust.
It might be that patches/postPatch will be no longer needed for the
upcoming Gajim version, so let's not assume these attributes are there.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'overrides')
-rw-r--r--overrides/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/overrides/default.nix b/overrides/default.nix
index ebc187cf..e2531051 100644
--- a/overrides/default.nix
+++ b/overrides/default.nix
@@ -63,8 +63,8 @@ let
   # derivation overrides
   drvOverrides = mapOverride overrideDerivation argOverrides {
     gajim = o: {
-      patches = o.patches ++ singleton gajimPatch;
-      postPatch = o.postPatch + ''
+      patches = (o.patches or []) ++ singleton gajimPatch;
+      postPatch = (o.postPatch or "") + ''
         sed -i -e '/^export/i export GTK2_RC_FILES="${gajimGtkTheme}"' \
           scripts/gajim.in
       '';