Commit Graph

23 Commits

Author SHA1 Message Date
Doron Behar
ee05797c0c mkpasswd: split man output 2026-02-08 15:28:06 +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
Jussi Kuokkanen
ce3f586775 pkgs/tools: remove licenses.gpl2 2024-05-02 21:06:26 +02: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
Enno Richter
307ef68a01 mkpasswd: fix build with clang 2023-11-06 10:54:12 +01:00
Anderson Torres
a9d73dea16 treewide: remove cstrahan from meta.maintainers - part 2
19 files modified with this removal
2023-10-04 22:20:58 -03:00
Enno Richter
17c497d2e0 mkpasswd: enable on darwin 2022-11-26 15:39:19 +01:00
Sandro Jäckel
375493e227 mkpasswd: minor cleanup 2021-11-11 17:36:54 +01:00
Andrew Marshall
365f3a5918 mkpasswd: Prefer inherit 2021-10-29 12:39:48 -04:00
Andrew Marshall
bbf70ca393 mkpasswd: Include support for more hash methods
(Before) Available methods:
sha512crypt     SHA-512
sha256crypt     SHA-256
md5crypt        MD5
descrypt        standard 56 bit DES-based crypt(3)

(After) Available methods:
yescrypt        Yescrypt
gost-yescrypt   GOST Yescrypt
scrypt          scrypt
bcrypt          bcrypt
bcrypt-a        bcrypt (obsolete $2a$ version)
sha512crypt     SHA-512
sha256crypt     SHA-256
sunmd5          SunMD5
md5crypt        MD5
bsdicrypt       BSDI extended DES-based crypt(3)
descrypt        standard 56 bit DES-based crypt(3)
nt              NT-Hash
2021-10-29 12:39:48 -04:00
Andrew Marshall
2fedb9734d mkpasswd: Fix complaining about missing pkg-config
Before, when building, would output multiple times:

> sh: line 1: pkg-config: command not found
2021-10-29 09:45:27 -04: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
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Benno Fünfstück
468d1595f8 mkpasswd: fix cross compilation 2018-11-27 17:04:40 +01:00
Samuel Dionne-Riel
7b97c8c0c8 treewide: homepage+src updates (found by repology, #33263) 2018-01-05 20:42:46 +01:00
Franz Pletz
03959d4616 whois: init at 5.2.10 and share with mkpasswd
Close #7979.
This commit adds a much more usable whois tool compared to the ones in
busybox and inetutils.

The sources for whois and mkpasswd from Debian are both located in the whois
git repository for historical reasons.
2015-11-11 15:26:10 +01:00
Eelco Dolstra
f43d9f0164 mkpasswd: Add to channel 2014-05-21 15:55:49 +02:00
Charles Strahan
e5eed8f664 fix mkpasswd: use the git repository
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2014-05-20 23:07:15 -05:00
Rickard Nilsson
48fb891646 mkpasswd: Update to 5.1.1 2014-01-30 12:28:57 +01:00
bbenoist
b39debe886 mkpasswd: Update to 5.0.26
The previous version (5.0.26) has been removed from the debian ftp.
As the source URL is now down, our own hydra (not hydra.nixos.org) failed
to build the package.
This problem will occur again in the future since I only updated the URL
without relying on a "more stable" alternative (this merits a specific
discussion).
2013-09-20 10:43:50 +02:00
Rickard Nilsson
9e85628fb9 mkpasswd: Update to 5.0.25 2013-06-25 12:20:11 +02:00
Rickard Nilsson
ad76386ff7 Add mkpasswd, an overfeatured front end to crypt 2013-02-27 12:14:09 +01:00