aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/opam-state/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/opam-state/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/opam-state/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/opam-state/default.nix b/nixpkgs/pkgs/development/ocaml-modules/opam-state/default.nix
new file mode 100644
index 00000000000..156976a4a5a
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/opam-state/default.nix
@@ -0,0 +1,19 @@
+{ lib, buildDunePackage, unzip, opam, opam-repository }:
+
+buildDunePackage rec {
+ pname = "opam-state";
+
+ inherit (opam) src version;
+
+ # get rid of check for curl at configure time
+ # opam-state does not call curl at run time
+ configureFlags = [ "--disable-checks" ];
+
+ nativeBuildInputs = [ unzip ];
+ propagatedBuildInputs = [ opam-repository ];
+
+ meta = opam.meta // {
+ description = "OPAM development library handling the ~/.opam hierarchy, repository and switch states";
+ maintainers = with lib.maintainers; [ sternenseemann ];
+ };
+}