summary refs log tree commit diff
path: root/pkgs/development/compilers/teyjus
diff options
context:
space:
mode:
authorRyan Mulligan <ryan@ryantm.com>2018-03-15 10:37:55 -0700
committerRyan Mulligan <ryan@ryantm.com>2018-03-15 10:37:55 -0700
commit4332e697df4c4cff32528869798b1a4b7c42229c (patch)
tree9267e26a58b81728d9cb85776f4ef1b3c1e2b0a2 /pkgs/development/compilers/teyjus
parent28e31f1c07fc24356ad1e4c444138b736b2a9991 (diff)
downloadnixpkgs-4332e697df4c4cff32528869798b1a4b7c42229c.tar
nixpkgs-4332e697df4c4cff32528869798b1a4b7c42229c.tar.gz
nixpkgs-4332e697df4c4cff32528869798b1a4b7c42229c.tar.bz2
nixpkgs-4332e697df4c4cff32528869798b1a4b7c42229c.tar.lz
nixpkgs-4332e697df4c4cff32528869798b1a4b7c42229c.tar.xz
nixpkgs-4332e697df4c4cff32528869798b1a4b7c42229c.tar.zst
nixpkgs-4332e697df4c4cff32528869798b1a4b7c42229c.zip
teyjus: actually update to 2.1
Note, the version in the source of this release is still 2.0-b2

https://github.com/teyjus/teyjus/issues/117 tracks asking upstream to
release versions with new version numbers.
Diffstat (limited to 'pkgs/development/compilers/teyjus')
-rw-r--r--pkgs/development/compilers/teyjus/default.nix10
-rw-r--r--pkgs/development/compilers/teyjus/fix-lex-to-flex.patch10
2 files changed, 13 insertions, 7 deletions
diff --git a/pkgs/development/compilers/teyjus/default.nix b/pkgs/development/compilers/teyjus/default.nix
index 53ab4ec0e85..04efe1a9134 100644
--- a/pkgs/development/compilers/teyjus/default.nix
+++ b/pkgs/development/compilers/teyjus/default.nix
@@ -1,11 +1,15 @@
 { stdenv, fetchurl, omake, ocaml, flex, bison }:
 
+let
+  version = "2.1";
+in
+
 stdenv.mkDerivation {
-  name = "teyjus-2.1";
+  name = "teyjus-${version}";
 
   src = fetchurl {
-    url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/teyjus/teyjus-source-2.0-b2.tar.gz";
-    sha256 = "0llhm5nrfyj7ihz2qq1q9ijrh6y4f8vl39mpfkkad5bh1m3gp2gm";
+    url = "https://github.com/teyjus/teyjus/archive/v${version}.tar.gz";
+    sha256 = "0393wpg8v1vvarqy2xh4fdmrwlrl6jaj960kql7cq79mb9p3m269";
   };
 
   patches = [ ./fix-lex-to-flex.patch ];
diff --git a/pkgs/development/compilers/teyjus/fix-lex-to-flex.patch b/pkgs/development/compilers/teyjus/fix-lex-to-flex.patch
index d2da1d3facc..fa82d80633a 100644
--- a/pkgs/development/compilers/teyjus/fix-lex-to-flex.patch
+++ b/pkgs/development/compilers/teyjus/fix-lex-to-flex.patch
@@ -1,9 +1,9 @@
 diff --git a/source/OMakefile b/source/OMakefile
-index 6b19d84..095b8b6 100644
+index e6bd37e..1bbc0a8 100644
 --- a/source/OMakefile
 +++ b/source/OMakefile
-@@ -164,12 +164,17 @@ LNK_MAIN = $(FNT)/linkerfront
- DEP_MAIN = $(FNT)/dependfront

+@@ -184,6 +184,12 @@ DEP_MAIN = $(FNT)/dependfront
+ PAR_MAIN = $(FNT)/parsefront

  

  ############################################################

 +# Nixpkgs specific changes

@@ -15,9 +15,11 @@ index 6b19d84..095b8b6 100644
  # Platform specific changes

  #

  

+@@ -194,7 +200,6 @@ if $(mem $(SYSNAME), Linux)
+ 

  if $(mem $(OSTYPE), Cygwin Win32)

      YACC = bison -by

 -    LEX = flex

-     CFLAGS += -mno-cygwin

+     CC = i686-pc-mingw32-gcc

      INC_C[] += $(INC)/byteswap $(INC)/search

      export