ord-nix-package/default.nix

27 lines
780 B
Nix
Raw Normal View History

2023-02-10 22:11:04 -08:00
{ lib, fetchFromGitHub , rustPlatform , pkg-config, openssl }:
rustPlatform.buildRustPackage rec {
pname = "ord";
2023-02-13 23:07:55 -08:00
version = "0.5.0";
2023-02-10 22:11:04 -08:00
src = fetchFromGitHub {
owner = "casey";
repo = pname;
rev = version;
2023-02-13 23:07:55 -08:00
#sha256 = lib.fakeSha256;
sha256 = "sha256-0atd/zW4NsTAmnJYjjlnB9rWnvK7d/ap9RgFRPqNrpc=";
2023-02-10 22:11:04 -08:00
};
2023-02-13 23:07:55 -08:00
cargoSha256 = "sha256-vuMPk7TDXeyL4w/igO0IG6KSG2uzJftartEOWoMUjO8";
2023-02-10 22:11:04 -08:00
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";
};
}