Files
nixpkgs/pkgs/by-name/mn/mnemonicode/package.nix
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

34 lines
857 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mnemonicode";
version = "1.0.0";
src = fetchFromGitHub {
owner = "singpolyma";
repo = "mnemonicode";
rev = finalAttrs.version;
hash = "sha256-bGipPvLj6ig+lMLsl/Yve8PmuA93ETvhNKoMPh0JMBM=";
};
installPhase = ''
mkdir -p $out/bin
mv mnencode $out/bin
mv mndecode $out/bin
'';
meta = {
homepage = "https://github.com/singpolyma/mnemonicode";
description = ''
Routines which implement a method for encoding binary data into a sequence
of words which can be spoken over the phone, for example, and converted
back to data on the other side.
'';
license = lib.licenses.mit;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ kirillrdy ];
mainProgram = "mnencode";
};
})