summary refs log tree commit diff
path: root/pkgs/applications/video/gnash/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/video/gnash/default.nix')
-rw-r--r--pkgs/applications/video/gnash/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/applications/video/gnash/default.nix b/pkgs/applications/video/gnash/default.nix
index 0aa847f4382..4beb8059b72 100644
--- a/pkgs/applications/video/gnash/default.nix
+++ b/pkgs/applications/video/gnash/default.nix
@@ -5,11 +5,12 @@
 , glib, gtk, x11
 , lib}:
 
+let version = "0.8.3"; in
 stdenv.mkDerivation rec {
-  name = "gnash-0.8.2";
+  name = "gnash-${version}";
 
   src = fetchurl {
-    url = http://getgnash.org/packages/releases/gnash-0.8.3.tar.bz2;
+    url = "mirror://gnu/gnash/${version}/${name}.tar.bz2";
     sha256 = "16n32774sd5q4nkd95v2m8r2yfa9fk30jnq1iicarq3j8i2xh7xg";
   };
 
@@ -23,6 +24,12 @@ stdenv.mkDerivation rec {
     do
       echo -n "$lib " >> macros/libslist
     done
+
+    # Make sure to honor $TMPDIR, for chroot builds.
+    for file in configure gui/Makefile.in Makefile.in
+    do
+      sed -i "$file" -es'|/tmp/|$TMPDIR/|g'
+    done
   '';