summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMatthew Maurer <matthew.r.maurer@gmail.com>2016-09-26 17:30:06 -0400
committerMatthew Maurer <matthew.r.maurer@gmail.com>2016-09-26 18:05:08 -0400
commit047f105bd184d42813e076f45bb357aa9217ef28 (patch)
treefd0d4a748eadc627270cd77a1eb11b1a112f57b6 /pkgs
parent2af70511974a79814e88c35d0172be5d502ec0c3 (diff)
downloadnixlib-047f105bd184d42813e076f45bb357aa9217ef28.tar
nixlib-047f105bd184d42813e076f45bb357aa9217ef28.tar.gz
nixlib-047f105bd184d42813e076f45bb357aa9217ef28.tar.bz2
nixlib-047f105bd184d42813e076f45bb357aa9217ef28.tar.lz
nixlib-047f105bd184d42813e076f45bb357aa9217ef28.tar.xz
nixlib-047f105bd184d42813e076f45bb357aa9217ef28.tar.zst
nixlib-047f105bd184d42813e076f45bb357aa9217ef28.zip
oasis: fix typo
The URL uses the filename of 0.4.6 in the 0.4.7 package.
The package still works currently and provides 0.4.7, because ocamlforge
dispatches entirely based on the number before that, the filename is just
sugar.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/ocaml/oasis/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/tools/ocaml/oasis/default.nix b/pkgs/development/tools/ocaml/oasis/default.nix
index 9b69b3bb016f..eb6cd35b2561 100644
--- a/pkgs/development/tools/ocaml/oasis/default.nix
+++ b/pkgs/development/tools/ocaml/oasis/default.nix
@@ -1,11 +1,14 @@
 {stdenv, fetchurl, ocaml, findlib, ocaml_data_notation, type_conv, camlp4,
  ocamlmod, ocamlify, ounit, expect}:
 
-stdenv.mkDerivation {
-  name = "ocaml-oasis-0.4.7";
+stdenv.mkDerivation rec {
+  version = "0.4.7";
+  name = "ocaml-oasis-${version}";
 
+  # You must manually update the url, not just the version. OCamlforge keys off
+  # the number after download.php, not the filename.
   src = fetchurl {
-    url = http://forge.ocamlcore.org/frs/download.php/1635/oasis-0.4.6.tar.gz;
+    url = "http://forge.ocamlcore.org/frs/download.php/1635/oasis-${version}.tar.gz";
     sha256 = "13crvqiy0hhlnm4qfyxq2jjvs11ldxf15c4g9q91k1x3wj04pg2l";
   };