nixpkgs/pkgs/misc/mnemonicode/default.nix

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

30 lines
848 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub }:
2023-11-15 07:46:03 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "mnemonicode";
2023-11-15 07:46:03 +00:00
version = "1.0.0";
src = fetchFromGitHub {
owner = "singpolyma";
repo = "mnemonicode";
2023-11-15 07:46:03 +00:00
rev = finalAttrs.version;
hash = "sha256-bGipPvLj6ig+lMLsl/Yve8PmuA93ETvhNKoMPh0JMBM=";
};
installPhase = ''
mkdir -p $out/bin
2023-11-15 07:46:03 +00:00
mv mnencode $out/bin
mv mndecode $out/bin
'';
meta = with lib; {
2023-11-15 07:46:03 +00:00
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 = licenses.mit;
2021-03-10 10:57:18 +00:00
platforms = platforms.all;
2023-11-15 07:46:03 +00:00
maintainers = with maintainers; [ kirillrdy ];
mainProgram = "mnencode";
};
2023-11-15 07:46:03 +00:00
})