Commit Graph

27 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Weijia Wang
33b1ba774c dico: disable tests on darwin 2023-12-05 00:48:31 +01:00
Franz Pletz
fd1bcb107a
dico: fix build with libxcrypt 2022-10-09 18:10:43 +02:00
Nikolay Korotkiy
a5f19b5fa8
dico: fix cross-compilation 2021-11-20 22:12:40 +03:00
Fabián Heredia Montiel
ca75c34190 dico: python2 → python3 2021-10-14 16:36:29 -05:00
Nikolay Korotkiy
d84f604077
dico: enable on darwin 2021-06-03 17:53:30 +03:00
R. RyanTM
1c65a509fb dico: 2.10 -> 2.11 2021-04-29 01:02:40 -04:00
Frederik Rietdijk
f2f007073c dico: stay with python2 2021-03-25 12:12:23 +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
R. RyanTM
6b4021489b dico: 2.9 -> 2.10 2020-09-07 16:49:32 +00:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Will Dietz
53408bddd5 dico: 2.7 -> 2.9
2.9: http://lists.gnu.org/archive/html/info-gnu/2019-04/msg00009.html
2.8: http://lists.gnu.org/archive/html/info-gnu/2019-02/msg00011.html

also: pname, enable tests, remove stale TODO
2019-04-24 09:25:58 -05:00
c0bw3b
0498ccd076 Treewide: use HTTPS on GNU domains
HTTP -> HTTPS for :
- http://gnu.org/
- http://www.gnu.org/
- http://elpa.gnu.org/
- http://lists.gnu.org/
- http://gcc.gnu.org/
- http://ftp.gnu.org/ (except in fetchurl mirrors)
- http://bugs.gnu.org/
2018-12-02 15:51:59 +01:00
R. RyanTM
fc2a97dea9 dico: 2.6 -> 2.7
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/dico/versions
2018-10-03 13:00:39 -07:00
Daiderd Jordan
709a828e71
dico: mark linux only.
Never built successfully.

    Undefined symbols for architecture x86_64:
      "_rpl_strerror", referenced from:
          _default_print_diag in libgrecs.a(diag.o)
          _grecs_symtab_strerror in libgrecs.a(symtab.o)
          _parse_inet in libgrecs.a(sockaddr.o)
    ld: symbol(s) not found for architecture x86_64

/cc ZHF #45961
2018-09-20 22:19:56 +02:00
R. RyanTM
b8b71e26ed dico: 2.5 -> 2.6 (#45837)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
dico
2018-09-01 14:08:38 +02:00
Ryan Mulligan
7ddb23ba2c dico: 2.4 -> 2.5
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/gd29d0p765hn7vy9772x64f9i3nfi3lw-dico-2.5/bin/dicod -h` got 0 exit code
- ran `/nix/store/gd29d0p765hn7vy9772x64f9i3nfi3lw-dico-2.5/bin/dicod --help` got 0 exit code
- ran `/nix/store/gd29d0p765hn7vy9772x64f9i3nfi3lw-dico-2.5/bin/dicod -V` and found version 2.5
- ran `/nix/store/gd29d0p765hn7vy9772x64f9i3nfi3lw-dico-2.5/bin/dicod --version` and found version 2.5
- ran `/nix/store/gd29d0p765hn7vy9772x64f9i3nfi3lw-dico-2.5/bin/dico -h` got 0 exit code
- ran `/nix/store/gd29d0p765hn7vy9772x64f9i3nfi3lw-dico-2.5/bin/dico --help` got 0 exit code
- ran `/nix/store/gd29d0p765hn7vy9772x64f9i3nfi3lw-dico-2.5/bin/dico help` got 0 exit code
- ran `/nix/store/gd29d0p765hn7vy9772x64f9i3nfi3lw-dico-2.5/bin/dico -V` and found version 2.5
- ran `/nix/store/gd29d0p765hn7vy9772x64f9i3nfi3lw-dico-2.5/bin/dico --version` and found version 2.5
- found 2.5 with grep in /nix/store/gd29d0p765hn7vy9772x64f9i3nfi3lw-dico-2.5
- found 2.5 in filename of file in /nix/store/gd29d0p765hn7vy9772x64f9i3nfi3lw-dico-2.5
2018-02-25 20:01:45 -08:00
Lancelot SIX
3bfed00e64
dico: 2.3 -> 2.4 2016-11-22 10:02:06 +01:00
Franz Pletz
bfe1c24eac dico: disable format hardening 2016-08-24 20:16:48 +02:00
Lancelot SIX
3e6c2a55a7 dico: 2.2 -> 2.3 (#17672)
See http://lists.gnu.org/archive/html/info-gnu/2016-08/msg00005.html for
announcement.
2016-08-12 09:22:31 +00:00
Tobias Geerinckx-Rice
158e1cfdd0 Don't use "with licenses;" for single licences
And don't use square brackets on such lines.
2015-05-28 19:20:29 +02:00
Tobias Geerinckx-Rice
b2d7f4b1ba Use common licence attributes from lib/licenses.nix
Many (less easily automatically converted) old-style strings
remain.

Where there was any possible ambiguity about the exact version or
variant intended, nothing was changed. IANAL, nor a search robot.

Use `with stdenv.lib` wherever it makes sense.
2015-05-27 22:00:06 +02:00
Bjørn Forsman
c9baba9212 Fix many package descriptions
(My OCD kicked in today...)

Remove repeated package names, capitalize first word, remove trailing
periods and move overlong descriptions to longDescription.

I also simplified some descriptions as well, when they were particularly
long or technical, often based on Arch Linux' package descriptions.

I've tried to stay away from generated expressions (and I think I
succeeded).

Some specifics worth mentioning:
 * cron, has "Vixie Cron" in its description. The "Vixie" part is not
   mentioned anywhere else. I kept it in a parenthesis at the end of the
   description.

 * ctags description started with "Exuberant Ctags ...", and the
   "exuberant" part is not mentioned elsewhere. Kept it in a parenthesis
   at the end of description.

 * nix has the description "The Nix Deployment System". Since that
   doesn't really say much what it is/does (especially after removing
   the package name!), I changed that to "Powerful package manager that
   makes package management reliable and reproducible" (borrowed from
   nixos.org).

 * Tons of "GNU Foo, Foo is a [the important bits]" descriptions
   is changed to just [the important bits]. If the package name doesn't
   contain GNU I don't think it's needed to say it in the description
   either.
2014-08-24 22:31:37 +02:00
Jason "Don" O'Conal
7f6b5a0472 dico: fix build 2013-11-29 00:10:23 +00:00
Vladimír Čunát
4601e6734a dico: minor update, but still bad: wants "gets" 2013-02-23 14:51:40 +01:00
Ludovic Courtès
3c482c79d6 GNU Dico 2.1.
svn path=/nixpkgs/trunk/; revision=22695
2010-07-22 09:01:20 +00:00
Ludovic Courtès
25f22ceed6 Add GNU Dico, a DICT server and client.
svn path=/nixpkgs/trunk/; revision=14825
2009-04-01 17:31:44 +00:00