nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 38 lines 968 B view raw
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5}: 6# upstream is pretty stale, but it still works, so until they merge module 7# support we have to use gopath: see blynn/nex#57 8buildGoModule { 9 pname = "nex"; 10 version = "0-unstable-2021-03-30"; 11 12 src = fetchFromGitHub { 13 owner = "blynn"; 14 repo = "nex"; 15 rev = "1a3320dab988372f8910ccc838a6a7a45c8980ff"; 16 hash = "sha256-DtJkV380T2B5j0+u7lYZfbC0ej0udF4GW2lbRmmbjAM="; 17 }; 18 19 vendorHash = null; 20 21 postPatch = '' 22 go mod init github.com/blynn/nex 23 ''; 24 25 subPackages = [ "." ]; 26 27 # Fails with 'nex_test.go:23: got: 7a3661f13445ca7b51de2987bea127d9 wanted: 13f760d2f0dc1743dd7165781f2a318d' 28 # Checks failed on master before, but buildGoPackage had checks disabled. 29 doCheck = false; 30 31 meta = with lib; { 32 description = "Lexer for Go"; 33 mainProgram = "nex"; 34 homepage = "https://github.com/blynn/nex"; 35 license = licenses.gpl3Only; 36 maintainers = with maintainers; [ urandom ]; 37 }; 38}