ocamlPackages.cpuid: 0.1.0 → 0.1.2
This commit is contained in:
parent
b7f504812b
commit
f36ba34be3
@ -1,22 +1,20 @@
|
|||||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, ocb-stubblr }:
|
{ lib, fetchurl, buildDunePackage }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
buildDunePackage rec {
|
||||||
name = "ocaml${ocaml.version}-cpuid-0.1.0";
|
pname = "cpuid";
|
||||||
|
version = "0.1.2";
|
||||||
|
|
||||||
|
minimumOCamlVersion = "4.03";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = https://github.com/pqwy/cpuid/releases/download/v0.1.0/cpuid-0.1.0.tbz;
|
url = "https://github.com/pqwy/cpuid/releases/download/v${version}/cpuid-v${version}.tbz";
|
||||||
sha256 = "08k2558a3dnxn8msgpz8c93sfn0y027ganfdi2yvql0fp1ixv97p";
|
sha256 = "08ng4mva6qblb5ipkrxbr0my7ndkc4qwcbswkqgbgir864s74m93";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocamlbuild topkg ocb-stubblr ];
|
|
||||||
|
|
||||||
inherit (topkg) buildPhase installPhase;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://github.com/pqwy/cpuid;
|
homepage = https://github.com/pqwy/cpuid;
|
||||||
description = "Detect CPU features from OCaml";
|
description = "Detect CPU features from OCaml";
|
||||||
license = stdenv.lib.licenses.isc;
|
license = lib.licenses.isc;
|
||||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
maintainers = [ lib.maintainers.vbgl ];
|
||||||
inherit (ocaml.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user