about summary refs log tree commit diff
path: root/pkgs/applications/graphics/giv
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2016-03-29 17:39:43 +0200
committerLluís Batlle i Rossell <viric@viric.name>2016-03-29 17:40:49 +0200
commitf38d620d596a45d6a7a4e20a1c7f4985cf4d3ffb (patch)
tree358c466958331026553697b8b6131060e69a73b4 /pkgs/applications/graphics/giv
parenta5322efd958cf9fd063f67f4580cffbf70fdb750 (diff)
downloadnixlib-f38d620d596a45d6a7a4e20a1c7f4985cf4d3ffb.tar
nixlib-f38d620d596a45d6a7a4e20a1c7f4985cf4d3ffb.tar.gz
nixlib-f38d620d596a45d6a7a4e20a1c7f4985cf4d3ffb.tar.bz2
nixlib-f38d620d596a45d6a7a4e20a1c7f4985cf4d3ffb.tar.lz
nixlib-f38d620d596a45d6a7a4e20a1c7f4985cf4d3ffb.tar.xz
nixlib-f38d620d596a45d6a7a4e20a1c7f4985cf4d3ffb.tar.zst
nixlib-f38d620d596a45d6a7a4e20a1c7f4985cf4d3ffb.zip
Updating giv to latest from git (>0.9.25).
We were using a version years old.

I picked the git version instead of the last release because the git version
has fixes not released for almost one year.
Diffstat (limited to 'pkgs/applications/graphics/giv')
-rw-r--r--pkgs/applications/graphics/giv/build.patch27
-rw-r--r--pkgs/applications/graphics/giv/default.nix12
2 files changed, 7 insertions, 32 deletions
diff --git a/pkgs/applications/graphics/giv/build.patch b/pkgs/applications/graphics/giv/build.patch
index 639d881f4159..ec343c902386 100644
--- a/pkgs/applications/graphics/giv/build.patch
+++ b/pkgs/applications/graphics/giv/build.patch
@@ -15,30 +15,3 @@ index 16eccd9..603e931 100644
  
  env['SBOX'] = False
  
-diff --git a/giv/SConstruct b/giv/SConstruct
-index 047839a..2c267aa 100644
---- a/giv/SConstruct
-+++ b/giv/SConstruct
-@@ -3,8 +3,9 @@
- 
- import sys
- import re
-+import os
- 
--env = Environment()
-+env = Environment(ENV = os.environ)
- 
- src = ["giv.c",
-        "giv-backstore.c",
-diff --git a/src/plugins/dcmtk/SConstruct.standalone b/src/plugins/dcmtk/SConstruct.standalone
-index ffce001..74246f8 100644
---- a/src/plugins/dcmtk/SConstruct.standalone
-+++ b/src/plugins/dcmtk/SConstruct.standalone
-@@ -1,4 +1,6 @@
--env = Environment()
-+import os
-+
-+env = Environment(ENV = os.environ)
- 
- variant = "Debug"
- 
diff --git a/pkgs/applications/graphics/giv/default.nix b/pkgs/applications/graphics/giv/default.nix
index 2e9d55a3f3f2..f9ea3173b430 100644
--- a/pkgs/applications/graphics/giv/default.nix
+++ b/pkgs/applications/graphics/giv/default.nix
@@ -1,12 +1,14 @@
-{ stdenv, fetchurl, gdk_pixbuf, scons, pkgconfig, gtk, glib,
+{ stdenv, fetchFromGitHub, gdk_pixbuf, scons, pkgconfig, gtk, glib,
   pcre, cfitsio, perl, gob2, vala, libtiff, json_glib }:
 
 stdenv.mkDerivation rec {
-  name = "giv-0.9.22";
+  name = "giv-20150811-git";
 
-  src = fetchurl {
-    url = "mirror://sourceforge/giv/${name}.tar.gz";
-    sha256 = "1q0806b66ajppxbv1i71wx5d3ydc1h3hsz23m6g4g80dhiai7dly";
+  src = fetchFromGitHub {
+    owner = "dov";
+    repo = "giv";
+    rev = "64648bfbbf10ec4a9adfbc939c96c7d1dbdce57a";
+    sha256 = "1sz2n7jbmg3g97bs613xxjpzqbsl5rvpg6v7g3x3ycyd35r8vsfp";
   };
 
   # It built code to be put in a shared object without -fPIC