diff options
author | xrelkd <46590321+xrelkd@users.noreply.github.com> | 2024-06-12 22:40:40 +0800 |
---|---|---|
committer | xrelkd <46590321+xrelkd@users.noreply.github.com> | 2024-06-14 00:45:53 +0800 |
commit | a212ec08b8c8ca76db5123d2f5cf66a60a3a8b90 (patch) | |
tree | 1631d17fc85a20b59a696fa832effa73572af9d5 | |
parent | 4014350fa8d9d240f93a6d19c86d1d09978b205d (diff) | |
download | nixlib-a212ec08b8c8ca76db5123d2f5cf66a60a3a8b90.tar nixlib-a212ec08b8c8ca76db5123d2f5cf66a60a3a8b90.tar.gz nixlib-a212ec08b8c8ca76db5123d2f5cf66a60a3a8b90.tar.bz2 nixlib-a212ec08b8c8ca76db5123d2f5cf66a60a3a8b90.tar.lz nixlib-a212ec08b8c8ca76db5123d2f5cf66a60a3a8b90.tar.xz nixlib-a212ec08b8c8ca76db5123d2f5cf66a60a3a8b90.tar.zst nixlib-a212ec08b8c8ca76db5123d2f5cf66a60a3a8b90.zip |
ord: init at 0.18.5
-rw-r--r-- | pkgs/by-name/or/ord/package.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/by-name/or/ord/package.nix b/pkgs/by-name/or/ord/package.nix new file mode 100644 index 000000000000..6b985dcf968b --- /dev/null +++ b/pkgs/by-name/or/ord/package.nix @@ -0,0 +1,48 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, openssl +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "ord"; + version = "0.18.5"; + + src = fetchFromGitHub { + owner = "ordinals"; + repo = "ord"; + rev = version; + hash = "sha256-rqyf2GZ3lhYSSr14S+JXJYCYZC+7BbFzxLOourykMas="; + }; + + cargoHash = "sha256-SjD5S8GVjfpIvA++eiNebn9M33aRvrXL+MyqZTK2e4U="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + openssl + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + darwin.apple_sdk.frameworks.SystemConfiguration + ]; + + 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"; + }; +} |