2016-05-19 22:14:02 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
2023-11-15 08:46:03 +01:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mnemonicode";
|
2023-11-15 08:46:03 +01:00
|
|
|
version = "1.0.0";
|
2016-05-19 22:14:02 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "singpolyma";
|
|
|
|
repo = "mnemonicode";
|
2023-11-15 08:46:03 +01:00
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-bGipPvLj6ig+lMLsl/Yve8PmuA93ETvhNKoMPh0JMBM=";
|
2016-05-19 22:14:02 +02:00
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2023-11-15 08:46:03 +01:00
|
|
|
mv mnencode $out/bin
|
|
|
|
mv mndecode $out/bin
|
2016-05-19 22:14:02 +02:00
|
|
|
'';
|
|
|
|
meta = with lib; {
|
2023-11-15 08:46:03 +01:00
|
|
|
homepage = "https://github.com/singpolyma/mnemonicode";
|
2016-05-19 22:14:02 +02: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-10 11:57:18 +01:00
|
|
|
platforms = platforms.all;
|
2023-11-15 08:46:03 +01:00
|
|
|
maintainers = with maintainers; [ kirillrdy ];
|
|
|
|
mainProgram = "mnencode";
|
2016-05-19 22:14:02 +02:00
|
|
|
};
|
2023-11-15 08:46:03 +01:00
|
|
|
})
|