optinix: fix build

This commit is contained in:
Kenichi Kamiya 2025-05-03 20:59:19 +09:00
parent 7c7a19cf42
commit d4a9346f0e
No known key found for this signature in database
GPG key ID: 9BE4016A38165CCB

View file

@ -20,11 +20,6 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
preBuild = ''
substituteInPlace vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go \
--replace-fail '!os.IsNotExist(err)' '!os.IsNotExist(err) && !os.IsPermission(err)'
'';
postInstall = ''
installShellCompletion --cmd optinix \
--bash <($out/bin/optinix completion bash) \