ord-nix-package/default.nix

27 lines
781 B
Nix
Raw Permalink Normal View History

2023-02-10 22:11:04 -08:00
{ lib, fetchFromGitHub , rustPlatform , pkg-config, openssl }:
rustPlatform.buildRustPackage rec {
pname = "ord";
2023-02-27 01:31:48 -08:00
version = "0.5.1";
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;
2023-02-27 01:31:48 -08:00
sha256 = "sha256-3lOEFNhG9NU0+D4sGvfbKgFLj4F6Bhgt1R7zRSzKhzo=";
2023-02-10 22:11:04 -08:00
};
2023-02-27 01:31:48 -08:00
cargoSha256 = "sha256-koJgU4KEXK7468weJY57yP7f1tSB9nImvVa5CbNQDDg=";
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";
};
}