mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
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>
34 lines
857 B
Nix
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";
|
|
};
|
|
})
|