commit 789189180e2cda06d79438eb5919a6af67f60321 Author: Greg Shuflin Date: Fri Feb 10 22:11:04 2023 -0800 nix package for ord 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"; + }; +}