Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

mesonlsp: init at 4.2.2 #269042

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

paveloom
Copy link
Member

Description of changes

https://github.com/JCWasmx86/Swift-MesonLSP

Depends on #269015.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Priorities

Add a 馃憤 reaction to pull requests you find important.

@JCWasmx86
Copy link

(Author of Swift-MesonLSP; not using nix) here. Thanks a lot for your efforts. It seems you are missing a few optional runtime dependencies (While they are optional, not having them removes a few features):

  • curl or wget: For downloading file wraps/patches at runtime
  • git: For downloading git wraps
  • hg: For mercurial wraps
  • svn: For svn wraps
  • muon: For formatting support (https://muon.build/)
  • GNU patch: For applying patches

@paveloom
Copy link
Member Author

Added those as runtime dependencies.

@hcsch
Copy link
Contributor

hcsch commented Dec 18, 2023

When trying to build this on top of your other PR for swift-tools-support-core I got a hash mismatch for the generated dependencies. Here's the diff I got after fixing those:

Diff from your generated files to the ones I got today (click to expand)
diff --git a/pkgs/by-name/sw/swift-mesonlsp/generated/default.nix b/pkgs/by-name/sw/swift-mesonlsp/generated/default.nix
index f6111300ff76..031954131be3 100644
--- a/pkgs/by-name/sw/swift-mesonlsp/generated/default.nix
+++ b/pkgs/by-name/sw/swift-mesonlsp/generated/default.nix
@@ -3,8 +3,8 @@
   workspaceStateFile = ./workspace-state.json;
   hashes = {
     "BitByteData" = "1bvbf89q6ivvy5q87k3jc07d5if5gvimz0shir8d6jw1pv5mn4ws";
-    "console-kit" = "0j249lzx9sywj80a9glwv480lzybf9a4cznhdfw5qrk7n7ckf13y";
-    "indexstore-db" = "02al5rk807685ian3xckpdl00yplm8v92b7gq1prw7abll8k6hnq";
+    "console-kit" = "1pn61rigw0svwig6d194sd0gqzfdxvra8vdkdyi5pqawra3xqgyd";
+    "indexstore-db" = "0plwcrh8z321x0i4psqg5lja2bm0lyc79winbx3v2jhdq5l1v9rg";
     "Perfect-INIParser" = "1v7q0bj4x87npanczn7yiicbg3c78wxjyww6cfkd1ipnvjh1gjmx";
     "sourcekit-lsp" = "1ybi92zspb20zx969xhcf9hzrjv5p01fjq9jibpk41pqqjch1whi";
     "SWCompression" = "1arjrx1w78v9p8ma8gp8fj79bggnp014433r46gxq8jja3qilwic";
@@ -15,12 +15,12 @@
     "swift-certificates" = "1kfgmwg9pdihnxq9b5r22b9w2fxcmciac24rl0az1v0zkzj495wz";
     "swift-collections" = "11d2vs2xxxbkvqqhm941y3an58qh52gfi6pv6xlar9873igijryq";
     "swift-crypto" = "1vng5mpbjx73w8z9a5j3mbpyq6mnqzc8rsqk9b3mckzznvvpih4m";
-    "swift-driver" = "108a1qr4syzngscb9lxil0r53l4ldjk56h0mr2jys52nlj543ad8";
-    "swift-llbuild" = "0q0ia2sfcdpkm29www34sdjgw9820xjbyc2gsi1gv6di0b5ar2aw";
+    "swift-driver" = "1cxl25kiz90kn4wldq64v9p1dyvggyfibf7f96anf130j9kg9rvx";
+    "swift-llbuild" = "19la95ld4vs3xlfvf560q1kq039f5dyj3rsmh0wzfaivxl9p5w83";
     "swift-log" = "17yshnwxr69d852a852l7dfhbja8gg7xah1pj7m5snah1q3k9vy7";
     "swift-nio" = "1gdhprgcp8kh9pg00j6rg7v3wcc7xkv5bgx2sfcdgcic1jh9lm0n";
-    "swift-package-manager" = "1wnyadisrwyjbb0xi3axpwrlxc9zjy0ckzg9j025c24saf1p952w";
-    "swift-syntax" = "1mz92x9hjs14wfp4qhj8dy35b7jkksj9lig6sm2rp2dqi6psbnxd";
+    "swift-package-manager" = "183pdf6m6rmh7ww854bzwvz47wkj9z4w4a3k697jasc8dka7lbmi";
+    "swift-syntax" = "18lvnz4j44f01srk129k2p4gjb143992ysqc2q3cwyfwsfk2gqcd";
     "swift-system" = "0402hkx2q2dv27gccnn8ma79ngvwiwzkhcv4zlcdldmy6cgi0px7";
     "swift-tools-support-core" = "0lmib1d16q0yidxaxl5szfcqwni9i1916pcqgy572h4i06qn20m2";
     "SwiftTreeSitter" = "13a8x2mms4dhv9rl94zv1jkmjbs718fawxnb0cw23qwnba17xv26";
diff --git a/pkgs/by-name/sw/swift-mesonlsp/generated/workspace-state.json b/pkgs/by-name/sw/swift-mesonlsp/generated/workspace-state.json
index d5658a76a613..91e112effb90 100644
--- a/pkgs/by-name/sw/swift-mesonlsp/generated/workspace-state.json
+++ b/pkgs/by-name/sw/swift-mesonlsp/generated/workspace-state.json
@@ -29,8 +29,8 @@
         },
         "state": {
           "checkoutState": {
-            "revision": "2e3e205e8d7563d5c1a6f1c8992616d337f632e6",
-            "version": "4.11.0"
+            "revision": "a7dd7001196d39b758e4990ec0f26f80162f4c84",
+            "version": "4.14.0"
           },
           "name": "sourceControlCheckout"
         },
@@ -47,7 +47,7 @@
         "state": {
           "checkoutState": {
             "branch": "main",
-            "revision": "89ec16c2ac1bb271614e734a2ee792224809eb20"
+            "revision": "5eac09c9a7b92303780e1ce7ea4aa5ee70226d56"
           },
           "name": "sourceControlCheckout"
         },
@@ -233,7 +233,7 @@
         "state": {
           "checkoutState": {
             "branch": "main",
-            "revision": "e0604b6195ccd53072c9455ee8f99b6bb094e911"
+            "revision": "d5c60fe47675e787f7589b04426e8aad127c90a8"
           },
           "name": "sourceControlCheckout"
         },
@@ -250,7 +250,7 @@
         "state": {
           "checkoutState": {
             "branch": "main",
-            "revision": "8333c9db6a0fde517c5527540b859d3ec41c5e08"
+            "revision": "bc3ffd54c2bfa8ce2214d1342860f07ae44922d1"
           },
           "name": "sourceControlCheckout"
         },
@@ -301,7 +301,7 @@
         "state": {
           "checkoutState": {
             "branch": "main",
-            "revision": "8e318dc5e3e7beafcd1f224daea10ffdc0ce8707"
+            "revision": "b368b96f9c3b5d360cd9e058fa106eff029c5fb3"
           },
           "name": "sourceControlCheckout"
         },
@@ -318,7 +318,7 @@
         "state": {
           "checkoutState": {
             "branch": "main",
-            "revision": "7c1c56c0aa505c939b210b9f3b6797417107820a"
+            "revision": "184930ad29dbfa924e9568f49daee8ad0f376223"
           },
           "name": "sourceControlCheckout"
         },

Not quite sure what would cause these changes since everything else seems to have stayed the same, especially the Swift-MesonLSP version.

@paveloom
Copy link
Member Author

I can't reproduce this. I get the same hashes when running swiftpm2nix in the local copy of the Swift-MesonLSP repository at the v3.1.3 tag. To check the package build, I did the following:

git checkout swiftpm
git checkout -b swift-mesonlsp-merge
git cherry-pick swift-mesonlsp
nix build -Lv --rebuild .#swift-mesonlsp

@hcsch
Copy link
Contributor

hcsch commented Dec 20, 2023

Sorry for only replying again now. I also just cherry-picked your swiftpm and swift-mesonlsp changes in my first attempt. To verify again I've now did exactly what you described, but this gets me the same error I got initially:

SWCompression> Submodule path 'Tests/Test Files': checked out '83a2bcadb7efb27c1835a2b1324b1a0617bcf901'
SWCompression> removing `.git'...
error: hash mismatch in fixed-output derivation '/nix/store/4d88l6lq8bvrhcks9v03g55ps7a68ac3-SWCompression-0bddafb.drv':
         specified: sha256-LHIa8VBSItyfIXkMQgK49r2VjnToPqQqummjw0PPMqs=
            got:    sha256-yz2f6OpbZv9fwiY0bd2SrImestoWtpss18sWZ42RbSU=
error: 1 dependencies of derivation '/nix/store/9iharryq2h7lzc65hafz3aiv7h0rghp1-swift-mesonlsp-3.1.3.drv' failed to build

I ran nix build -Lv .#swift-mesonlsp, as rebuild just got me an error about the swift-mesonlsp store path being an invalid output (which from a short search just seems to be the case if you haven't built the derivation before that you're trying to rebuild).

I'm also still confused as to what is happening here, since I should have exactly the same sources and inputs as you? Maybe some hashing doesn't work the same for you as it does for me? Maybe a fetcher doesn't produce the same results? I've tested this on both NixOS (running a flake-y system tracking nixos-unstable) and on Arch with a nix installed via pacman.

Here's the full log, perhaps you can diff this with yours:

Full nix log (click to expand)
these 34 derivations will be built:
  /nix/store/1njgv5q35bi3kbqaiwm2v0fh5v4mslz7-indexstore-db-89ec16c.drv
  /nix/store/3iv3n4f0nf3k02a2j610gybgbhi4nm0a-swift-log-332ed31.drv
  /nix/store/7b638pkzdd4ann51ym0gam9jrwqbw7v3-fix-stdlib-path.patch.drv
  /nix/store/wzdzf90g6mqqrb7gpnzd6vpwbrg6j2ql-swift-tools-support-core.drv
  /nix/store/hxa3gb39kw6a0n014sa28kv572kl4xhw-swift-driver.drv
  /nix/store/44nhjsd3j15ylf68n7mqnmbqkj974d84-swiftpm-bootstrap-5.8.drv
  /nix/store/4d88l6lq8bvrhcks9v03g55ps7a68ac3-SWCompression-0bddafb.drv
  /nix/store/4m3lyicq1hv67s9wxs0kpj7r09gflfdq-console-kit-2e3e205.drv
  /nix/store/4x8k2pmafnj97fpfcb61w25ykrrlfdd4-swift-crypto-629f0b6.drv
  /nix/store/51jbny3lx8gvl2pf02vh96b9c72k07mp-swift-syntax-7c1c56c.drv
  /nix/store/88lmr38dny55v7k6qa8jjsydbibwr8z3-tree-sitter-meson-3717c33.drv
  /nix/store/9pqvcvb7v7aaf29cn1i8xxb2jh1q3ns1-Yams-0d9ee7e.drv
  /nix/store/aw56xh0mxl97hrnn05dcxiadmckysayn-swift-certificates-01d7664.drv
  /nix/store/bg2k25g61a440a1jdkikn7axl98r6i1a-source.drv
  /nix/store/crqy6g71j3ljry20avy2h3rviiznfwkc-swift-asn1-c7e239b.drv
  /nix/store/d935lf2zyla0s4xbvmyl9fqpa6l2pcq2-Perfect-INIParser-d5f7373.drv
  /nix/store/d9hnj5m4xw8cjy8jsv2flr1963b0n87h-swift-argument-parser-8f4d275.drv
  /nix/store/dn0h4i0fgvxb1z3x2h0ijdcbpm736ygn-swift-atomics-cd142fd.drv
  /nix/store/dripamamblnjznh7ylywm74zx06dbn6z-sourcekit-lsp-6e63212.drv
  /nix/store/h298s3lzvf6ys1wk9jagsf7v75367rlp-swift-llbuild-8333c9d.drv
  /nix/store/l0vwdyc9yl173i5lmng5r144w2hjr701-prevent-sdk-dirs-warnings.patch.drv
  /nix/store/xv4dvcnamsc87l9xadgwbyam7hy67j9s-swiftpm-5.8.drv
  /nix/store/nfdyajmfsmyi2fb9180256793yk5581h-swift-driver-5.8.drv
  /nix/store/hqmvmsanh712sa0cyw75ki2bkhs8zig5-swift-wrapper-5.8.drv
  /nix/store/inwshmzdswk6qgg6v09vg280vxkvdk28-BitByteData-36df26f.drv
  /nix/store/jmfwiy6djwsffv6i4lmj2rmbgdi9g0vb-swift-driver-e0604b6.drv
  /nix/store/k38gzqhdk0p15m7ngj2sbjj36gs4lxfl-Package.resolved.drv
  /nix/store/kdcgk6zhfshfn6wrkgizzifmalin6cfy-SwiftTreeSitter-a9b1335.drv
  /nix/store/n05ygpd4qv5xynrf72vnf4gw55n81ipp-swift-tools-support-core-f452f50.drv
  /nix/store/ni1kcb7xrcd709yk9wk41gkd5fnmm5gk-swift-backtrace-80746bd.drv
  /nix/store/pwjbq0mg60b8nadcdhf62mcy0s3dfm1h-swift-package-manager-8e318dc.drv
  /nix/store/yry2yxf9qvq9jxz5mj67mczggqma8ims-swift-nio-702cd7c.drv
  /nix/store/zsacrn5ssjry7c0mcc7x3dmvrir8rb4a-swift-collections-a902f18.drv
  /nix/store/9iharryq2h7lzc65hafz3aiv7h0rghp1-swift-mesonlsp-3.1.3.drv
these 72 paths will be fetched (257.17 MiB download, 1308.54 MiB unpacked):
  /nix/store/60rbmhym8kqpr82kavm6gbqp3lqi7bqp-Package.resolved
  /nix/store/k8x4mm2kfxvbr0hhhnwc63iz8ai6vnxg-Package.resolved
  /nix/store/lp1fhk0r6677q73b8gvyzz46035ny696-Yams
  /nix/store/dzazm7jjc7dc79fm1a506yx7b7xw1zl9-Yams-01835dc
  /nix/store/k03jp2gzl8vhllf3kqmmbr59qfsdfz9q-Yams-f47ba48
  /nix/store/vpgfpi65m5jwdgyw0dszy65lh0fdd0vz-abseil-cpp-20230125.3
  /nix/store/lxcxwp8h4p7wm1iyh72h0d5bj6phc3z3-apr-1.7.4
  /nix/store/jz759bsg1fad6zcjp58g1jg3b3jjw9qn-apr-util-1.6.3
  /nix/store/42qhdl85xn412kxc4azivasbyvhkij4f-clang-15.0.7
  /nix/store/07haalw3zm3yl0rbphvrg59fl8ain36k-clang-wrapper-15.0.7
  /nix/store/3xxg9hgfplwfccrxlb9950q0mzf8n6fp-compiler-rt-libc-15.0.7
  /nix/store/dfbzrwn5y64fzhfvrfg1k9a59ch2biwg-compiler-rt-libc-15.0.7-dev
  /nix/store/r304lglsa9i2jy5hpbdz48z3j3x2n4a6-curl-8.4.0-bin
  /nix/store/snwijqq5a5kimzdppsz42v2k4g4k61g2-cyrus-sasl-2.1.28
  /nix/store/ll5kli0fi083y8lx3ka2h7xfqj8bhxnl-d3ef9cdf4871a58eddec7ff0e28fe611130da3f9.patch
  /nix/store/zcpq1fivdd131gshg58m4cyq7fwqr3j8-git-2.42.0
  /nix/store/5yvl1madlmlr531v8n8447fdq0gjzwv1-git-2.42.0-doc
  /nix/store/fw1c2193cbmwigg5cmh4fjwy70jscswg-gtest-1.12.1
  /nix/store/nxwhf776biv1r81lyvmav2ygfddhkikg-jq-1.7
  /nix/store/bpjd8324a6qj34zxhn5asgvi8bpm9bb2-jq-1.7-bin
  /nix/store/hks7d5aa2wcw0nbh67g0s7z3dq5vvxva-jq-1.7-dev
  /nix/store/g59bnqx3j1dcjzgr96kgf4c9ijjvr8v3-jq-1.7-doc
  /nix/store/nxr5q69f3x52rnv2pf00qad5qz25ghqy-jq-1.7-lib
  /nix/store/hpf29bl41042vl577ymkxprxlbxg5vyk-jq-1.7-man
  /nix/store/167dnndsjyc50rcf0wh2qhad3r017nw4-llbuild
  /nix/store/wx4y615rsf39y5zfp0pfp5mifjxq3mgz-mercurial-6.5.2
  /nix/store/7lwi9yyy3hgg4zp2p0i5cwj7xhnyjm0r-muon-0.2.0
  /nix/store/8zs25dlfhkzhp40yljqasdj4d5w6bbqn-oniguruma-6.9.9-lib
  /nix/store/0ffbs6igvbb5czslpr9j5z9jq53mhklh-openldap-2.6.6
  /nix/store/ljn6af1x0wsfzirvq99pxrkmy8qnc39b-perl5.38.0-Authen-SASL-2.1700
  /nix/store/wx6hgc4gz4h18gn7jbg16kbca6zqsyq6-perl5.38.0-CGI-4.59
  /nix/store/hfn73jilzfivws4mxsmmljm5jn3apqli-perl5.38.0-CGI-Fast-2.16
  /nix/store/01r2sdjs87b81pzgih4arb9qij1yx41n-perl5.38.0-Digest-HMAC-1.04
  /nix/store/m5hvx64acckwyf99q9cykcpq95m21igk-perl5.38.0-FCGI-0.82
  /nix/store/0yxmp3kyjfd3x4k9y13dxwbf5kdsvy39-perl5.38.0-FCGI-ProcManager-0.28
  /nix/store/0y5vr6r9kmfp0km62l2mlb4w6ffrqdas-perl5.38.0-HTML-TagCloud-0.38
  /nix/store/0c2frmw3c9ia9fqdby4rrh2hi2zxwa2w-perl5.38.0-IO-Socket-SSL-2.083
  /nix/store/mx4qdyryss83cv93hljaawa1zbn6lyfy-perl5.38.0-Mozilla-CA-20230821
  /nix/store/jdlz3dxzb5a91dqphyipirvqkslv8c8k-perl5.38.0-Net-SMTP-SSL-1.04
  /nix/store/62nz2ihx8g8m3s9lipmzl8ffk13vzbax-perl5.38.0-Net-SSLeay-1.92
  /nix/store/jjbbjykz8q3h30qqknzsynp3vj8fvq73-perl5.38.0-TermReadKey-2.38
  /nix/store/fmwq823zqsrwkv3kqlvh8p9yyglhg8rg-perl5.38.0-libnet-3.15
  /nix/store/723nxhrlckm4r9wvbbl41n30q3mjfdc1-pkgconf-2.0.3-lib
  /nix/store/mrlrz1wc1syvbm095alcwkjphyzr40sw-python3.11-fb-re2-1.0.7
  /nix/store/jabkx0c1yyhbr2kp2pykqfczyqx6x07x-re2-2023-11-01
  /nix/store/cnjzn5xv67r8gzp0kbq03i3sd9j0q27i-serf-1.3.10
  /nix/store/b50w1fq34x0jx88s2jd860bmykmrc92h-source
  /nix/store/ngi1n2d17y5g6pr410kacl6y7vif0wnv-stdenv-linux
  /nix/store/yzxn4qg5ryy56nc02gcmkb3qwlk2ljl6-subversion-1.14.2
  /nix/store/gz54vnr879ayjq8zpiifmds46md4rign-swift-5.8
  /nix/store/025ifibhhq6f24sh9ib7sd5li2f7inpg-swift-5.8-lib
  /nix/store/5jl8qsskhv9i0hlp3h1gydzjp8qiz4ny-swift-5.8-man
  /nix/store/qgbcrxlp5cj0viy0igjnqirmngklnzpq-swift-argument-parser
  /nix/store/cbphc9fjf9fycy4c6skdfvf8frfn9mll-swift-argument-parser-e394bf3
  /nix/store/vaqffd3yv23sc1j4ymd1hdsjxbksfikj-swift-collections
  /nix/store/140ss4hyk3lcc164n5lr2zhz2dh5awaw-swift-collections-937e904
  /nix/store/ydqba82c1b53rr5y4yx78x943jf9y2qy-swift-corelibs-foundation-5.8
  /nix/store/32ppbgmcx0k9awig4vk5zc42q286va53-swift-corelibs-foundation-5.8-dev
  /nix/store/b3iz9w5gq5s319hprw5c02p98za4dm8g-swift-corelibs-libdispatch-5.8
  /nix/store/h2sgw5ay0d5x8k0gx6v0d04188b3p45s-swift-corelibs-libdispatch-5.8-dev
  /nix/store/vdqrqw372nx1iksg3giv09p20ln3d706-swift-corelibs-xctest-5.8
  /nix/store/yqsmzgbz8krhwbm85c18p7c2gq7dl6r4-swift-crypto
  /nix/store/c4zs33cpivbkyyyys91xz78p8f8s9jja-swift-crypto-75ec60b
  /nix/store/p5iv7l68cs745mn6g3byd1x3hzh5gmss-swift-driver-5.8-src
  /nix/store/k6fjidxfq1lz32lncy9by0455vpn5sh3-swift-driver-7cfe0c0
  /nix/store/89dz8g2izv4xwlb7qazap9nrawfnmrm6-swift-llbuild-dccfc2e
  /nix/store/mj6v2nd1vxwl3ng32abxwbgvm4x5cwzz-swift-package-manager-5.8-src
  /nix/store/xqrcdyhkzj7cp649m36g78wp07b9pbp6-swift-system
  /nix/store/5k21qs254q5ic8sa07ds47cy5naiffxw-swift-system-836bc45
  /nix/store/1iniilvzay99l032ydbxzjd9mdd43a5m-swift-tools-support-core-ac4871e
  /nix/store/7xri2yhx5s0jnvxlhfab3hsywabwacx3-swift-wrapper-5.8
  /nix/store/h55qdwdj71piic6g2l0hxrwmlj8c4map-utf8proc-2.9.0
copying path '/nix/store/b50w1fq34x0jx88s2jd860bmykmrc92h-source' from 'https://cache.nixos.org'...
copying path '/nix/store/5k21qs254q5ic8sa07ds47cy5naiffxw-swift-system-836bc45' from 'https://cache.nixos.org'...
copying path '/nix/store/5yvl1madlmlr531v8n8447fdq0gjzwv1-git-2.42.0-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/01r2sdjs87b81pzgih4arb9qij1yx41n-perl5.38.0-Digest-HMAC-1.04' from 'https://cache.nixos.org'...
copying path '/nix/store/0yxmp3kyjfd3x4k9y13dxwbf5kdsvy39-perl5.38.0-FCGI-ProcManager-0.28' from 'https://cache.nixos.org'...
copying path '/nix/store/0y5vr6r9kmfp0km62l2mlb4w6ffrqdas-perl5.38.0-HTML-TagCloud-0.38' from 'https://cache.nixos.org'...
copying path '/nix/store/fmwq823zqsrwkv3kqlvh8p9yyglhg8rg-perl5.38.0-libnet-3.15' from 'https://cache.nixos.org'...
copying path '/nix/store/lxcxwp8h4p7wm1iyh72h0d5bj6phc3z3-apr-1.7.4' from 'https://cache.nixos.org'...
copying path '/nix/store/r304lglsa9i2jy5hpbdz48z3j3x2n4a6-curl-8.4.0-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/wx6hgc4gz4h18gn7jbg16kbca6zqsyq6-perl5.38.0-CGI-4.59' from 'https://cache.nixos.org'...
copying path '/nix/store/mx4qdyryss83cv93hljaawa1zbn6lyfy-perl5.38.0-Mozilla-CA-20230821' from 'https://cache.nixos.org'...
copying path '/nix/store/60rbmhym8kqpr82kavm6gbqp3lqi7bqp-Package.resolved' from 'https://cache.nixos.org'...
copying path '/nix/store/k03jp2gzl8vhllf3kqmmbr59qfsdfz9q-Yams-f47ba48' from 'https://cache.nixos.org'...
copying path '/nix/store/3xxg9hgfplwfccrxlb9950q0mzf8n6fp-compiler-rt-libc-15.0.7' from 'https://cache.nixos.org'...
copying path '/nix/store/m5hvx64acckwyf99q9cykcpq95m21igk-perl5.38.0-FCGI-0.82' from 'https://cache.nixos.org'...
copying path '/nix/store/62nz2ihx8g8m3s9lipmzl8ffk13vzbax-perl5.38.0-Net-SSLeay-1.92' from 'https://cache.nixos.org'...
building '/nix/store/inwshmzdswk6qgg6v09vg280vxkvdk28-BitByteData-36df26f.drv'...
building '/nix/store/d935lf2zyla0s4xbvmyl9fqpa6l2pcq2-Perfect-INIParser-d5f7373.drv'...
building '/nix/store/4d88l6lq8bvrhcks9v03g55ps7a68ac3-SWCompression-0bddafb.drv'...
building '/nix/store/kdcgk6zhfshfn6wrkgizzifmalin6cfy-SwiftTreeSitter-a9b1335.drv'...
building '/nix/store/9pqvcvb7v7aaf29cn1i8xxb2jh1q3ns1-Yams-0d9ee7e.drv'...
building '/nix/store/4m3lyicq1hv67s9wxs0kpj7r09gflfdq-console-kit-2e3e205.drv'...
building '/nix/store/1njgv5q35bi3kbqaiwm2v0fh5v4mslz7-indexstore-db-89ec16c.drv'...
building '/nix/store/bg2k25g61a440a1jdkikn7axl98r6i1a-source.drv'...
building '/nix/store/dripamamblnjznh7ylywm74zx06dbn6z-sourcekit-lsp-6e63212.drv'...
building '/nix/store/d9hnj5m4xw8cjy8jsv2flr1963b0n87h-swift-argument-parser-8f4d275.drv'...
BitByteData> exporting https://github.com/tsolomko/BitByteData (rev 36df26fe4586b4f23d76cfd8b47076998343a2b2) into /nix/store/7264kkfs9k7r3i2b9pfvakflj70vq4mn-BitByteData-36df26f
BitByteData> Initialized empty Git repository in /nix/store/7264kkfs9k7r3i2b9pfvakflj70vq4mn-BitByteData-36df26f/.git/
Perfect-INIParser-d5f7373> exporting https://github.com/PerfectlySoft/Perfect-INIParser.git (rev d5f7373ea4affec9af8b9727f411b884288562f8) into /nix/store/gd1gs2j8iv9b2dk08gikbca5zpndddml-Perfect-INIParser-d5f7373
Perfect-INIParser-d5f7373> Initialized empty Git repository in /nix/store/gd1gs2j8iv9b2dk08gikbca5zpndddml-Perfect-INIParser-d5f7373/.git/
SWCompression> exporting https://github.com/JCWasmx86/SWCompression.git (rev 0bddafb341ef78d8f4fbbf3b0449de61e6b547f4) into /nix/store/9f4aj188kf2mks1q5ch1qx8bj7h070g7-SWCompression-0bddafb
SWCompression> Initialized empty Git repository in /nix/store/9f4aj188kf2mks1q5ch1qx8bj7h070g7-SWCompression-0bddafb/.git/
SwiftTreeSitter-a9b1335> exporting https://github.com/ChimeHQ/SwiftTreeSitter (rev a9b1335d5151b62b11f07599bd07d07dc5965de3) into /nix/store/g549j531lr2vlr766j9ymyv4d43asmxi-SwiftTreeSitter-a9b1335
SwiftTreeSitter-a9b1335> Initialized empty Git repository in /nix/store/g549j531lr2vlr766j9ymyv4d43asmxi-SwiftTreeSitter-a9b1335/.git/
Yams> exporting https://github.com/jpsim/Yams.git (rev 0d9ee7ea8c4ebd4a489ad7a73d5c6cad55d6fed3) into /nix/store/4kk7gdzrg5l74r4722yam6nfik1y5s18-Yams-0d9ee7e
Yams> Initialized empty Git repository in /nix/store/4kk7gdzrg5l74r4722yam6nfik1y5s18-Yams-0d9ee7e/.git/
console-kit> exporting https://github.com/vapor/console-kit.git (rev 2e3e205e8d7563d5c1a6f1c8992616d337f632e6) into /nix/store/6v0ibfw9fibjvb35rqkhljn28ihc91in-console-kit-2e3e205
console-kit> Initialized empty Git repository in /nix/store/6v0ibfw9fibjvb35rqkhljn28ihc91in-console-kit-2e3e205/.git/
indexstore-db> exporting https://github.com/apple/indexstore-db.git (rev 89ec16c2ac1bb271614e734a2ee792224809eb20) into /nix/store/gy2mw03dygpj6n3xp576bv3m7qh86bcz-indexstore-db-89ec16c
indexstore-db> Initialized empty Git repository in /nix/store/gy2mw03dygpj6n3xp576bv3m7qh86bcz-indexstore-db-89ec16c/.git/
copying path '/nix/store/dzazm7jjc7dc79fm1a506yx7b7xw1zl9-Yams-01835dc' from 'https://cache.nixos.org'...
copying path '/nix/store/k8x4mm2kfxvbr0hhhnwc63iz8ai6vnxg-Package.resolved' from 'https://cache.nixos.org'...
copying path '/nix/store/42qhdl85xn412kxc4azivasbyvhkij4f-clang-15.0.7' from 'https://cache.nixos.org'...
copying path '/nix/store/snwijqq5a5kimzdppsz42v2k4g4k61g2-cyrus-sasl-2.1.28' from 'https://cache.nixos.org'...
copying path '/nix/store/ll5kli0fi083y8lx3ka2h7xfqj8bhxnl-d3ef9cdf4871a58eddec7ff0e28fe611130da3f9.patch' from 'https://cache.nixos.org'...
copying path '/nix/store/fw1c2193cbmwigg5cmh4fjwy70jscswg-gtest-1.12.1' from 'https://cache.nixos.org'...
copying path '/nix/store/nxwhf776biv1r81lyvmav2ygfddhkikg-jq-1.7' from 'https://cache.nixos.org'...
copying path '/nix/store/hpf29bl41042vl577ymkxprxlbxg5vyk-jq-1.7-man' from 'https://cache.nixos.org'...
copying path '/nix/store/g59bnqx3j1dcjzgr96kgf4c9ijjvr8v3-jq-1.7-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/8zs25dlfhkzhp40yljqasdj4d5w6bbqn-oniguruma-6.9.9-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/ljn6af1x0wsfzirvq99pxrkmy8qnc39b-perl5.38.0-Authen-SASL-2.1700' from 'https://cache.nixos.org'...
swift-argument-parser> exporting https://github.com/apple/swift-argument-parser.git (rev 8f4d2753f0e4778c76d5f05ad16c74f707390531) into /nix/store/pgpbnzgdyfybm7cq5zr553mqwvrcw8mg-swift-argument-parser-8f4d275
sourcekit-lsp> exporting https://github.com/apple/sourcekit-lsp (rev 6e632129aa1b1b9f39f5b25d3b861fe71e0bfde9) into /nix/store/fh3qi56qqpsds2qidv72s388p1db7bi6-sourcekit-lsp-6e63212
copying path '/nix/store/hfn73jilzfivws4mxsmmljm5jn3apqli-perl5.38.0-CGI-Fast-2.16' from 'https://cache.nixos.org'...
sourcekit-lsp> Initialized empty Git repository in /nix/store/fh3qi56qqpsds2qidv72s388p1db7bi6-sourcekit-lsp-6e63212/.git/
swift-argument-parser> Initialized empty Git repository in /nix/store/pgpbnzgdyfybm7cq5zr553mqwvrcw8mg-swift-argument-parser-8f4d275/.git/
copying path '/nix/store/0c2frmw3c9ia9fqdby4rrh2hi2zxwa2w-perl5.38.0-IO-Socket-SSL-2.083' from 'https://cache.nixos.org'...
copying path '/nix/store/jjbbjykz8q3h30qqknzsynp3vj8fvq73-perl5.38.0-TermReadKey-2.38' from 'https://cache.nixos.org'...
copying path '/nix/store/723nxhrlckm4r9wvbbl41n30q3mjfdc1-pkgconf-2.0.3-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/0ffbs6igvbb5czslpr9j5z9jq53mhklh-openldap-2.6.6' from 'https://cache.nixos.org'...
copying path '/nix/store/5jl8qsskhv9i0hlp3h1gydzjp8qiz4ny-swift-5.8-man' from 'https://cache.nixos.org'...
copying path '/nix/store/cbphc9fjf9fycy4c6skdfvf8frfn9mll-swift-argument-parser-e394bf3' from 'https://cache.nixos.org'...
copying path '/nix/store/vaqffd3yv23sc1j4ymd1hdsjxbksfikj-swift-collections' from 'https://cache.nixos.org'...
copying path '/nix/store/140ss4hyk3lcc164n5lr2zhz2dh5awaw-swift-collections-937e904' from 'https://cache.nixos.org'...
copying path '/nix/store/c4zs33cpivbkyyyys91xz78p8f8s9jja-swift-crypto-75ec60b' from 'https://cache.nixos.org'...
copying path '/nix/store/p5iv7l68cs745mn6g3byd1x3hzh5gmss-swift-driver-5.8-src' from 'https://cache.nixos.org'...
copying path '/nix/store/vpgfpi65m5jwdgyw0dszy65lh0fdd0vz-abseil-cpp-20230125.3' from 'https://cache.nixos.org'...
copying path '/nix/store/dfbzrwn5y64fzhfvrfg1k9a59ch2biwg-compiler-rt-libc-15.0.7-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/025ifibhhq6f24sh9ib7sd5li2f7inpg-swift-5.8-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/k6fjidxfq1lz32lncy9by0455vpn5sh3-swift-driver-7cfe0c0' from 'https://cache.nixos.org'...
copying path '/nix/store/7lwi9yyy3hgg4zp2p0i5cwj7xhnyjm0r-muon-0.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/89dz8g2izv4xwlb7qazap9nrawfnmrm6-swift-llbuild-dccfc2e' from 'https://cache.nixos.org'...
copying path '/nix/store/jdlz3dxzb5a91dqphyipirvqkslv8c8k-perl5.38.0-Net-SMTP-SSL-1.04' from 'https://cache.nixos.org'...
Yams> fatal: invalid refspec '+refs/tags/5.0.6^{}'
copying path '/nix/store/nxr5q69f3x52rnv2pf00qad5qz25ghqy-jq-1.7-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/mj6v2nd1vxwl3ng32abxwbgvm4x5cwzz-swift-package-manager-5.8-src' from 'https://cache.nixos.org'...
copying path '/nix/store/jz759bsg1fad6zcjp58g1jg3b3jjw9qn-apr-util-1.6.3' from 'https://cache.nixos.org'...
source> trying https://github.com/JCWasmx86/Swift-MesonLSP/archive/v3.1.3.tar.gz
source>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
source>                                  Dload  Upload   Total   Spent    Left  Speed
source>   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
copying path '/nix/store/xqrcdyhkzj7cp649m36g78wp07b9pbp6-swift-system' from 'https://cache.nixos.org'...
copying path '/nix/store/1iniilvzay99l032ydbxzjd9mdd43a5m-swift-tools-support-core-ac4871e' from 'https://cache.nixos.org'...
copying path '/nix/store/zcpq1fivdd131gshg58m4cyq7fwqr3j8-git-2.42.0' from 'https://cache.nixos.org'...
copying path '/nix/store/cnjzn5xv67r8gzp0kbq03i3sd9j0q27i-serf-1.3.10' from 'https://cache.nixos.org'...
copying path '/nix/store/bpjd8324a6qj34zxhn5asgvi8bpm9bb2-jq-1.7-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/h55qdwdj71piic6g2l0hxrwmlj8c4map-utf8proc-2.9.0' from 'https://cache.nixos.org'...
copying path '/nix/store/hks7d5aa2wcw0nbh67g0s7z3dq5vvxva-jq-1.7-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/jabkx0c1yyhbr2kp2pykqfczyqx6x07x-re2-2023-11-01' from 'https://cache.nixos.org'...
Yams> remote: Enumerating objects: 113, done.
Yams> remote: Counting objects: 100% (113/113), done.
Yams> remote: Compressing objects: 100% (102/102), done.
SWCompression> remote: Enumerating objects: 201, done.
Perfect-INIParser-d5f7373> remote: Enumerating objects: 16, done.
Perfect-INIParser-d5f7373> remote: Counting objects: 100% (16/16), done.
Perfect-INIParser-d5f7373> remote: Compressing objects: 100% (11/11), done.
BitByteData> remote: Enumerating objects: 63, done.
Perfect-INIParser-d5f7373> remote: Total 16 (delta 3), reused 10 (delta 2), pack-reused 0
Perfect-INIParser-d5f7373> Unpacking objects: 100% (16/16), 10.20 KiB | 3.40 MiB/s, done.
SwiftTreeSitter-a9b1335> remote: Enumerating objects: 121, done.
BitByteData> remote: Counting objects: 100% (63/63), done.
SWCompression> remote: Counting objects: 100% (201/201), done.
Perfect-INIParser-d5f7373> From https://github.com/PerfectlySoft/Perfect-INIParser
Perfect-INIParser-d5f7373>  * branch            HEAD       -> FETCH_HEAD
SwiftTreeSitter-a9b1335> remote: Counting objects: 100% (121/121), done.
BitByteData> remote: Compressing objects: 100% (42/42), done.
Perfect-INIParser-d5f7373> Switched to a new branch 'fetchgit'
SwiftTreeSitter-a9b1335> remote: Compressing objects: 100% (87/87), done.
SWCompression> remote: Compressing objects: 100% (192/192), done.
Perfect-INIParser-d5f7373> removing `.git'...
BitByteData> remote: Total 63 (delta 24), reused 26 (delta 19), pack-reused 0
BitByteData> Unpacking objects: 100% (63/63), 53.99 KiB | 1.54 MiB/s, done.
BitByteData> From https://github.com/tsolomko/BitByteData
BitByteData>  * branch            master     -> FETCH_HEAD
BitByteData>  * [new branch]      master     -> origin/master
BitByteData> Switched to a new branch 'fetchgit'
SwiftTreeSitter-a9b1335> remote: Total 121 (delta 26), reused 74 (delta 23), pack-reused 0
SwiftTreeSitter-a9b1335> Receiving objects: 100% (121/121), 76.04 KiB | 2.30 MiB/s, done.
SwiftTreeSitter-a9b1335> Resolving deltas: 100% (26/26), done.
console-kit> remote: Enumerating objects: 103, done.
console-kit> remote: Counting objects: 100% (103/103), done.
SwiftTreeSitter-a9b1335> From https://github.com/ChimeHQ/SwiftTreeSitter
SwiftTreeSitter-a9b1335>  * tag               0.7.2      -> FETCH_HEAD
swift-argument-parser> remote: Enumerating objects: 234, done.
console-kit> remote: Compressing objects: 100% (97/97), done.
SwiftTreeSitter-a9b1335> Switched to a new branch 'fetchgit'
swift-argument-parser> remote: Counting objects: 100% (234/234), done.
BitByteData> removing `.git'...
SWCompression> remote: Total 201 (delta 32), reused 52 (delta 6), pack-reused 0
SWCompression> Receiving objects: 100% (201/201), 203.58 KiB | 3.28 MiB/s, done.
SWCompression> Resolving deltas: 100% (32/32), done.
SWCompression> From https://github.com/JCWasmx86/SWCompression
SWCompression>  * branch            HEAD       -> FETCH_HEAD
SwiftTreeSitter-a9b1335> Submodule 'tree-sitter' (https://github.com/tree-sitter/tree-sitter.git) registered for path 'tree-sitter'
SwiftTreeSitter-a9b1335> Submodule 'tree-sitter-swift' (https://github.com/alex-pinkus/tree-sitter-swift) registered for path 'tree-sitter-swift'
SwiftTreeSitter-a9b1335> Cloning into '/nix/store/g549j531lr2vlr766j9ymyv4d43asmxi-SwiftTreeSitter-a9b1335/tree-sitter'...
Yams> remote: Total 113 (delta 4), reused 42 (delta 0), pack-reused 0
Yams> Receiving objects: 100% (113/113), 661.79 KiB | 4.04 MiB/s, done.
Yams> Resolving deltas: 100% (4/4), done.
console-kit> remote: Total 103 (delta 12), reused 47 (delta 4), pack-reused 0
console-kit> Receiving objects: 100% (103/103), 61.06 KiB | 1.74 MiB/s, done.
console-kit> Resolving deltas: 100% (12/12), done.
swift-argument-parser> remote: Compressing objects: 100% (214/214), done.
SWCompression> Switched to a new branch 'fetchgit'
console-kit> From https://github.com/vapor/console-kit
console-kit>  * tag               4.11.0     -> FETCH_HEAD
console-kit> Switched to a new branch 'fetchgit'
Yams> From https://github.com/jpsim/Yams
Yams>  * branch            0d9ee7ea8c4ebd4a489ad7a73d5c6cad55d6fed3 -> FETCH_HEAD
source> 100  883k    0  883k    0     0  1342k      0 --:--:-- --:--:-- --:--:-- 1342k
indexstore-db> remote: Enumerating objects: 445, done.
SWCompression> Submodule 'Tests/Test Files' (https://github.com/tsolomko/SWCompression-Test-Files.git) registered for path 'Tests/Test Files'
source> unpacking source archive /build/v3.1.3.tar.gz
indexstore-db> remote: Counting objects: 100% (445/445), done.
sourcekit-lsp> remote: Enumerating objects: 376, done.
sourcekit-lsp> remote: Counting objects: 100% (376/376), done.
SWCompression> Cloning into '/nix/store/9f4aj188kf2mks1q5ch1qx8bj7h070g7-SWCompression-0bddafb/Tests/Test Files'...
console-kit> removing `.git'...
Yams> Switched to a new branch 'fetchgit'
Yams> removing `.git'...
indexstore-db> remote: Compressing objects: 100% (406/406), done.
sourcekit-lsp> remote: Compressing objects: 100% (325/325), done.
swift-argument-parser> remote: Total 234 (delta 44), reused 60 (delta 12), pack-reused 0
swift-argument-parser> Receiving objects: 100% (234/234), 686.74 KiB | 3.32 MiB/s, done.
swift-argument-parser> Resolving deltas: 100% (44/44), done.
sourcekit-lsp> remote: Total 376 (delta 86), reused 135 (delta 40), pack-reused 0
sourcekit-lsp> Receiving objects: 100% (376/376), 406.21 KiB | 4.42 MiB/s, done.
sourcekit-lsp> Resolving deltas: 100% (86/86), done.
sourcekit-lsp> From https://github.com/apple/sourcekit-lsp
sourcekit-lsp>  * branch            refs/pull/918/head -> FETCH_HEAD
swift-argument-parser> From https://github.com/apple/swift-argument-parser
swift-argument-parser>  * tag               1.2.3      -> FETCH_HEAD
copying path '/nix/store/07haalw3zm3yl0rbphvrg59fl8ain36k-clang-wrapper-15.0.7' from 'https://cache.nixos.org'...
indexstore-db> remote: Total 445 (delta 21), reused 140 (delta 11), pack-reused 0
indexstore-db> Receiving objects: 100% (445/445), 1015.19 KiB | 5.34 MiB/s, done.
indexstore-db> Resolving deltas: 100% (21/21), done.
indexstore-db> From https://github.com/apple/indexstore-db
indexstore-db>  * branch            release/5.10 -> FETCH_HEAD
indexstore-db>  * [new branch]      release/5.10 -> origin/release/5.10
sourcekit-lsp> Switched to a new branch 'fetchgit'
sourcekit-lsp> removing `.git'...
swift-argument-parser> Switched to a new branch 'fetchgit'
swift-argument-parser> removing `.git'...
indexstore-db> Switched to a new branch 'fetchgit'
indexstore-db> removing `.git'...
copying path '/nix/store/yzxn4qg5ryy56nc02gcmkb3qwlk2ljl6-subversion-1.14.2' from 'https://cache.nixos.org'...
copying path '/nix/store/mrlrz1wc1syvbm095alcwkjphyzr40sw-python3.11-fb-re2-1.0.7' from 'https://cache.nixos.org'...
warning: Ignoring setting 'auto-allocate-uids' because experimental feature 'auto-allocate-uids' is not enabled
warning: Ignoring setting 'impure-env' because experimental feature 'configurable-impure-env' is not enabled
building '/nix/store/k38gzqhdk0p15m7ngj2sbjj36gs4lxfl-Package.resolved.drv'...
SwiftTreeSitter-a9b1335> remote: Enumerating objects: 490, done.
SwiftTreeSitter-a9b1335> remote: Counting objects: 100% (490/490), done.
SWCompression> remote: Enumerating objects: 168, done.
SWCompression> remote: Counting objects: 100% (168/168), done.
SWCompression> remote: Compressing objects: 100% (167/167), done.
SWCompression> remote: Total 168 (delta 0), reused 161 (delta 0), pack-reused 0
SWCompression> Receiving objects: 100% (168/168), 24.34 KiB | 4.87 MiB/s, done.
SwiftTreeSitter-a9b1335> remote: Compressing objects: 100% (450/450), done.
copying path '/nix/store/ngi1n2d17y5g6pr410kacl6y7vif0wnv-stdenv-linux' from 'https://cache.nixos.org'...
SWCompression> Submodule path 'Tests/Test Files': checked out '83a2bcadb7efb27c1835a2b1324b1a0617bcf901'
SWCompression> removing `.git'...
error: hash mismatch in fixed-output derivation '/nix/store/4d88l6lq8bvrhcks9v03g55ps7a68ac3-SWCompression-0bddafb.drv':
         specified: sha256-LHIa8VBSItyfIXkMQgK49r2VjnToPqQqummjw0PPMqs=
            got:    sha256-yz2f6OpbZv9fwiY0bd2SrImestoWtpss18sWZ42RbSU=
error: 1 dependencies of derivation '/nix/store/9iharryq2h7lzc65hafz3aiv7h0rghp1-swift-mesonlsp-3.1.3.drv' failed to build

@hcsch
Copy link
Contributor

hcsch commented Dec 20, 2023

I've also just now tried to get the same generated files with swiftpm2nix as you by making a fresh clone of Swift-MesonLSP and checking out v3.1.3, but I still get the diff I posted earlier.

To generate the files I ran swift package resolve && swiftpm2nix in the following dev-shell on an x86_64 system:

{
  inputs = {
    nixpkgs.url = "git+file:///path/to/nixpkgs/";
    flake-utils.url = "github:numtide/flake-utils";
  };
  outputs = { self, nixpkgs, flake-utils, }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
      in
      {
        devShells.default = pkgs.mkShell.override { stdenv = pkgs.swift.stdenv; } {
          buildInputs = with pkgs;[
            swift
            swiftpm
            swiftpm2nix
            swiftPackages.Foundation
          ];
        };
      });
}

The local nixpkgs clone is checked out on the swift-mesonlsp-merge branch created as described above.

Not sure if this is the recommended way to do this, but this is the first way that I tried that worked, after digging around some about how to get swift package to work at all (without complaining about there being no Foundation module).

@paveloom
Copy link
Member Author

Okay, so

  1. Swift's package manager caches packages and retrieves these packages from the cache when appropriate
  2. Some of the dependencies of Swift-MesonLSP are not pinned to a specific commit
  3. swift package resolve doesn't retrieve updates to packages without a pinned commit

That's why I was getting the same hashes. I pruned Swift's package manager's cache with swift package purge-cache, and then got the new hashes with swift package resolve && swiftpm2nix. Note that I may have retrieved newer versions of some of the dependencies (e.g., hashes for swift-driver and swift-package-manager are different from yours).

Nixpkgs will cache Swift's packages after this pull request is merged, so this shouldn't be a problem. However, pinning the dependencies to a commit upstream would be beneficial.

@hcsch
Copy link
Contributor

hcsch commented Dec 20, 2023

Thanks for clearing that up. I guess I should expect not quite guaranteed the same inputs made ok by caching a bit more.

@paveloom paveloom marked this pull request as ready for review January 14, 2024 09:59
@paveloom paveloom changed the title swift-mesonlsp: init at 3.1.3 swift-mesonlsp: init at 3.1.4 Mar 7, 2024
@traxys
Copy link
Contributor

traxys commented Mar 13, 2024

Version 4.0.2 re-written in C++ was just recently released :/

@paveloom paveloom changed the title swift-mesonlsp: init at 3.1.4 mesonlsp: init at 4.1.0 Mar 15, 2024
@paveloom paveloom changed the title mesonlsp: init at 4.1.0 mesonlsp: init at 4.1.2 Mar 22, 2024
@paveloom paveloom force-pushed the swift-mesonlsp branch 2 times, most recently from 2d036d0 to 1e69547 Compare March 24, 2024 08:07
@paveloom paveloom changed the title mesonlsp: init at 4.1.2 mesonlsp: init at 4.1.3 Mar 24, 2024
@traxys
Copy link
Contributor

traxys commented Mar 30, 2024

Result of nixpkgs-review pr 269042 run on x86_64-linux 1

1 package built:
  • mesonlsp

@paveloom paveloom changed the title mesonlsp: init at 4.1.3 mesonlsp: init at 4.1.8 Apr 5, 2024
pkgs/by-name/me/mesonlsp/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/me/mesonlsp/package.nix Outdated Show resolved Hide resolved
@paveloom paveloom force-pushed the swift-mesonlsp branch 2 times, most recently from 45192f3 to b77b6b3 Compare May 3, 2024 15:01
@paveloom paveloom changed the title mesonlsp: init at 4.1.8 mesonlsp: init at 4.2.2 May 4, 2024
@paveloom paveloom force-pushed the swift-mesonlsp branch 2 times, most recently from 19145fe to 97382d5 Compare June 3, 2024 18:15
pkgs/by-name/me/mesonlsp/package.nix Outdated Show resolved Hide resolved
Copy link
Contributor

@drupol drupol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants