mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
a13cdfe520
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild. This makes some closures significantly smaller and makes cross compilation easier
34 lines
949 B
Nix
34 lines
949 B
Nix
{ stdenv, lib, fetchurl, fetchpatch, ocaml, findlib, ocaml_pcre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ocaml${ocaml.version}-inifiles";
|
|
version = "1.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://ubuntu/pool/universe/o/ocaml-inifiles/ocaml-inifiles_${version}.orig.tar.gz";
|
|
sha256 = "0jhzgiypmh6hwsv1zpiq77fi0cvcmwbiy5x0yg7mz6p3dh1dmkns";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocaml-inifiles/ocaml-inifiles.1.2/files/ocaml-inifiles.diff";
|
|
sha256 = "037kk3172s187w8vwsykdxlpklxzc7m7np57sapk499d8adzdgwn";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ ocaml findlib ];
|
|
propagatedBuildInputs = [ ocaml_pcre ];
|
|
|
|
strictDeps = true;
|
|
|
|
buildFlags = [ "all" "opt" ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
meta = {
|
|
description = "A small OCaml library to read and write .ini files";
|
|
license = lib.licenses.lgpl21Plus;
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|