summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-11-23 07:55:56 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2019-12-01 18:18:28 +0000
commitf36ba34be36c1a35341b533947d06afc5784647b (patch)
treec37d4d49ed67c85a7229c5f0d2908125f4b97357 /pkgs/development/ocaml-modules
parentb7f504812b14a706e5862a2a14fb74700f289c34 (diff)
downloadnixpkgs-f36ba34be36c1a35341b533947d06afc5784647b.tar
nixpkgs-f36ba34be36c1a35341b533947d06afc5784647b.tar.gz
nixpkgs-f36ba34be36c1a35341b533947d06afc5784647b.tar.bz2
nixpkgs-f36ba34be36c1a35341b533947d06afc5784647b.tar.lz
nixpkgs-f36ba34be36c1a35341b533947d06afc5784647b.tar.xz
nixpkgs-f36ba34be36c1a35341b533947d06afc5784647b.tar.zst
nixpkgs-f36ba34be36c1a35341b533947d06afc5784647b.zip
ocamlPackages.cpuid: 0.1.0 → 0.1.2
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/cpuid/default.nix22
1 files changed, 10 insertions, 12 deletions
diff --git a/pkgs/development/ocaml-modules/cpuid/default.nix b/pkgs/development/ocaml-modules/cpuid/default.nix
index 10938cf81c2..6c7ecaa4b7a 100644
--- a/pkgs/development/ocaml-modules/cpuid/default.nix
+++ b/pkgs/development/ocaml-modules/cpuid/default.nix
@@ -1,22 +1,20 @@
-{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, ocb-stubblr }:
+{ lib, fetchurl, buildDunePackage }:
 
-stdenv.mkDerivation {
-  name = "ocaml${ocaml.version}-cpuid-0.1.0";
+buildDunePackage rec {
+  pname = "cpuid";
+  version = "0.1.2";
+
+  minimumOCamlVersion = "4.03";
 
   src = fetchurl {
-    url = https://github.com/pqwy/cpuid/releases/download/v0.1.0/cpuid-0.1.0.tbz;
-    sha256 = "08k2558a3dnxn8msgpz8c93sfn0y027ganfdi2yvql0fp1ixv97p";
+    url = "https://github.com/pqwy/cpuid/releases/download/v${version}/cpuid-v${version}.tbz";
+    sha256 = "08ng4mva6qblb5ipkrxbr0my7ndkc4qwcbswkqgbgir864s74m93";
   };
 
-  buildInputs = [ ocaml findlib ocamlbuild 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;
+    license = lib.licenses.isc;
+    maintainers = [ lib.maintainers.vbgl ];
   };
 }