nixpkgs/pkgs/by-name/do/donkey/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.5 KiB
Nix
Raw Normal View History

2023-01-10 13:11:27 +00:00
{ stdenv
, fetchFromGitLab
, libmd
, coreutils
, lib
, testers
}:
2024-09-17 02:32:56 +01:00
stdenv.mkDerivation (finalAttrs: {
2023-01-10 13:11:27 +00:00
pname = "donkey";
version = "1.2.0";
src = fetchFromGitLab {
owner = "donkey";
repo = "donkey";
2024-09-17 02:32:56 +01:00
rev = "tags/release/${finalAttrs.version}";
2023-01-10 13:11:27 +00:00
hash = "sha256-2xgb9l0Eko39HJVROAWEIP3qLg5t/5h/rm2MoXoKnJI=";
};
2024-09-17 02:32:56 +01:00
sourceRoot = "${finalAttrs.src.name}/src";
2023-01-10 13:11:27 +00:00
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"
'';
2024-09-17 02:32:56 +01:00
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
2023-01-10 13:11:27 +00:00
meta = with lib; {
description = "Alternative for S/KEY's 'key' command";
2023-01-10 13:11:27 +00:00
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";
2024-04-26 12:35:31 +01:00
license = licenses.gpl2Only;
2023-01-10 13:11:27 +00:00
maintainers = with maintainers; [ raboof ];
platforms = platforms.all;
};
2024-09-17 02:32:56 +01:00
})