use soon-to-be-released nimlangserver

This commit is contained in:
Daylin Morgan 2025-01-14 10:11:32 -06:00
parent d0f04ddda3
commit f77d74bc12
Signed by: daylin
GPG key ID: 950D13E9719334AD
5 changed files with 104 additions and 107 deletions

View file

@ -103,7 +103,6 @@
}; };
nixConfig = { nixConfig = {
extra-substituters = [ extra-substituters = [
"https://attic.dayl.in/oizys" "https://attic.dayl.in/oizys"
"https://nixpkgs-wayland.cachix.org" "https://nixpkgs-wayland.cachix.org"

View file

@ -13,10 +13,11 @@ in
config = mkIfIn "nim" cfg { config = mkIfIn "nim" cfg {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
nim nim
nimlangserver # nimlangserver
nph nph
(flake.pkgs "self").nimble (flake.pkgs "self").nimble
(flake.pkgs "self").nimlangserver
]; ];
}; };
} }

View file

@ -3,7 +3,7 @@ let
inherit (pkgs) python3Packages; inherit (pkgs) python3Packages;
in in
{ {
# nimlangserver = pkgs.callPackage ./nim/nimlangserver { }; nimlangserver = pkgs.callPackage ./nim/nimlangserver { };
procs = pkgs.callPackage ./nim/procs { }; procs = pkgs.callPackage ./nim/procs { };
nimble = pkgs.callPackage ./nim/nimble { }; nimble = pkgs.callPackage ./nim/nimble { };

View file

@ -1,15 +1,18 @@
{ fetchFromGitHub, buildNimPackage }: { fetchFromGitHub, buildNimPackage }:
buildNimPackage (finalAttrs: { buildNimPackage (finalAttrs: {
pname = "nimlangserver"; pname = "nimlangserver";
version = "1.6.0"; version = "1.6.0-unstable";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nim-lang"; owner = "nim-lang";
repo = "langserver"; repo = "langserver";
# rev = "26b333d0c8d62ba947a9ce9fbd59a7a77766872c"; rev = "5adc15be0f785f0caa3b7fc444e54eeb5596602a";
rev = "v${finalAttrs.version}"; # rev = "v${finalAttrs.version}";
hash = "sha256-rTlkbNuJbL9ke1FpHYVYduiYHUON6oACg20pBs0MaP4="; hash = "sha256-JyBjHAP/sxQfQ1XvyeZyHsu0Er5D7ePDGyJK7Do5kyk=";
}; };
doCheck = false; doCheck = false;
# nix build '.#nimlangserver.src'
# nix run "github:daylinmorgan/nnl" -- result/nimble.lock -o:pkgs/nim/nimlangserver/lock.json --prefetch-git:bearssl,zlib
lockFile = ./lock.json; lockFile = ./lock.json;
}) })

View file

