summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocaml-result
diff options
context:
space:
mode:
authorHongchang Wu <wuhc85@gmail.com>2020-09-28 09:06:44 -0400
committerVincent Laporte <vbgl@users.noreply.github.com>2020-10-01 00:39:08 +0200
commit33ed2e9e548a001af545d8d9dabf16b34b3cd3b5 (patch)
tree2a711e0eedb72e57f81443e87741a54d4b41dcd3 /pkgs/development/ocaml-modules/ocaml-result
parent098dedb63f23634b4a0b933b4045204bcd821507 (diff)
downloadnixpkgs-33ed2e9e548a001af545d8d9dabf16b34b3cd3b5.tar
nixpkgs-33ed2e9e548a001af545d8d9dabf16b34b3cd3b5.tar.gz
nixpkgs-33ed2e9e548a001af545d8d9dabf16b34b3cd3b5.tar.bz2
nixpkgs-33ed2e9e548a001af545d8d9dabf16b34b3cd3b5.tar.lz
nixpkgs-33ed2e9e548a001af545d8d9dabf16b34b3cd3b5.tar.xz
nixpkgs-33ed2e9e548a001af545d8d9dabf16b34b3cd3b5.tar.zst
nixpkgs-33ed2e9e548a001af545d8d9dabf16b34b3cd3b5.zip
ocamlPackages.result: 1.2 -> 1.5
Diffstat (limited to 'pkgs/development/ocaml-modules/ocaml-result')
-rw-r--r--pkgs/development/ocaml-modules/ocaml-result/default.nix24
1 files changed, 8 insertions, 16 deletions
diff --git a/pkgs/development/ocaml-modules/ocaml-result/default.nix b/pkgs/development/ocaml-modules/ocaml-result/default.nix
index df442009922..2814c6c5280 100644
--- a/pkgs/development/ocaml-modules/ocaml-result/default.nix
+++ b/pkgs/development/ocaml-modules/ocaml-result/default.nix
@@ -1,21 +1,14 @@
-{ stdenv, fetchFromGitHub, ocaml, findlib }:
+{ lib, buildDunePackage, fetchurl }:
 
-let version = "1.2"; in
+buildDunePackage rec {
+  pname = "result";
+  version = "1.5";
 
-stdenv.mkDerivation {
-  name = "ocaml${ocaml.version}-result-${version}";
-
-  src = fetchFromGitHub {
-    owner = "janestreet";
-    repo = "result";
-    rev = version;
-    sha256 = "1jwzpcmxwgkfsbjz9zl59v12hf1vv4r9kiifancn9p8gm206g3g0";
+  src = fetchurl {
+    url = "https://github.com/janestreet/result/releases/download/${version}/result-${version}.tbz";
+    sha256 = "0cpfp35fdwnv3p30a06wd0py3805qxmq3jmcynjc3x2qhlimwfkw";
   };
 
-  buildInputs = [ ocaml findlib ];
-
-  createFindlibDestdir = true;
-
   meta = {
     homepage = "https://github.com/janestreet/result";
     description = "Compatibility Result module";
@@ -24,7 +17,6 @@ stdenv.mkDerivation {
       while staying compatible with older version of OCaml should use the
       Result module defined in this library.
     '';
-    license = stdenv.lib.licenses.bsd3;
-    platforms = ocaml.meta.platforms or [];
+    license = lib.licenses.bsd3;
   };
 }