mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 02:14:08 +00:00
4f0dadbf38
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-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
55 lines
1.6 KiB
Nix
55 lines
1.6 KiB
Nix
{
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
libmd,
|
|
coreutils,
|
|
lib,
|
|
testers,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "donkey";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "donkey";
|
|
repo = "donkey";
|
|
rev = "tags/release/${finalAttrs.version}";
|
|
hash = "sha256-2xgb9l0Eko39HJVROAWEIP3qLg5t/5h/rm2MoXoKnJI=";
|
|
};
|
|
sourceRoot = "${finalAttrs.src.name}/src";
|
|
|
|
buildInputs = [ libmd ];
|
|
|
|
preInstall = ''
|
|
# don't change the owner, use global permissions:
|
|
export INSTALL_PROGRAM="${coreutils}/bin/install -m 555"
|
|
export INSTALL_DATA="${coreutils}/bin/install -m 444"
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
|
|
|
meta = with lib; {
|
|
description = "Alternative for S/KEY's 'key' command";
|
|
longDescription = ''
|
|
Donkey is an alternative for S/KEY's "key" command. The new feature that
|
|
the original key doesn't have is print an entry for skeykeys as
|
|
follows;
|
|
|
|
kazu 0099 al02004 115d83956f1089b6 Apr 26,1995 22:13:27
|
|
|
|
This means that donkey is also an alternative for "keyinit". Since the
|
|
entry is printed to stdout (not to /etc/skeykeys), you can easily send
|
|
it to a remote operator by e-mail (with a PGP signature or something).
|
|
So, it is possible to initiate S/KEY without logging in from the console of
|
|
the host.
|
|
|
|
The name "Donkey" is an acronym of "Don't Key".
|
|
'';
|
|
homepage = "https://devel.ringlet.net/security/donkey";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ raboof ];
|
|
platforms = platforms.all;
|
|
};
|
|
})
|