nak: init at 0.7.6 (#346688)

This commit is contained in:
Sandro 2024-10-06 13:26:11 +02:00 committed by GitHub
commit 01e72d476e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,36 @@
{
lib,
buildGo123Module,
fetchFromGitHub,
}:
buildGo123Module rec {
pname = "nak";
version = "0.7.6";
src = fetchFromGitHub {
owner = "fiatjaf";
repo = "nak";
rev = "refs/tags/v${version}";
hash = "sha256-VUSBCvDW53Z+mdAx0bUQIgcsiEwxOnm/FnnMcSC0iks=";
};
vendorHash = "sha256-alex1YEkviR5O0KLGZlOsf1i7s6m1C4LxHdJCogDCng=";
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
# Integration tests fail (requires connection to relays)
doCheck = false;
meta = {
description = "Command-line tool for Nostr things";
homepage = "https://github.com/fiatjaf/nak";
changelog = "https://github.com/fiatjaf/nak/releases/tag/${version}";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ nartsiss ];
mainProgram = "nak";
};
}