Commit Graph

90 Commits

Author SHA1 Message Date
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
h7x4
b5b6abac33 nixos/tests/dictd: init 2025-10-17 17:36:32 +09:00
mivorasu
ee0866bddd treewide: conform descriptions to the standards 2025-07-28 04:39:00 +00:00
Wolfgang Walther
c8d2eca963 .editorconfig: move subfolder config into separate .editorconfig files
This avoids paths in the top-level file getting out-of-sync, because the
.editorconfig files would be moved together with the files they target.
2025-05-07 20:01:35 +02:00
Nikolay Korotkiy
aba1241f7f dict: 1.13.1 → 1.13.3 2024-12-22 19:13:35 +04:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
piegames
68927918d0 treewide: Fix indentation in strings
The indentation stripping semantics of strings are fairly bad and have a
few gotchas where the resulting string has not the intended indentation.
This commit fixes most if not all such instances in Nixpkgs.

I tried to strive a balance between keeping the diff small and
reformatting/refactoring the code to look better. In general,
reformatting should be left to Nixfmt.

Note that this causes a lot of rebuilds by design. All changes need to
be thoroughly vetted and reviewed for correctness. There is no automatic
way to prove correctness.

List of files to fix generated by running
https://gerrit.lix.systems/c/lix/+/2092 on Nixpkgs and looking at the
warnings.
2024-10-22 21:36:42 +02:00
Ngô Ngọc Đức Huy
553095afaa Update deprecated UTF8 option for dictfmt 2024-09-13 11:50:35 +02:00
Ngô Ngọc Đức Huy
515f8b5e22 dictdDBs.wiktionary: update to 20240901 2024-09-13 11:50:35 +02:00
Weijia Wang
561bb69e32 dict: fix build on darwin 2024-05-30 11:43:16 +02:00
Nikolay Korotkiy
b2897ae170 dict: enable on darwin 2023-09-10 23:28:35 +04:00
Nikolay Korotkiy
cd4b962916 libmaa: enable on darwin 2023-09-10 23:27:12 +04:00
Bjørn Forsman
2fe5772bfa dictDBCollector: fix reproducibility with faketime 2023-06-23 20:01:34 +02:00
Bjørn Forsman
e65dc530ba dictdDBs.wordnet: fix reproducibility with faketime 2023-06-23 20:01:34 +02:00
Bjørn Forsman
fe5f8b9c47 dictdDBs.wiktionary: fix reproducibility with faketime 2023-06-23 20:01:34 +02:00
Alyssa Ross
894d2b8107 dictdDBs.epo2eng: init at 1.0.1 2023-06-14 14:55:56 +00:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Barry Fishman
9287d37501 dictdDbs.wiktionary: use python3
In pkgs/servers/dict:
  * wiktionary/default.nix: change python2 -> python3
  * wiktionary/latest_version.py: decodes('utf-8') no longer needed
  * wiktionary/wiktionary2dict.py: 'import codesc' no longer needed
2023-01-09 15:35:23 -05:00
Lucas Hoffmann
01d76ca6c1 dictdDBs.wordnet: fix integer devision in python3 2023-01-09 20:40:28 +01:00
Lucas Hoffmann
56d90f3fef dictdDBs.wordnet: use open() in python3 instead of file() from python2 2023-01-09 20:33:30 +01:00
Lucas Hoffmann
b5c88c02d1 dictdDBs.wordnet: use python3 2023-01-09 20:26:36 +01:00
Lucas Hoffmann
f3e33d3ae6 dictdDBs.wordnet: convert python script to python 3 2023-01-09 20:18:54 +01:00
M. Ian Graham
a748f63ca7 dictd: add dictdDBs.eng2jpn and dictdDBs.jpn2eng 2022-10-06 06:16:59 +09:00
libjared
104a92fe77 dictd: remove deprecated enable-dictorg flag
This flag was removed in 1.13.0 and is now unrecognized
2022-05-10 21:19:11 -04:00
R. Ryantm
3c97a65aa8 dictdDBs.wiktionary: 20220301 -> 20220420 2022-05-01 16:58:49 +00:00
R. Ryantm
4bbf1a90c4 dictdDBs.wiktionary: 20210920 -> 20220301 2022-03-25 23:25:06 +00:00
R. Ryantm
69df9ef318 dict: 1.13.0 -> 1.13.1 2021-12-11 11:01:35 +00:00
R. RyanTM
435b3894c4 dictdDBs.wiktionary: 20210901 -> 20210920 2021-09-23 05:34:11 +00:00
R. RyanTM
325d5e783d dictdDBs.wiktionary: 20210201 -> 20210901 2021-09-11 15:52:17 +00:00
Andrey Golovizin
ca06b2e124 dictd-dbs: add dontUnpack = true
Fixes the "variable $src or $srcs should point to the source" error.
2021-08-04 10:10:17 +02:00
Ben Siraphob
ab04fe7bc2 Merge pull request #131393 from Stunkymonkey/dictd-dbs-phases
dict-dbs: deprecate phases
2021-07-27 21:13:58 +07:00
Sandro Jäckel
516627915f wiktionary: remove builder.sh 2021-07-27 10:51:14 +02:00
Felix Buehler
9b6c409fb4 dict-dbs: fmt 2021-07-25 00:36:13 +02:00
Felix Buehler
ca9212b56c dict-dbs: deprecate phases 2021-07-25 00:36:13 +02:00
Sandro
d5bd34ebf2 treewide: convert phases that contain ":" to dont* = true (#130500) 2021-07-18 23:42:48 +02:00
Frederik Rietdijk
2b92f2b259 dictdDBs.wordnet: stay with python2 2021-03-25 12:16:29 +01:00
Frederik Rietdijk
317384aa90 wiktionary: stay with python2 2021-03-25 12:14:44 +01:00
Alyssa Ross
f6f8170a60 dictdDBs.wiktionary: add updateScript 2021-02-11 16:49:09 +00:00
Alyssa Ross
c7c77ab029 dictdDBs.wiktionary: improve expression
* Fix style
* Move builder.sh into its own file
* Use standard "src" name for source
* Add myself as maintainer
* Add license
2021-02-11 16:47:20 +00:00
Alyssa Ross
e72f99c1c0 dictdDBs.wiktionary: 20161001 -> 20210201 2021-02-11 16:18:11 +00:00
Ben Siraphob
872973d7d1 pkgs/servers: stdenv.lib -> lib 2021-01-15 14:24:03 +07: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
Peter Hoeg
1340776965 dict: look for config in /etc (#94050)
Previously it was impossible to configure dict/dictd system-wide as it
was looking for a config file in the nix store. Instead use /etc so it
becomes usable.
2020-07-28 18:12:20 +02:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
R. RyanTM
002b16d965 dict: 1.12.1 -> 1.13.0 2020-04-05 12:14:16 +00:00
Frederik Rietdijk
5f4734b1dd Merge remote-tracking branch 'upstream/gcc-8' into staging-next
Earlier the gcc8 branch was merged instead of the gcc-8 branch (note the dash)...
2019-09-08 20:44:26 +02:00
Franz Pletz
de85797565 Merge remote-tracking branch 'origin/master' into gcc-8 2019-09-03 22:15:07 +02:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Robin Gloster
0cd9da1295 libmaa: fix build with gcc8 2019-06-17 07:25:56 +02:00