2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-04-16 04:38:12 +00:00

nak: init at 0.7.6

This commit is contained in:
nartsisss 2024-10-05 18:16:47 +03:00
parent ab9c885003
commit 827c26ef73
No known key found for this signature in database

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";
};
}