Commit Graph

22 Commits

Author SHA1 Message Date
Jade Lovelace
ea4eb0d574 nix-doc: allow building without plugin
In certain situations, such as running development builds of Nix that
might break API, it can be undesirable to have a Nix dependency for
nix-doc, and there is still substantial useful functionality (ctags,
search) exposed in its binaries. Thus let's make it possible to turn off
the plugin build.
2024-03-16 16:20:20 -07:00
Jade Lovelace
3c5e44162a nix-doc: 0.6.4 -> 0.6.5
Update nix-doc to be API compatible with Nix 2.20 when that is released.

cc https://github.com/NixOS/nixpkgs/pull/285264
2024-02-03 21:36:19 -08:00
Jade Lovelace
8397b95db8 nix-doc: 0.6.2 -> 0.6.4
This fixes #270484, which is an issue caused by the tags file not being
sorted by all the fields, creating a race condition where sometimes the
test suite could spuriously fail due to differently ordered output.

Also fixes mystery build failures on darwin.

See also: https://github.com/lf-/nix-doc/issues/24
2023-12-03 15:39:16 -08:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
Jade Lovelace
27b3d62211 nix-doc: 0.6.0 -> 0.6.2
NixCon edition: "wow these ctags could use to be sorted better". So they
now sort a = x first before inherit a;
2023-09-09 18:19:13 +02:00
Jade Lovelace
90f5c4ea8e nix-doc: 0.5.10 -> 0.6.0
Adds a max-cardinality filter to the tags file to remove extremely
common tags. This reduces the tags file size for nixpkgs from 170MB (!)
to 28MB on the default max-cardinality of 500.
2023-08-29 17:37:13 -07:00
Jade Lovelace
2501addf2d nix-doc: 0.5.9 -> 0.5.10
Fixes https://github.com/NixOS/nixpkgs/issues/237637 and its entire
class of problems by making nix-doc save the version it was built for in
the library and then bail harmlessly if it is mismatched.

```
dev/nixpkgs2 » nix-build -A nix-doc
/nix/store/wv9nm47lplyz4b0pa4549zwrnsp3zvaf-nix-doc-0.5.10
dev/nixpkgs2 » nix-build -A nixVersions.nix_2_14 -o result2
/nix/store/ka0ygdzl9jd0j77y7ls6shngdz9vvqpn-nix-2.14.1
dev/nixpkgs2 » ./result2/bin/nix --plugin-files ./result/lib/libnix_doc_plugin.so repl
nix-doc warning: mismatched nix version, not loading
Welcome to Nix 2.14.1. Type :? for help.

nix-repl>
```
2023-08-15 15:19:07 +10:00
Jade Lovelace
b59150e99c nix-doc: 0.5.8 -> 0.5.9
Fixes compatibility with Nix 2.17 and dev process wise, improves our
assurance that we are still compatible with older Nix.
2023-08-07 09:20:41 +10:00
Jade Lovelace
21eaf070b2 nix-doc: 0.5.7 -> 0.5.8
Fixes Nix 2.14 build support. Checked to build against both Nix 2.13 and
Nix 2.14 on x86_64-linux.

Related: #218889
2023-03-02 10:19:31 +10:00
Jade Lovelace
676c80dcc2 nix-doc: 0.5.6 -> 0.5.7 2023-01-19 12:56:35 +10:00
Jade Lovelace
c7e7050dad nix-doc: 0.5.5 -> 0.5.6 2023-01-18 13:27:26 +10:00
Jade Lovelace
651e6fcb16 nix-doc: 0.5.4->0.5.5 2022-06-15 23:10:42 -07:00
Jade Lovelace
4729707e40 nix-doc: 0.5.3->0.5.4 to support nix 2.9.0
Related: https://github.com/NixOS/nixpkgs/pull/175541

Thanks Artturin for the notification.
2022-05-31 00:59:56 -07:00
Jade Lovelace
cd3c6e8bb4 nix-doc: 0.5.2->0.5.3
I fixed Nix 2.6+ support upstream
2022-04-06 15:15:17 -07:00
Jade Lovelace
56322b217e nix-doc: 0.5.1 -> 0.5.2
Fixes nix >= 2.4
2021-12-25 09:22:03 -08:00
Jade
760e7e14b3 nix-doc: Fix lint: the license is LGPL3+ 2021-07-09 11:17:55 -07:00
Jade
29793d92de nix-doc: 0.5.0 -> 0.5.1
Now, `inherit a b;` makes tags for `a` and `b`.
2021-07-08 20:26:20 -07:00
Jade
5573210d87 nix-doc: 0.3.3 -> 0.5.0
This release adds a ctags implementation to generate tags for Nix
script! 🎉
2021-07-03 19:42:47 -07:00
Daniël de Kok
85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00
Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
lf-
5b494c6355 nix-doc: init at 0.3.3 2020-08-12 14:23:24 -07:00