nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 openssl,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "ord";
11 version = "0.23.2";
12
13 src = fetchFromGitHub {
14 owner = "ordinals";
15 repo = "ord";
16 rev = version;
17 hash = "sha256-p9WjZ8QsY5fvL91zPUKnK8p0ZJvAxzmPbN/UVWSNjqk=";
18 };
19
20 cargoHash = "sha256-c3+yM7jJyIl2XpSOeqdeQP2OdRc7/t/epDTMoOa/66A=";
21
22 nativeBuildInputs = [
23 pkg-config
24 ];
25
26 buildInputs = [
27 openssl
28 ];
29
30 dontUseCargoParallelTests = true;
31
32 checkFlags = [
33 "--skip=subcommand::server::tests::status" # test fails if it built from source tarball
34 ];
35
36 meta = with lib; {
37 description = "Index, block explorer, and command-line wallet for Ordinals";
38 homepage = "https://github.com/ordinals/ord";
39 changelog = "https://github.com/ordinals/ord/blob/${src.rev}/CHANGELOG.md";
40 license = licenses.cc0;
41 maintainers = with maintainers; [ xrelkd ];
42 mainProgram = "ord";
43 };
44}