+4
-22
pkgs/development/ocaml-modules/zed/default.nix
+4
-22
pkgs/development/ocaml-modules/zed/default.nix
···
1
-
{ lib, buildDunePackage, fetchFromGitHub, ocaml, react, charInfo_width, result, uchar, uutf, uucp, uuseg }:
2
-
3
-
let
4
-
switch =
5
-
if lib.versionAtLeast ocaml.version "4.08"
6
-
then
7
-
{
8
-
version = "3.2.3";
9
-
sha256 = "sha256-lbhqjZxeUqHdd+yahRO+B6L2mc+h+4T2+qKVgWC2HY8=";
10
-
propagatedBuildInputs = [ react result uchar uutf uucp uuseg ];
11
-
}
12
-
else
13
-
{
14
-
version = "3.1.0";
15
-
sha256 = "04vr1a94imsghm98iigc35rhifsz0rh3qz2qm0wam2wvp6vmrx0p";
16
-
propagatedBuildInputs = [ charInfo_width react ];
17
-
};
18
-
in
19
20
buildDunePackage rec {
21
pname = "zed";
22
23
-
inherit (switch) version propagatedBuildInputs;
24
-
25
-
duneVersion = "3";
26
27
src = fetchFromGitHub {
28
owner = "ocaml-community";
29
repo = pname;
30
rev = version;
31
-
sha256 = switch.sha256;
32
};
33
34
meta = {
···
1
+
{ lib, buildDunePackage, fetchFromGitHub, react, result, uchar, uutf, uucp, uuseg }:
2
3
buildDunePackage rec {
4
pname = "zed";
5
+
version = "3.2.3";
6
7
+
propagatedBuildInputs = [ react result uchar uutf uucp uuseg ];
8
9
src = fetchFromGitHub {
10
owner = "ocaml-community";
11
repo = pname;
12
rev = version;
13
+
sha256 = "sha256-lbhqjZxeUqHdd+yahRO+B6L2mc+h+4T2+qKVgWC2HY8=";
14
};
15
16
meta = {