3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/ulex/default.nix
Domen Kožar 3cb1ce8577 ulex: set platforms
(cherry picked from commit 827a9bbd44)
Signed-off-by: Domen Kožar <domen@dev.si>
2014-12-18 10:01:50 +01:00

32 lines
738 B
Nix

{stdenv, fetchurl, ocaml, findlib }:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
version = "1.1";
pname = "ulex";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "http://www.cduce.org/download/${pname}-${version}.tar.gz";
sha256 = "0fjlkwps14adfgxdrbb4yg65fhyimplvjjs1xqj5np197cig67x0";
};
createFindlibDestdir = true;
buildInputs = [ocaml findlib];
buildFlags = "all all.opt";
meta = {
homepage = http://www.cduce.org/download.html;
description = "ulex is a lexer generator for Unicode and OCaml";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}