2023-08-10 07:59:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2024-06-05 15:53:02 +00:00
|
|
|
, darwin
|
2023-08-10 07:59:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "heh";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.6.1";
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ndd7xv";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-eqWBTylvXqGhWdSGHdTM1ZURSD5pkUBoBOvBJ5zmJ7w=";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
|
2024-06-05 15:53:02 +00:00
|
|
|
AppKit
|
|
|
|
]);
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-rLZgKLL28/ZrXzHVI6m4YeV2mk4E9W58HjTzRl2bMOw=";
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cross-platform terminal UI used for modifying file data in hex or ASCII";
|
2023-08-10 07:59:29 +00:00
|
|
|
homepage = "https://github.com/ndd7xv/heh";
|
|
|
|
changelog = "https://github.com/ndd7xv/heh/releases/tag/${src.rev}";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ piturnah ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "heh";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
}
|