@ -1,183 +1,181 @@
{ {
"depends": [ "depends": [
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/jvk4kr8wws3dbjqnlag2zcysg0d7xnhz-nim-chronos-c04576d", "path": "/nix/store/y6w1gzbf6i691z35rbn6kzrmf1n5bmdc-source",
"rev": "cb8b7bfdcdc2272aadf92153c668acd3c901bd6b",
"sha256": "1ggp5rvs217dv2n0p5ddm5h17pv2mc7724n8cd0b393kmsjiykhz",
"srcDir": "src",
"url": "https://github.com/nitely/nim-regex/archive/cb8b7bfdcdc2272aadf92153c668acd3c901bd6b.tar.gz",
"subDir": "",
"packages": [
"regex"
]
},
{
"method": "fetchzip",
"path": "/nix/store/wb2x78l0bcjax6mzh6kc0ir7081hwsqp-source",
"rev": "15c5e25e2a49a924bc97647481ff50125bba2c76",
"sha256": "13s6mmsy5ah4sjpcl53x0qd8szc040s4nd47kszqyj1qxy340j6j",
"srcDir": "src",
"url": "https://github.com/nitely/nim-unicodedb/archive/15c5e25e2a49a924bc97647481ff50125bba2c76.tar.gz",
"subDir": "",
"packages": [
"unicodedb"
]
},
{
"method": "fetchzip",
"path": "/nix/store/vmy6gkjzq9h7myz0x6d9nhvkbbsyswxm-source",
"rev": "c04576d829b8a0a1b12baaa8bc92037501b3a4a0", "rev": "c04576d829b8a0a1b12baaa8bc92037501b3a4a0",
"sha256": "0plwammxi4iis59p2416g7420f5fx38jziwhmi082c5lm2x658x9", "sha256": "0plwammxi4iis59p2416g7420f5fx38jziwhmi082c5lm2x658x9",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-chronos", "url": "https://github.com/status-im/nim-chronos/archive/c04576d829b8a0a1b12baaa8bc92037501b3a4a0.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"chronos" "chronos"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/rxh6hjns335dl5zn13dl78hlj6ign33m-nim-http-utils-8b88ad6", "path": "/nix/store/nl53j85lzfw7292g7ly0nydp60icp1ba-source",
"rev": "8b88ad6dd9a6326c29f82067800c483d9410d873", "rev": "8bb1acbaa4b86eb866145b0d468eff64a57d1897",
"sha256": "1c20yhzm7c69xkcdzxwbm8ldid565nrmvgr5jk3g6cghh6z9b63n", "sha256": "0p8gs6q91j0s8k7f83j07v0ka75jgbd3x6n5fcjp76yyfxq6nll4",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-http-utils", "url": "https://github.com/status-im/nim-http-utils/archive/8bb1acbaa4b86eb866145b0d468eff64a57d1897.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"httputils" "httputils"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/ngj2jlgi2ygv3xvnqvhlpws2s069fh6c-nim-stint-7c81df9", "path": "/nix/store/ldwb9l3j8xz8z591v9954asg1f6sx990-source",
"rev": "7c81df9adc80088f46a4c2b8bf2a46c26fab057c", "rev": "3236fa68394f1e3a06e2bc34218aacdd2d675923",
"sha256": "0gl8hxk3a29p5f2l3x5v3hscbydnwy8470bl9xjsawysbpa41jq0", "sha256": "0k8q80s8ibhb5dssbg87z4rlhpqkmwhccpl8djg2l671bjbpc1hp",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-stint", "url": "https://github.com/status-im/nim-stint/archive/3236fa68394f1e3a06e2bc34218aacdd2d675923.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"stint" "stint"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/fvqlv9l67gdbvdq48w76y7dm48s52viw-nim-unittest2-e96f321", "path": "/nix/store/2ksmfd7p93a1a7ibcv3qzsk8h3c3shz7-source",
"rev": "e96f3215030cbfa13abc2f5827069b6f8ba87e38", "rev": "845b6af28b9f68f02d320e03ad18eccccea7ddb9",
"sha256": "0q919mswsspk3fdhb9a742y7yv0pk14yc965afx2jza57m4fw2a2", "sha256": "1c55kl05pbavm9v5dv42n43sql9qcrblhh3hnp99p5xmlv20c9vf",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-unittest2", "url": "https://github.com/status-im/nim-unittest2/archive/845b6af28b9f68f02d320e03ad18eccccea7ddb9.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"unittest2" "unittest2"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/ggzfksc7mbfllfdr2va5rmyx757c7nfx-nim-websock-63bcc29", "path": "/nix/store/jk20z5n9y08il34a6w0wzkiak1vyww57-source",
"rev": "63bcc2902d884c63101e144555ad99421734a70a", "rev": "179f81dedaddb5ba8d02534ccc8b7a8335981f49",
"sha256": "0rxdz62pns7ywwzh4r1pjj9qyhx7djj06y5yhf83j7dc30qi7wp2", "sha256": "04l35gx67pyaja1zf14ix1ykvf985affxrwdz9j01pdq89mi4wzi",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-websock", "url": "https://github.com/status-im/nim-websock/archive/179f81dedaddb5ba8d02534ccc8b7a8335981f49.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"websock" "websock"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/4q5lil0j6wdxjbkk4nbwnvz0swhxph4v-nim-serialization-298a955", "path": "/nix/store/d6c7dvmzzvc1ja7kf65jbclbjv74zll7-source",
"rev": "298a9554a885b2df59737bb3461aac8d0d339724", "rev": "2086c99608b4bf472e1ef5fe063710f280243396",
"sha256": "1skh778gkml33n0pz7s8fxybdn2rqg2hg10nyp8jip9x6rbpgz6g", "sha256": "1m7c9bvxarw167kd5mpfnddzydji03azhz347hvad592qfw4vwrc",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-serialization", "url": "https://github.com/status-im/nim-serialization/archive/2086c99608b4bf472e1ef5fe063710f280243396.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"serialization" "serialization"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/1k3vziq26ynmmm9j9savsfm8d7glmrax-nim-stew-d4634c5", "path": "/nix/store/cgk4hrq58z2lkyvw50z48fx2amknznwk-source",
"rev": "d4634c5405ac188e7050d348332edb6c3b09a527", "rev": "a6e198132097fb544d04959aeb3b839e1408f942",
"sha256": "15ii11644vxs55jix64krg8h0ninnhlgqnc7klmskycbcr4a1xgh", "sha256": "0g9k6f6myjbzqnvpw031jbndld24vhgzbw04mhrg8drshkcc8hl5",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-stew", "url": "https://github.com/status-im/nim-stew/archive/a6e198132097fb544d04959aeb3b839e1408f942.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"stew" "stew"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/3x156nly2vr6nixgw1zk5jp5n6bgi6rk-nim-faststreams-dbc4a95", "path": "/nix/store/8ijlgkqw88mgn94xagrjclixsi0czcmz-source",
"rev": "dbc4a95df60238157dcf286f6125188cb72f37c1", "rev": "c246d00eaa7d6f52019464b37da510a8be23e939",
"sha256": "1zvh1lgjmszdd074993qkj01w2v7fjxcawjf7iplwq0rvjpszdy0", "sha256": "0b23xim2vprz2kfycj63kz4hmga92rvxx37a4r4dp562p5rncjgv",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-faststreams", "url": "https://github.com/status-im/nim-faststreams/archive/c246d00eaa7d6f52019464b37da510a8be23e939.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"faststreams" "faststreams"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/7k5blrxbh2zzsxrmz54l5i6v6dj4mp3g-with-91c51ec", "path": "/nix/store/0fqfwjcwsln69s6kjg21nan1zpjkhm5a-source",
"rev": "91c51ec1051bf0cb518cf9bb78114e2a84b03da7", "rev": "bd36a44410dd8365649e425ccade817178628e12",
"sha256": "170hfdc2z2qp9cxgvpqswzr4bmzljybh4lnn0k5kganwvf0ffz9p", "sha256": "159h07k8axskgpq64b79qsixf83nq7b9r09367ghj7f1bgbgfa6w",
"srcDir": "", "srcDir": "",
"url": "https://github.com/zevv/with", "url": "https://github.com/zevv/with/archive/bd36a44410dd8365649e425ccade817178628e12.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"with" "with"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/jw9y4cm15y80h3v9xjz5s1r0rnyi5x4i-nim-testutils-e4fb95c", "path": "/nix/store/68bbq8adcyng1n6wlh1mxs9zrvmlqfhj-source",
"rev": "e4fb95cbe36ad1e231661c922da04b81e0ffeed9", "rev": "e4fb95cbe36ad1e231661c922da04b81e0ffeed9",
"sha256": "0gqhag91f8dkdv0v2mg6pz5q6afl70bbnk628i52p4wsi4bl49jj", "sha256": "0gqhag91f8dkdv0v2mg6pz5q6afl70bbnk628i52p4wsi4bl49jj",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-testutils", "url": "https://github.com/status-im/nim-testutils/archive/e4fb95cbe36ad1e231661c922da04b81e0ffeed9.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"testutils" "testutils"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/sskmpq7fqax2x2wydb1lhyac4ikx5p6p-nim-results-57b2392", "path": "/nix/store/d2k2zimyby03ppam7a3jagjp64s7kv66-source",
"rev": "57b2392ad69849e3e2d02b74a8a0feee2c3d9570", "rev": "57b2392ad69849e3e2d02b74a8a0feee2c3d9570",
"sha256": "1wma3dhrrdfxn05ds6yiv9mj071czv90x06bm7f5rslzk0s7m1af", "sha256": "1wma3dhrrdfxn05ds6yiv9mj071czv90x06bm7f5rslzk0s7m1af",
"srcDir": "", "srcDir": "",
"url": "https://github.com/arnetheduck/nim-results", "url": "https://github.com/arnetheduck/nim-results/archive/57b2392ad69849e3e2d02b74a8a0feee2c3d9570.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"results" "results"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/06gaz1ks9rc13bxr7wkig4sfiz0mb3xw-nim-json-rpc-e27c10a", "path": "/nix/store/ifn939s0mkrk8apgzw9zx8r7qlqq7hff-source",
"rev": "e27c10ad4172e67f71a78044f53de073e7401390", "rev": "31af0f2bda1486ffb7326c5df1dc47dc63d73fff",
"sha256": "16f1lz2c6pzyjwmnqxxzl3sf635kzvzggmk2gl7mqifz4v31wjbq", "sha256": "1vsbrs2fyais2x58sz5a214zbvjbczzj4ph8hjmaxc7gwmh901xn",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-json-rpc", "url": "https://github.com/status-im/nim-json-rpc/archive/31af0f2bda1486ffb7326c5df1dc47dc63d73fff.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"json_rpc" "json_rpc"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/narxn874mr56chm56iya8zdmnadvg61d-nimcrypto-71bca15", "path": "/nix/store/1y5divckxhpdlhjf25jakr3fnlbqqv0k-source",
"rev": "71bca15508e2c0548f32b42a69bcfb1ccd9ab9ff", "rev": "dc07e3058c6904eef965394493b6ea99aa2adefc",
"sha256": "0iizdwgxdrfa94572874dr5d3q2g9j6yk33xzywci7ig3w58rm82", "sha256": "1nj45bn99lyylzd3add01irxn2irhpj2ll9sphjf1zlczmga7d49",
"srcDir": "", "srcDir": "",
"url": "https://github.com/cheatfate/nimcrypto", "url": "https://github.com/cheatfate/nimcrypto/archive/dc07e3058c6904eef965394493b6ea99aa2adefc.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"nimcrypto" "nimcrypto"
] ]
@ -197,38 +195,34 @@
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/cfs80kvd9s3np81i5bfr0pvhsv046vxm-nim-json-serialization-8a4ed98", "path": "/nix/store/jfiwlq3w0jq79aj3izx5zdrv218phjqy-source",
"rev": "8a4ed98bbd0a9479df15af2fa31da38a586ea6d5", "rev": "ab1a061756bb6fc2e0f98cb57852f2bb0c6f9772",
"sha256": "1r6acznzdyd3r5ixfhxbcqsrm6iqcyvrg5i93pzna1q4h9mgmf5f", "sha256": "0926ixcw451qdfvcfx0b7g7bm3345gvnchfy349v3pf8vh3nn7jz",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-json-serialization", "url": "https://github.com/status-im/nim-json-serialization/archive/ab1a061756bb6fc2e0f98cb57852f2bb0c6f9772.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"json_serialization" "json_serialization"
] ]
}, },
{ {
"method": "git", "method": "fetchzip",
"path": "/nix/store/vnxrmzlkma85rsf82abcr81ywrgr5dya-nim-chronicles-32ac867", "path": "/nix/store/s0xpqswh05sy658ah0jxwvarczi2p8b1-source",
"rev": "32ac8679680ea699f7dbc046e8e0131cac97d41a", "rev": "32ac8679680ea699f7dbc046e8e0131cac97d41a",
"sha256": "0w3ya0rpy0rp997nnfakq0cshpk4vyva195mmgrw5c9zp4pwv2hm", "sha256": "0w3ya0rpy0rp997nnfakq0cshpk4vyva195mmgrw5c9zp4pwv2hm",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-chronicles", "url": "https://github.com/status-im/nim-chronicles/archive/32ac8679680ea699f7dbc046e8e0131cac97d41a.tar.gz",
"subDir": "", "subDir": "",
"fetchSubmodules": true,
"leaveDotGit": false,
"packages": [ "packages": [
"chronicles" "chronicles"
] ]
}, },
{ {
"method": "git", "method": "git",
"path": "/nix/store/ngqb4fpv1yi4zn5x7sn3p3yvxmmbn2z1-nim-zlib-45b06fc", "path": "/nix/store/yz5sl71l2s8fa0af2afrip4adv5yz681-nim-zlib-02311a3",
"rev": "45b06fca15ce0f09586067d950da30c10227865a", "rev": "02311a35623964a3ef37da8cd896ed95be06e6da",
"sha256": "1gcvl59j7yj698sl4l35drq0cmvy2zsywgi7b0dv9ci3klss4cxb", "sha256": "105yzm4phva8ga2nw9yy9kk37lwanpgiq9g77ag54fc005cr0sm6",
"srcDir": "", "srcDir": "",
"url": "https://github.com/status-im/nim-zlib", "url": "https://github.com/status-im/nim-zlib",
"subDir": "", "subDir": "",