···1-{ systemPlatform
002, buildDartApplication
3, git
4, which
···7, flutterSrc
8, patches ? [ ]
9, pubspecLock
010}:
1112buildDartApplication.override { inherit dart; } rec {
···21 inherit patches;
22 # The given patches are made for the entire SDK source tree.
23 prePatch = ''pushd "$NIX_BUILD_TOP/source"'';
24- postPatch = ''popd'';
000000002526 # When the JIT snapshot is being built, the application needs to run.
27 # It attempts to generate configuration files, and relies on a few external
···1+{ lib
2+, stdenv
3+, systemPlatform
4, buildDartApplication
5, git
6, which
···9, flutterSrc
10, patches ? [ ]
11, pubspecLock
12+, darwin
13}:
1415buildDartApplication.override { inherit dart; } rec {
···24 inherit patches;
25 # The given patches are made for the entire SDK source tree.
26 prePatch = ''pushd "$NIX_BUILD_TOP/source"'';
27+ postPatch = ''
28+ popd
29+ ''
30+ # Remove impure references to `arch` and use arm64 instead of arm64e.
31+ + lib.optionalString stdenv.isDarwin ''
32+ substituteInPlace lib/src/ios/xcodeproj.dart \
33+ --replace-fail /usr/bin/arch '${darwin.adv_cmds}/bin/arch' \
34+ --replace-fail arm64e arm64
35+ '';
3637 # When the JIT snapshot is being built, the application needs to run.
38 # It attempts to generate configuration files, and relies on a few external
···9, ocaml
10, version ?
11 if lib.versionAtLeast ocaml.version "4.14" then
12- "1.16.2"
13 else if lib.versionAtLeast ocaml.version "4.13" then
14 "1.10.5"
15 else if lib.versionAtLeast ocaml.version "4.12" then
···19}:
2021let params = {
22- "1.16.2" = {
23 name = "lsp";
24 minimalOCamlVersion = "4.14";
25- sha256 = "sha256-FIfVpOLy1PAjNBBYVRvbi6hsIzZ7fFtP3aOqfcAqrsQ=";
26 };
27 "1.14.2" = {
28 name = "lsp";
···9, ocaml
10, version ?
11 if lib.versionAtLeast ocaml.version "4.14" then
12+ "1.17.0"
13 else if lib.versionAtLeast ocaml.version "4.13" then
14 "1.10.5"
15 else if lib.versionAtLeast ocaml.version "4.12" then
···19}:
2021let params = {
22+ "1.17.0" = {
23 name = "lsp";
24 minimalOCamlVersion = "4.14";
25+ sha256 = "sha256-j7i71xfu/SYItNg0WBBbZg4N46ETTcj8IWrmWdTRlgA=";
26 };
27 "1.14.2" = {
28 name = "lsp";
+1-1
pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix
···24, ocaml
25, version ?
26 if lib.versionAtLeast ocaml.version "4.14" then
27- "1.16.2"
28 else if lib.versionAtLeast ocaml.version "4.13" then
29 "1.10.5"
30 else if lib.versionAtLeast ocaml.version "4.12" then
···24, ocaml
25, version ?
26 if lib.versionAtLeast ocaml.version "4.14" then
27+ "1.17.0"
28 else if lib.versionAtLeast ocaml.version "4.13" then
29 "1.10.5"
30 else if lib.versionAtLeast ocaml.version "4.12" then
···30}:
3132let
33- openrct2-version = "0.4.7";
3435 # Those versions MUST match the pinned versions within the CMakeLists.txt
36 # file. The REPLAYS repository from the CMakeLists.txt is not necessary.
···43 owner = "OpenRCT2";
44 repo = "OpenRCT2";
45 rev = "v${openrct2-version}";
46- hash = "sha256-2nSzXbZH1o+BEaxhdQTCM/u4Qbun4tqBKjQ4z7owHeg=";
47 };
4849 objects-src = fetchFromGitHub {
···30}:
3132let
33+ openrct2-version = "0.4.8";
3435 # Those versions MUST match the pinned versions within the CMakeLists.txt
36 # file. The REPLAYS repository from the CMakeLists.txt is not necessary.
···43 owner = "OpenRCT2";
44 repo = "OpenRCT2";
45 rev = "v${openrct2-version}";
46+ hash = "sha256-jSKAgohNMHuyOu4gUHyyZf1I7UrsXGDV5XwwK1DQPyM=";
47 };
4849 objects-src = fetchFromGitHub {