From 44014ea79981c39a007144bd20a2ddbed6283558 Mon Sep 17 00:00:00 2001 From: dawn Date: Mon, 19 Oct 2026 15:46:23 +0300 Subject: [PATCH] nix/pkgs/lexgen: name generated files after the whole nsid past the authority Signed-off-by: dawn --- nix/pkgs/lexgen.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/pkgs/lexgen.nix b/nix/pkgs/lexgen.nix index aca542edf..524958022 100644 --- a/nix/pkgs/lexgen.nix +++ b/nix/pkgs/lexgen.nix @@ -9,4 +9,10 @@ buildGoModule { subPackages = ["cmd/lexgen"]; vendorHash = "sha256-VbDrcN4r5b7utRFQzVsKgDsVgdQLSXl7oZ5kdPA/huw="; doCheck = false; + # upstream names files by the last two nsid segments, so org.tangled.temp.git.getBranch and + # org.tangled.git.getBranch both land on gitgetBranch.go and one silently overwrites the other + postPatch = '' + substituteInPlace lex/schema.go \ + --replace-fail 'return p[len(p)-2] + p[len(p)-1]' 'return strings.Join(p[2:], "")' + ''; } -- 2.54.0