Commit Graph

67 Commits

Author SHA1 Message Date
Marcin Serwin
99e6d1bfbb maintainers: drop lovek323
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2026-02-24 23:43:50 +01:00
kashw2
ef9e88ad16 pass-file: modernise, finalAttrs 2026-01-17 01:51:40 +10: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
Martin Weinelt
ae4a1a485a treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02: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
Maximilian Bosch
d94ccbdd12 passExtensions.pass-audit: get rid of pythonEnv
It seems a little odd to first generate an interpreter pointing to an
environment and then building a package from it. This commit alters the
build process so that

* dependencies are listed explicitly as in any normal python build.
* a PYTHONPATH is then generated out of all dependencies and $out. This
  is injected into the package's entrypoint, the `audit.bash`.
2024-07-12 10:58:17 +02:00
Florian Brandes
6bb5edd7b1 passExtensions.pass-audit: fix python3.12 compat
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2024-07-11 18:07:05 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Sigmanificient
d48a9bb622 treewide: remove unused fetchpatch arguments 2024-06-04 12:40:25 +02:00
Dawid Dziurla
c706ed98fe passExtensions.pass-import: 3.2 -> 3.5
Diff: https://github.com/roddhjav/pass-import/compare/v3.2...v3.5

Changelog: https://github.com/roddhjav/pass-import/blob/v3.5/CHANGELOG.rst
2024-05-22 09:27:05 +02:00
Weijia Wang
995653a907 Merge pull request #291674 from r-ryantm/auto-update/passExtensions.pass-update
passExtensions.pass-update: 2.1 -> 2.2.1
2024-04-05 20:40:04 +02:00
Robert Schütz
e5d16f61b0 Merge pull request #299620 from dotlambda/passExtensions.pass-audit
passExtensions.pass-audit: fix tests
2024-03-29 16:34:35 +00:00
Philip Taron
6aa0a4712e Avoid top-level with ...; in pkgs/tools/security/pass/extensions/default.nix 2024-03-28 21:30:46 +01:00
Robert Schütz
e3a18722cd passExtensions.pass-audit: fix tests 2024-03-27 17:51:58 -07:00
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
1c6cad3251 passExtensions.pass-update: 2.1 -> 2.2.1 2024-02-29 18:56:33 +00:00
Sandro Jäckel
653837881e treewide: replace lib/${python.libPrefix}/site-packages with its shorthand ${python.sitePackages}
which should be always preferred
2024-01-30 19:56:57 +01:00
GetPsyched
f98ec4f73c treewide: update meta.description to fit the guidelines 2024-01-09 17:12:31 +01:00
Sergey Volkov
86498a74a7 passExtensions.pass-file: init at 1.0.0 2023-10-20 11:34:51 +02:00
figsoda
f97ce0a9a8 pkgs/tools/security: remove dead code
with the help of deadnix & nil
2023-07-12 14:35:00 -04:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Elis Hirwing
d0cbd3214a passExtensions.pass-checkup: 0.2.1 -> 0.2.2 2023-01-04 10:13:31 +01:00
David McFarland
d1d0aa0d88 pass-genphrase: fix error when run without python in PATH 2022-09-29 18:40:30 -03:00
Robert Schütz
04fcf7fcde passExtensions.pass-import: support pykeepass 4.0.3 2022-06-30 22:35:05 +00:00
Sandro Jäckel
115475ff5b python310Packages.python-magic: normalise attr 2022-05-07 01:18:35 +02:00
Aaron Jheng
f0c470f5eb oath-toolkit: Rename from oathToolkit to oath-toolkit 2022-04-04 01:11:06 +00:00
Maximilian Bosch
d34a465327 passExtensions.pass-audit: 1.1 -> 1.2
ChangeLog: https://github.com/roddhjav/pass-audit/blob/v1.2/CHANGELOG.md#12---2022-01-30
2022-02-08 20:02:22 +01:00
Ilan Joselevich
99c247f5ba passExtensions.pass-tomb: 1.1 -> 1.3 2021-08-15 13:52:34 +03:00
Zach
52d50b0585 pass-import: 3.1 -> 3.2 2021-06-12 18:03:38 -05:00
Elis Hirwing
0ac806adeb passExtensions.pass-checkup: 0.2.0 -> 0.2.1 2021-06-07 21:31:42 +02:00
Domen Kožar
bf00839d04 Merge pull request #119571 from hennersz/fix/pass-import-install-extension
passExtensions.pass-import: install extension script and completion
2021-06-02 17:33:18 +02:00
Robert Schütz
93507828b2 passExtensions.pass-import: fix tests 2021-04-30 17:16:28 +02:00
Henry Mortimer
ec4dc7e346 passExtensions.pass-import: install extension script and completion
The changes added in 40b9f4e meant that running the extension
from within pass, i.e. running `pass import` no longer worked because
the extension script didn't get installed and the completion scripts
for pimport don't get installed. This commit fixes that by manually
copying and wrapping the extension script and completion scripts
2021-04-15 21:33:51 +01:00
Drew Risinger
40b9f4ef87 passExtensions.pass-import: convert to buildPythonApplication
Rewrite the derivation using buildPythonApplication, which makes the
wrappers a lot cleaner.
Adds tests because the application wasn't working as intended
due to the wrong file-magic python package (used "filemagic" instead of
desired "file-magic").
2021-04-06 09:18:44 -04:00
Sandro Jäckel
d3a4ec8666 extensions: remove unused input 2021-02-22 01:16:22 +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
Maximilian Bosch
2b674912b4 passExtensions.pass-import: 2.6 -> 3.1
ChangeLog: https://github.com/roddhjav/pass-import/blob/v3.1/CHANGELOG.rst#31---2020-10-25

