lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocamlPackages.ulex: 1.1 -> 1.2

authored by

Vincent Laporte and committed by
Vincent Laporte
b1659c89 8974a9bf

+17 -7
+17 -7
pkgs/development/ocaml-modules/ulex/default.nix
··· 1 - { stdenv, fetchurl, ocaml, findlib, ocamlbuild, camlp4 }: 1 + { stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, camlp4 }: 2 2 3 3 let 4 4 pname = "ulex"; 5 + param = 6 + if stdenv.lib.versionAtLeast ocaml.version "4.02" then { 7 + version = "1.2"; 8 + sha256 = "08yf2x9a52l2y4savjqfjd2xy4pjd1rpla2ylrr9qrz1drpfw4ic"; 9 + } else { 10 + version = "1.1"; 11 + sha256 = "0cmscxcmcxhlshh4jd0lzw5ffzns12x3bj7h27smbc8waxkwffhl"; 12 + }; 5 13 in 6 14 7 15 stdenv.mkDerivation rec { 8 - name = "${pname}-${version}"; 9 - version = "1.1"; 16 + name = "ocaml${ocaml.version}-${pname}-${version}"; 17 + inherit (param) version; 10 18 11 - src = fetchurl { 12 - url = "http://www.cduce.org/download/${pname}-${version}.tar.gz"; 13 - sha256 = "0fjlkwps14adfgxdrbb4yg65fhyimplvjjs1xqj5np197cig67x0"; 19 + src = fetchFromGitHub { 20 + owner = "whitequark"; 21 + repo = pname; 22 + rev = "v${version}"; 23 + inherit (param) sha256; 14 24 }; 15 25 16 26 createFindlibDestdir = true; ··· 21 31 buildFlags = "all all.opt"; 22 32 23 33 meta = { 24 - homepage = http://www.cduce.org/download.html; 34 + inherit (src.meta) homepage; 25 35 description = "A lexer generator for Unicode and OCaml"; 26 36 license = stdenv.lib.licenses.mit; 27 37 platforms = ocaml.meta.platforms or [];