1{ stdenv, lib, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 name = "mnemonicode-${version}";
5 version = "2015-11-30";
6 src = fetchFromGitHub {
7 owner = "singpolyma";
8 repo = "mnemonicode";
9 rev = "1687fabdf48acf68d4186f219bc20bffe02e8ee0";
10 sha256 = "0kp1jhhqfwfiqg9kx0mbyr4qh4yc4zg4szqk5fbf809nx2pvprm5";
11 };
12 installPhase = ''
13 mkdir -p $out/bin
14 cp mnencode $out/bin
15 cp mndecode $out/bin
16 '';
17 meta = with lib; {
18 description = ''
19 Routines which implement a method for encoding binary data into a sequence
20 of words which can be spoken over the phone, for example, and converted
21 back to data on the other side.
22 '';
23 license = licenses.mit;
24 platforms = platforms.linux;
25 maintainers = [ maintainers.cstrahan ];
26 };
27}