Commit Graph

22 Commits

Author SHA1 Message Date
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
R. Ryantm
d807f03f74 quick-lint-js: 3.1.0 -> 3.2.0 2024-03-10 06:08:31 +00:00
R. Ryantm
76951b6fb1 quick-lint-js: 3.0.0 -> 3.1.0 2024-02-05 19:31:46 +00:00
Matthew "strager" Glazar
3799f9d63a quick-lint-js: 2.19.0 -> 3.0.0 2024-01-01 19:11:52 -05:00
Matthew "strager" Glazar
6daf525c9d quick-lint-js: support cross compiling
quick-lint-js' build system supports cross compiling, but it's not
automatic.

Prior to quick-lint-js version 2.13, cross compiling with Nix works
because some build-time tools are optional. These build-time tools need
a compiler from buildPackages.stdenv. Version 2.13 made these build-time
tools required.

Refactor the quick-lint-js package to use quick-lint-js' cross
compilation support. This fixes cross compilation with Nix.

Upstream documentation for cross compiling:
https://quick-lint-js.com/contribute/build-from-source/cross-compiling/

Testing:

    # Test Linux x86_64 cross compiling for Linux AArch64:
    x86$ uname -a
    Linux strapurp 6.2.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct  6 10:23:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
    x86$ nix-shell -p pkgsCross.aarch64-multiplatform.quick-lint-js --run 'file $(which quick-lint-js)'
    /nix/store/3rdxhjxdmiwz1zg2mi477ysc9nb7jsqx-quick-lint-js-aarch64-unknown-linux-gnu-2.17.0/bin/quick-lint-js: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /nix/store/5gdh4mp8rwliq4s33gwcpwzqvsb2xpzr-glibc-aarch64-unknown-linux-gnu-2.38-23/lib/ld-linux-aarch64.so.1, for GNU/Linux 3.10.0, not stripped

    # Test the binary on a Linux AArch64 machine:
    x86$ nix --extra-experimental-features nix-command copy --to ssh-ng://parallels@192.168.4.144 /nix/store/3rdxhjxdmiwz1zg2mi477ysc9nb7jsqx-quick-lint-js-aarch64-unknown-linux-gnu-2.17.0/
    arm$ /nix/store/3rdxhjxdmiwz1zg2mi477ysc9nb7jsqx-quick-lint-js-aarch64-unknown-linux-gnu-2.17.0/bin/quick-lint-js --version
    quick-lint-js version 2.17.0
2023-11-15 22:00:52 -05:00
Matthew "strager" Glazar
852625876d quick-lint-js: 2.16.0 -> 2.17.0 2023-10-25 21:11:40 -04:00
R. Ryantm
29b3496094 quick-lint-js: 2.15.0 -> 2.16.0 2023-09-18 12:16:13 +00:00
R. Ryantm
bb959b8c49 quick-lint-js: 2.14.0 -> 2.15.0 2023-07-26 11:59:07 +00:00
R. Ryantm
5f2ffeeef3 quick-lint-js: 2.12.0 -> 2.14.0 2023-05-27 09:42:17 +00:00
Matthew "strager" Glazar
f004e9779a quick-lint-js: 2.11.0 -> 2.12.0 2023-03-08 16:56:51 -08:00
Matthew "strager" Glazar
fad1382569 quick-lint-js: 2.9.0 -> 2.11.0 2023-01-31 17:14:30 -08:00
Bobby Rong
155a919233
Merge pull request #189943 from strager/qljs-2.9.0
quick-lint-js: 2.6.0 -> 2.9.0
2022-09-18 20:53:57 +08:00
Matthew "strager" Glazar
347f44d672 quick-lint-js: work around CMake bug causing missing libstdc++.so.6
quick-lint-js fails to run after installation:

    $ quick-lint-js --version
    quick-lint-js: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Cause: https://github.com/NixOS/nixpkgs/pull/108496#issuecomment-1192083379

Work around this error.
2022-09-06 19:53:11 -07:00
Matthew "strager" Glazar
1ad9e312b4 quick-lint-js: 2.6.0 -> 2.9.0 2022-09-05 18:56:27 -07:00
Matthew "strager" Glazar
ad692ef645 quick-lint-js: 2.5.0 -> 2.6.0 2022-06-15 18:42:06 -07:00
Matthew "strager" Glazar
5dfdf69ee2 quick-lint-js: 2.4.0 -> 2.5.0 2022-05-23 15:38:17 -07:00
Artturin
f1c7f19e49 treewide: testVersion -> testers.testVersion 2022-04-22 16:24:27 +03:00
Matthew "strager" Glazar
0fd88ab06a quick-lint-js: 2.3.1 -> 2.4.0 2022-04-15 18:25:55 -07:00
R. Ryantm
3f73270a62 quick-lint-js: 2.3.0 -> 2.3.1
add testVersion
2022-04-04 07:50:25 +03:00
Matthew "strager" Glazar
a816bccad9 quick-lint-js: 2.2.0 -> 2.3.0 2022-02-24 21:06:46 -08:00
Matthew "strager" Glazar
c057c8b172 quick-lint-js: 2.1.0 -> 2.2.0 2022-02-17 22:12:50 -08:00
Victor Freire
fe1bcec602 quick-lint-js: init at 2.1.0 2022-02-15 21:15:01 -03:00