1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/ocaml-modules/cpuid/default.nix
Vincent Laporte 369230cc76 ocamlPackages.cpuid: init at 0.1.0
cpuid allows detection of CPU features from OCaml.

Homepage: https://github.com/pqwy/cpuid
2017-03-13 20:58:51 +00:00

25 lines
708 B
Nix

{ 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;
};
}