nix package for ord

This commit is contained in:
Greg Shuflin 2023-02-10 22:11:04 -08:00
commit 789189180e
2 changed files with 26 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
result

25
default.nix Normal file
View File

@ -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";
};
}