* Make sure that all features are enabled by adding `pykeepass`,
  `filemagic` etc.

* Patch & use `setup.py` to make sure that everything gets installed
  properly into `$out`.

Co-authored-by: elseym <elseym@me.com>
2020-12-04 22:33:53 +01:00
Sandro
a1d83d01f2 pass.audit: Disable tests on darwin 2020-12-04 15:04:21 +01:00
Frederik Rietdijk
ea7b8978ef Merge master into staging-next 2020-11-19 20:08:15 +01:00
R. RyanTM
f428c62679 passExtensions.pass-genphrase: 0.2 -> 0.3 2020-11-19 12:44:10 +00:00
Jonas Chevalier
a7cb88c3de tree-wide: unify Bash completions outputs (#103421)
Use $out/share/bash-completion/completions to store the Bash completions
2020-11-12 21:22:18 +00:00
Jörg Thalheim
887295fd2d treewide: remove the-kenny from maintainers
@the-kenny did a good job in the past and is set as maintainer in many package,
however since 2017-2018 he stopped contributing. To create less confusion
in pull requests when people try to request his feedback, I removed him as
maintainer from all packages.
2020-05-09 10:28:57 +01:00
Maximilian Bosch
1f20c084a7 passExtensions.pass-audit: 1.0.1 -> 1.1 2020-04-28 00:18:26 +02:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Robin Gloster
16c8590aa1 Merge pull request #82691 from Ma27/pass-exts
pass: don't rebuild when adding extensions, pass-audit: 0.1 -> 1.0.1
2020-03-28 09:51:28 +00:00
Maximilian Bosch
22228d1917 passExtensions.pass-update: 2.0 -> 2.1 2020-03-15 23:54:51 +01:00
Maximilian Bosch
16001eab7c passExtensions.pass-audit: 0.1 -> 1.0.1, refactor
Updates to v1.0.1[1] which supports subdirs and zxcvbn[2]-based
complexity checks. Also, the following things changed:

* Add separate output for man-pages
* Enable test-suite (after adding a patch which mocks the
  `pwnedpasswords.com`).
* Added myself as maintainer.

[1] https://github.com/roddhjav/pass-audit/releases/tag/v1.0.1 /
    https://github.com/roddhjav/pass-audit/releases/tag/v1.0

[2] https://pypi.org/project/zxcvbn-python/
2020-03-15 23:13:04 +01:00