about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix42
1 files changed, 21 insertions, 21 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix b/nixpkgs/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix
index 07b6f72e38de..be217812834f 100644
--- a/nixpkgs/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix
+++ b/nixpkgs/pkgs/development/ocaml-modules/ocp-ocamlres/default.nix
@@ -1,30 +1,30 @@
-{ stdenv, fetchFromGitHub, ocaml, findlib, astring, pprint }:
+{ stdenv, lib, fetchFromGitHub, ocaml, findlib, astring, pprint }:
 
-if !stdenv.lib.versionAtLeast ocaml.version "4.02"
+if !lib.versionAtLeast ocaml.version "4.02"
 then throw "ocp-ocamlres is not available for OCaml ${ocaml.version}"
 else
 
 stdenv.mkDerivation rec {
-	name = "ocaml${ocaml.version}-ocp-ocamlres-${version}";
-	version = "0.4";
-	src = fetchFromGitHub {
-		owner = "OCamlPro";
-		repo = "ocp-ocamlres";
-		rev = "v${version}";
-		sha256 = "0smfwrj8qhzknhzawygxi0vgl2af4vyi652fkma59rzjpvscqrnn";
-	};
+  name = "ocaml${ocaml.version}-ocp-ocamlres-${version}";
+  version = "0.4";
+  src = fetchFromGitHub {
+    owner = "OCamlPro";
+    repo = "ocp-ocamlres";
+    rev = "v${version}";
+    sha256 = "0smfwrj8qhzknhzawygxi0vgl2af4vyi652fkma59rzjpvscqrnn";
+  };
 
-	buildInputs = [ ocaml findlib astring pprint ];
-	createFindlibDestdir = true;
+  buildInputs = [ ocaml findlib astring pprint ];
+  createFindlibDestdir = true;
 
-	installFlags = [ "BINDIR=$(out)/bin" ];
-	preInstall = "mkdir -p $out/bin";
+  installFlags = [ "BINDIR=$(out)/bin" ];
+  preInstall = "mkdir -p $out/bin";
 
-	meta = {
-		description = "A simple tool and library to embed files and directories inside OCaml executables";
-		license = stdenv.lib.licenses.lgpl3Plus;
-		homepage = "https://www.typerex.org/ocp-ocamlres.html";
-		maintainers = [ stdenv.lib.maintainers.vbgl ];
-		inherit (ocaml.meta) platforms;
-	};
+  meta = {
+    description = "A simple tool and library to embed files and directories inside OCaml executables";
+    license = lib.licenses.lgpl3Plus;
+    homepage = "https://www.typerex.org/ocp-ocamlres.html";
+    maintainers = [ lib.maintainers.vbgl ];
+    inherit (ocaml.meta) platforms;
+  };
 }