Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "mnemonicode"; 9 version = "1.0.0"; 10 src = fetchFromGitHub { 11 owner = "singpolyma"; 12 repo = "mnemonicode"; 13 rev = finalAttrs.version; 14 hash = "sha256-bGipPvLj6ig+lMLsl/Yve8PmuA93ETvhNKoMPh0JMBM="; 15 }; 16 installPhase = '' 17 mkdir -p $out/bin 18 mv mnencode $out/bin 19 mv mndecode $out/bin 20 ''; 21 meta = with lib; { 22 homepage = "https://github.com/singpolyma/mnemonicode"; 23 description = '' 24 Routines which implement a method for encoding binary data into a sequence 25 of words which can be spoken over the phone, for example, and converted 26 back to data on the other side. 27 ''; 28 license = licenses.mit; 29 platforms = platforms.all; 30 maintainers = with maintainers; [ kirillrdy ]; 31 mainProgram = "mnencode"; 32 }; 33})