mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
hof: 0.6.9 -> 0.6.10, unpin Go builder, mark broken on darwin
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
buildGo122Module,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
buildGo122Module rec {
|
||||
buildGoModule rec {
|
||||
pname = "hof";
|
||||
version = "0.6.9";
|
||||
version = "0.6.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hofstadter-io";
|
||||
repo = "hof";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-okY+CkPnlndy5H4M1+T1CY21+63+KPBinHoa5+8kQ2M=";
|
||||
hash = "sha256-okc11mXqB/PaXd0vsRuIIL70qWSFprvsZJtE6PvCaIg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
vendorHash = "sha256-SmUEVWIyV6k5Lu5zeKGqpij3zUNRZQmIgtf8/Hf7UUs=";
|
||||
vendorHash = "sha256-mLOWnHzKw/B+jFNuswejEnYbPxFkk95I/BWeHRTH55I=";
|
||||
|
||||
subPackages = [ "./cmd/hof/main.go" ];
|
||||
subPackages = [ "./cmd/hof" ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/main $out/bin/hof
|
||||
local INSTALL="$out/bin/hof"
|
||||
installShellCompletion --cmd hof \
|
||||
--bash <($out/bin/hof completion bash) \
|
||||
@@ -37,5 +37,8 @@ buildGo122Module rec {
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jfvillablanca ];
|
||||
mainProgram = "hof";
|
||||
# Broken on darwin for Go toolchain > 1.22, with error:
|
||||
# 'panic: open /etc/protocols: operation not permitted'
|
||||
broken = stdenv.hostPlatform.isDarwin;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user