git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.cpuid: 0.1.0 → 0.1.2
commitf36ba34be36c1a35341b533947d06afc5784647b authorVincent Laporte <Vincent.Laporte@gmail.com> dateSat 23 Nov 2019, 07:55 (7 years ago) parentb7f5048
1 file changed+10−12
pkgs/development/ocaml-modules/cpuid/default.nix+10−12
pkgs/development/ocaml-modules/cpuid/default.nix+10−12
@@ -1,22 +1,20 @@
1−{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, ocb-stubblr }:
1+{ lib, fetchurl, buildDunePackage }:
22
3−stdenv.mkDerivation {
4− name = "ocaml${ocaml.version}-cpuid-0.1.0";
3+buildDunePackage rec {
4+ pname = "cpuid";
5+ version = "0.1.2";
6+
7+ minimumOCamlVersion = "4.03";
58
69 src = fetchurl {
7− url = https://github.com/pqwy/cpuid/releases/download/v0.1.0/cpuid-0.1.0.tbz;
8− sha256 = "08k2558a3dnxn8msgpz8c93sfn0y027ganfdi2yvql0fp1ixv97p";
10+ url = "https://github.com/pqwy/cpuid/releases/download/v${version}/cpuid-v${version}.tbz";
11+ sha256 = "08ng4mva6qblb5ipkrxbr0my7ndkc4qwcbswkqgbgir864s74m93";
912 };
1013
11− buildInputs = [ ocaml findlib ocamlbuild topkg ocb-stubblr ];
12−
13− inherit (topkg) buildPhase installPhase;
14−
1514 meta = {
1615 homepage = https://github.com/pqwy/cpuid;
1716 description = "Detect CPU features from OCaml";
18− license = stdenv.lib.licenses.isc;
19− maintainers = [ stdenv.lib.maintainers.vbgl ];
20− inherit (ocaml.meta) platforms;
17+ license = lib.licenses.isc;
18+ maintainers = [ lib.maintainers.vbgl ];
2119 };
2220}