4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
31 lines
635 B
Nix
31 lines
635 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "0x";
|
|
version = "unstable-2022-07-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mcy";
|
|
repo = "0x";
|
|
rev = "8070704b8efdd1f16bc7e01e393230f16cd8b0a6";
|
|
hash = "sha256-NzD/j8rBfk/cpoBnkFHFqpXz58mswLZr8TUS16vlrZQ=";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
postPatch = ''
|
|
ln -s ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mcy/0x";
|
|
description = "A colorful, configurable xxd";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
};
|
|
}
|