about summary refs log tree commit diff
path: root/nixpkgs/pkgs/misc/mnemonicode/default.nix
blob: 1cd78fdce093ebe4d165ec40a8692c959bc04ecf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ 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 = with lib; {
    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;
    platforms = platforms.all;
    maintainers = with maintainers; [ kirillrdy ];
    mainProgram = "mnencode";
  };
})