From f4193da3888c5d6ed5efb45c4fd9706e9f3a548d Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 1 Sep 2015 03:27:48 +0200 Subject: [PATCH] flexc++: 2.02.00 -> 2.03.00 Good-bye Sourceforge, hello (fetchFrom)GitHub. Please stay nice. --- .../tools/parsing/flexc++/default.nix | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pkgs/development/tools/parsing/flexc++/default.nix b/pkgs/development/tools/parsing/flexc++/default.nix index 0b9c4fcbc64..3cfd86f477e 100644 --- a/pkgs/development/tools/parsing/flexc++/default.nix +++ b/pkgs/development/tools/parsing/flexc++/default.nix @@ -1,29 +1,32 @@ -{ stdenv, fetchurl, bobcat, icmake, yodl }: +{ stdenv, fetchFromGitHub, bobcat, icmake, yodl }: -let version = "2.02.00"; in +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 ]; }; + sourceRoot = "flexcpp-${version}-src/flexc++"; + buildInputs = [ bobcat ]; nativeBuildInputs = [ icmake yodl ];