Skip to content

Commit

Permalink
ocamlPackages.cpuid: init at 0.1.0
Browse files Browse the repository at this point in the history
cpuid allows detection of CPU features from OCaml.

Homepage: https://github.com/pqwy/cpuid
  • Loading branch information
vbgl committed Mar 13, 2017
1 parent 90f2b24 commit 369230c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkgs/development/ocaml-modules/cpuid/default.nix
@@ -0,0 +1,24 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, ocb-stubblr }:

stdenv.mkDerivation {
name = "ocaml${ocaml.version}-cpuid-0.1.0";

src = fetchurl {
url = http://github.com/pqwy/cpuid/releases/download/v0.1.0/cpuid-0.1.0.tbz;
sha256 = "08k2558a3dnxn8msgpz8c93sfn0y027ganfdi2yvql0fp1ixv97p";
};

unpackCmd = "tar xjf $src";

buildInputs = [ ocaml findlib ocamlbuild opam topkg ocb-stubblr ];

inherit (topkg) buildPhase installPhase;

meta = {
homepage = https://github.com/pqwy/cpuid;
description = "Detect CPU features from OCaml";
license = stdenv.lib.licenses.isc;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Expand Up @@ -138,6 +138,8 @@ let

cppo = callPackage ../development/tools/ocaml/cppo { };

cpuid = callPackage ../development/ocaml-modules/cpuid { };

cryptokit = callPackage ../development/ocaml-modules/cryptokit { };

cstruct = callPackage ../development/ocaml-modules/cstruct {
Expand Down

0 comments on commit 369230c

Please sign in to comment.