2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mnemonicode";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "singpolyma";
|
|
|
|
repo = "mnemonicode";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-bGipPvLj6ig+lMLsl/Yve8PmuA93ETvhNKoMPh0JMBM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2023-11-16 04:20:00 +00:00
|
|
|
mv mnencode $out/bin
|
|
|
|
mv mndecode $out/bin
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
meta = with lib; {
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/singpolyma/mnemonicode";
|
2020-04-24 23:36:52 +00:00
|
|
|
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 = licenses.mit;
|
2021-03-19 17:17:44 +00:00
|
|
|
platforms = platforms.all;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ kirillrdy ];
|
|
|
|
mainProgram = "mnencode";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
})
|