Skip to content

Commit

Permalink
ocamlPackages.cstruct: fix evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Nov 28, 2017
1 parent c289d95 commit 81143b6
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions pkgs/development/ocaml-modules/cstruct/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{ stdenv, fetchurl, ocaml, jbuilder, findlib, sexplib, ocplib-endian }:

stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-cstruct-${version}";
version = "3.0.2";
src = fetchurl {
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-${version}.tbz";
sha256 = "03caxcyzfjmbnnwa15zy9s1ckkl4sc834d1qkgi4jcs3zqchvd8z";
};
name = "ocaml${ocaml.version}-cstruct-${version}";
version = "3.0.2";
src = fetchurl {
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-${version}.tbz";
sha256 = "03caxcyzfjmbnnwa15zy9s1ckkl4sc834d1qkgi4jcs3zqchvd8z";
};

unpackCmd = "tar -xjf $curSrc";
unpackCmd = "tar -xjf $curSrc";

buildInputs = [ ocaml jbuilder findlib ];
buildInputs = [ ocaml jbuilder findlib ];

propagatedBuildInputs = [ sexplib ocplib-endian ];
propagatedBuildInputs = [ sexplib ocplib-endian ];

buildPhase = "jbuilder build -p cstruct";
buildPhase = "jbuilder build -p cstruct";

inherit (jbuilder) installPhase;
inherit (jbuilder) installPhase;

meta = {
description = "Access C-like structures directly from OCaml";
license = stdenv.lib.licenses.isc;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (src.meta) homepage;
inherit (ocaml.meta) platforms;
};
meta = {
description = "Access C-like structures directly from OCaml";
license = stdenv.lib.licenses.isc;
homepage = "https://github.com/mirage/ocaml-cstruct";
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}

0 comments on commit 81143b6

Please sign in to comment.