at master 29 lines 659 B view raw
1{ 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromGitHub, 6}: 7 8buildGoModule rec { 9 pname = "element"; 10 version = "1.0.1"; 11 12 src = fetchFromGitHub { 13 owner = "gennaro-tedesco"; 14 repo = "element"; 15 rev = "v${version}"; 16 sha256 = "sha256-06RDZnie0Lv7i95AwnBGl6PPucuj8pIT6DHW3e3mu1o="; 17 }; 18 19 vendorHash = "sha256-A4g2rQTaYrA4/0rqldUv7iuibzNINEvx9StUnaN2/Yg="; 20 21 meta = with lib; { 22 description = "Periodic table on the command line"; 23 mainProgram = "element"; 24 homepage = "https://github.com/gennaro-tedesco/element"; 25 license = licenses.asl20; 26 maintainers = [ maintainers.j0hax ]; 27 broken = stdenv.hostPlatform.isDarwin; 28 }; 29}