pingu: 0.0.5 -> 0.0.6 (forked) (#451947)
This commit is contained in:
@@ -6,25 +6,37 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "pingu";
|
||||
version = "0.0.5";
|
||||
version = "0.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sheepla";
|
||||
owner = "CactiChameleon9";
|
||||
repo = "pingu";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-iAHj6/qaZgpTfrUZZ9qdsjiNMJ2zH0CzhR4TVSC9oLE=";
|
||||
sha256 = "sha256-pXC/y+piLhSWIcJ1/+UaC3sjHPKG3XvTuHzWENsXME0=";
|
||||
# Get values that require us to use git, then delete .git
|
||||
leaveDotGit = true;
|
||||
postFetch = ''
|
||||
cd $out
|
||||
git rev-parse --short HEAD > ldflags_revision
|
||||
find . -type d -name .git -print0 | xargs -0 rm -rf
|
||||
'';
|
||||
};
|
||||
|
||||
vendorHash = "sha256-xn6la6E0C5QASXxNee1Py/rBs4ls9X/ePeg4Q1e2UyU=";
|
||||
vendorHash = "sha256-8d0pKweumnJH49HSBCfEF8cwEXLGMAk2WbhS10T/Cmc=";
|
||||
ldflags = [
|
||||
"-w"
|
||||
"-s"
|
||||
"-X main.appVersion=${version}"
|
||||
];
|
||||
preBuild = ''
|
||||
ldflags+=" -X main.appRevision=$(cat ldflags_revision)"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Ping command implementation in Go but with colorful output and pingu ascii art";
|
||||
homepage = "https://github.com/sheepla/pingu/";
|
||||
homepage = "https://github.com/CactiChameleon9/pingu/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ CactiChameleon9 ];
|
||||
mainProgram = "pingu";
|
||||
# Doesn't build with Go toolchain >1.22, build error:
|
||||
# 'link: golang.org/x/net/internal/socket: invalid reference to syscall.recvmsg'.
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user