about summary refs log tree commit diff
path: root/pkgs/by-name/or
diff options
context:
space:
mode:
authorAleksana <me@aleksana.moe>2024-06-20 22:37:02 +0800
committerGitHub <noreply@github.com>2024-06-20 22:37:02 +0800
commit8c3cca6eae49076be3f1f020682a31a3abd4456e (patch)
tree61df743ea76ff6863e0e64b8cf49ffb9b40196fd /pkgs/by-name/or
parent2da1c486cf07aef1efcc7cd0079852508be221c0 (diff)
parenta212ec08b8c8ca76db5123d2f5cf66a60a3a8b90 (diff)
Merge pull request #319338 from xrelkd/add/ord
ord: init at 0.18.5
Diffstat (limited to 'pkgs/by-name/or')
-rw-r--r--pkgs/by-name/or/ord/package.nix48
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 0000000000000..6b985dcf968bf
--- /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";
+  };
+}