forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#301565 from vbgl/ocaml-stdlib-shims-dune3
ocamlPackages.stdlib-shims: use Dune 3
- Loading branch information
Showing
1 changed file
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
{ buildDunePackage, lib, fetchurl, ocaml }: | ||
|
||
buildDunePackage (rec { | ||
buildDunePackage rec { | ||
pname = "stdlib-shims"; | ||
version = "0.3.0"; | ||
src = fetchurl { | ||
url = "https://github.com/ocaml/${pname}/releases/download/${version}/${pname}-${version}.tbz"; | ||
sha256 = "0jnqsv6pqp5b5g7lcjwgd75zqqvcwcl5a32zi03zg1kvj79p5gxs"; | ||
}; | ||
minimalOCamlVersion = "4.02"; | ||
doCheck = true; | ||
meta = { | ||
description = "Shims for forward-compatibility between versions of the OCaml standard library"; | ||
homepage = "https://github.com/ocaml/stdlib-shims"; | ||
inherit (ocaml.meta) license; | ||
maintainers = [ lib.maintainers.vbgl ]; | ||
}; | ||
} // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") { | ||
duneVersion = "1"; | ||
}) | ||
} |