summary refs log tree commit diff
path: root/pkgs/development/tools/parsing/flexc++/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/parsing/flexc++/default.nix')
-rw-r--r--pkgs/development/tools/parsing/flexc++/default.nix25
1 files changed, 14 insertions, 11 deletions
diff --git a/pkgs/development/tools/parsing/flexc++/default.nix b/pkgs/development/tools/parsing/flexc++/default.nix
index 515fb9d251f2..3cfd86f477e6 100644
--- a/pkgs/development/tools/parsing/flexc++/default.nix
+++ b/pkgs/development/tools/parsing/flexc++/default.nix
@@ -1,30 +1,33 @@
-{ stdenv, fetchurl, bobcat, gcc49, icmake, yodl }:
+{ stdenv, fetchFromGitHub, bobcat, icmake, yodl }:
 
-let version = "2.02.00"; in
-stdenv.mkDerivation rec {
+let version = "2.03.00"; in
+stdenv.mkDerivation {
   name = "flexc++-${version}";
 
-  src = fetchurl {
-    sha256 = "0mz5d0axr4c8rrmn4iw7b5llmf6f3g9cnjzzz3kw02mfzwll79rz";
-    url = "mirror://sourceforge/flexcpp/${version}/flexc++_${version}.orig.tar.gz";
+  src = fetchFromGitHub {
+    sha256 = "1knb5h6l71n5zi9xzml5f6v7wspbk7vrcaiy2div8bnj7na3z717";
+    rev = version;
+    repo = "flexcpp";
+    owner = "fbb-git";
   };
 
   meta = with stdenv.lib; {
     inherit version;
-    description = "";
+    description = "C++ tool for generating lexical scanners";
     longDescription = ''
       Flexc++ was designed after `flex'. Flexc++ offers a cleaner class design
       and requires simpler specification files than offered by flex's C++
       option.
     '';
-    homepage = http://flexcpp.sourceforge.net/;
-    downloadPage = http://sourceforge.net/projects/flexcpp/files/;
+    homepage = https://fbb-git.github.io/flexcpp/;
     license = licenses.gpl3;
-    platforms = with platforms; linux;
+    platforms = platforms.linux;
     maintainers = with maintainers; [ nckx ];
   };
 
-  buildInputs = [ bobcat gcc49 ];
+  sourceRoot = "flexcpp-${version}-src/flexc++";
+
+  buildInputs = [ bobcat ];
   nativeBuildInputs = [ icmake yodl ];
 
   postPatch = ''