Files
nixpkgs/pkgs/by-name/ne/nex/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

39 lines
968 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 {
pname = "nex";
version = "0-unstable-2021-03-30";
src = fetchFromGitHub {
owner = "blynn";
repo = "nex";
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 ];
};
}