Commit Graph

27 Commits

Author SHA1 Message Date
coolcuber
a67ffae9c7 dvtm-unstable: fix version 2026-07-28 22:49:20 -04:00
Stefan Frijters
2a29f30f75 dvtm*: move CFLAGS into env for structuredAttrs 2026-02-19 19:26:39 +01:00
Doron Behar
de433b4c2e dvtm{,-unstable}: split man output 2026-01-28 18:57:09 +02:00
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
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
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
Anderson Torres
9ffac6dc44 treewide: remove vrthra from meta.maintainers [all orphans]
Tracking issue: https://github.com/NixOS/nixpkgs/issues/290642

Inactive since 2017
2024-07-07 12:20:32 -03:00
toastal
6ab259abe6 dvtm-unstable: 2018-03-31 → unstable-2021-03-09
• update to latest revision
• prepended "unstable-" to the version as suggested in the Nixpkgs docs
• remove merged patch @ Microsoft GitHub #86
• fetch from either Git forge mirror which reflects the documentation

  > You can always fetch the current code base from the Git repository
  > located at Github *or* SourceHut.
2024-02-10 22:19:31 +07:00
Felix Buehler
1450bc80fb tools/misc: replace name with pname&version 2021-08-03 16:47:38 +02:00
zowoq
31f5dd3f36 treewide: editorconfig fixes
- remove trailing whitespace
- use spaces for indentation
2021-01-20 09:11:11 +10:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +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
Matthew Bauer
e520d6af29 Merge pull request #84415 from matthewbauer/mb-cross-fixes-april2020
Cross compilation fixes [april 2020]
2020-04-13 16:48:38 -04:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Matthew Bauer
51ab062863 dvtm: add ncurses dev input to PATH
fixes cross compilation
2020-04-06 16:36:30 -04:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
Luke Clifton
9c37c5f4d3 dvtm-unstable: init at 2018-03-31 2018-11-21 16:55:32 +08:00
Luke Clifton
4eebe205fe dvtm: refactor (fix on darwin) (#47103) 2018-09-22 14:18:47 +00:00
Tuomas Tynkkynen
b96fe03484 treewide: Fix meta.platforms related typos 2016-08-02 21:17:44 +03:00
Rahul Gopinath
d60a41053e dvtm: allow user configuration 2016-06-28 10:01:57 -07:00
宋文武
93feb5d115 drop my maintainership (close #13881) 2016-03-13 18:39:01 +01:00
宋文武
3c168a714e dvtm: 0.14 -> 0.15 2016-02-08 13:10:27 +08:00
宋文武
397066cf5d dvtm: Update to 0.14 2015-02-22 19:39:31 +08:00
Pascal Wittmann
dd37edd2d8 dvtm: update from 0.12 to 0.13 2014-11-15 16:21:56 +01:00
Pascal Wittmann
8c94b943de dvtm: update from 0.11 to 0.12 2014-07-14 15:40:09 +02:00
宋文武
eb36621839 dvtm: update from 0.10 to 0.11 2014-05-02 21:31:05 +02:00
Song Wenwu
b8917d548e add dvtm 0.10 2014-01-01 21:55:49 +08:00