45 lines
951 B
Nix
45 lines
951 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "ord";
|
|
version = "0.23.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ordinals";
|
|
repo = "ord";
|
|
rev = version;
|
|
hash = "sha256-p9WjZ8QsY5fvL91zPUKnK8p0ZJvAxzmPbN/UVWSNjqk=";
|
|
};
|
|
|
|
cargoHash = "sha256-c3+yM7jJyIl2XpSOeqdeQP2OdRc7/t/epDTMoOa/66A=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
dontUseCargoParallelTests = true;
|
|
|
|
checkFlags = [
|
|
"--skip=subcommand::server::tests::status" # test fails if it built from source tarball
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Index, block explorer, and command-line wallet for Ordinals";
|
|
homepage = "https://github.com/ordinals/ord";
|
|
changelog = "https://github.com/ordinals/ord/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.cc0;
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
mainProgram = "ord";
|
|
};
|
|
}
|