From 789189180e2cda06d79438eb5919a6af67f60321 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Fri, 10 Feb 2023 22:11:04 -0800 Subject: [PATCH] nix package for ord --- .gitignore | 1 + default.nix | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .gitignore create mode 100644 default.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..41a9d2a --- /dev/null +++ b/default.nix @@ -0,0 +1,25 @@ +{ lib, fetchFromGitHub , rustPlatform , pkg-config, openssl }: + +rustPlatform.buildRustPackage rec { + pname = "ord"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "casey"; + repo = pname; + rev = version; + sha256 = "sha256-jZUW8tL1kS9hotMteJNGtiHaw0MqiFDgyH3+DeQ5L00="; + }; + + cargoSha256 = "sha256-HjmX7r8y6ILatUlBjiBp39p36CY2kWj1IUKlSw7fKGk="; + + nativeBuildInputs = [pkg-config]; + buildInputs = [openssl]; + + meta = with lib; { + description = "ord is an index, block explorer, and command-line wallet. Ordinal theory imbues satoshis with numismatic value, allowing them to collected and traded as curios."; + homepage = "https://github.com/casey/ord"; + license = with licenses; [cc0]; + mainProgram = "ord"; + }; +}