depot/third_party/nixpkgs/pkgs/development/tools/parsing/nex/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
967 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
}:
# upstream is pretty stale, but it still works, so until they merge module
# support we have to use gopath: see blynn/nex#57
buildGoModule rec {
pname = "nex";
version = "0-unstable-2021-03-30";
src = fetchFromGitHub {
owner = "blynn";
repo = pname;
rev = "1a3320dab988372f8910ccc838a6a7a45c8980ff";
hash = "sha256-DtJkV380T2B5j0+u7lYZfbC0ej0udF4GW2lbRmmbjAM=";
};
vendorHash = null;
postPatch = ''
go mod init github.com/blynn/nex
'';
subPackages = [ "." ];
# Fails with 'nex_test.go:23: got: 7a3661f13445ca7b51de2987bea127d9 wanted: 13f760d2f0dc1743dd7165781f2a318d'
# Checks failed on master before, but buildGoPackage had checks disabled.
doCheck = false;
meta = with lib; {
description = "Lexer for Go";
mainProgram = "nex";
homepage = "https://github.com/blynn/nex";
license = licenses.gpl3Only;
maintainers = with maintainers; [ urandom ];
};
}