Skip to content

Commit

Permalink
Merge pull request #319338 from xrelkd/add/ord
Browse files Browse the repository at this point in the history
ord: init at 0.18.5
  • Loading branch information
Aleksanaa committed Jun 20, 2024
2 parents 2da1c48 + a212ec0 commit 8c3cca6
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/by-name/or/ord/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}

0 comments on commit 8c3cca6

Please sign in to comment.