pkarr: init at v2.0.0 (#349338)

This commit is contained in:
Sandro 2024-10-19 01:02:27 +02:00 committed by GitHub
commit fb26155bae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,36 @@
{
lib,
fetchFromGitHub,
darwin,
rustPlatform,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "pkarr";
version = "2.0.0";
src = fetchFromGitHub {
owner = "pubky";
repo = "pkarr";
rev = "v${version}";
hash = "sha256-zJe/hCdGVqs2TTwxnceGVXt0ZFRheSRYzjSRHytYXks=";
};
cargoHash = "sha256-qRHxXlUDIpjhd/XeObnmEnjYk3SoiC56LWJUiut0BwY=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
SystemConfiguration
]
);
meta = {
description = "Public Key Addressable Resource Records (sovereign TLDs) ";
homepage = "https://github.com/pubky/pkarr";
license = [ lib.licenses.mit ];
maintainers = with lib.maintainers; [ dpc ];
mainProgram = "pkarr-server";
};
}