From 231f561d78adc9a0e9223255acc7b240aaf419ee Mon Sep 17 00:00:00 2001 From: Peter Hebden Date: Mon, 31 Jul 2023 20:27:22 +0100 Subject: [PATCH] heh: init at 0.4.1 --- maintainers/maintainer-list.nix | 2 +- pkgs/applications/editors/heh/default.nix | 27 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/editors/heh/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 47b058227977..8e9c360d2e9c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -13233,7 +13233,7 @@ }; piturnah = { email = "peterhebden6@gmail.com"; - github = "piturnah"; + github = "Piturnah"; githubId = 20472367; name = "Peter Hebden"; }; diff --git a/pkgs/applications/editors/heh/default.nix b/pkgs/applications/editors/heh/default.nix new file mode 100644 index 000000000000..ca044168b845 --- /dev/null +++ b/pkgs/applications/editors/heh/default.nix @@ -0,0 +1,27 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "heh"; + version = "0.4.1"; + + src = fetchFromGitHub { + owner = "ndd7xv"; + repo = pname; + rev = "v${version}"; + hash = "sha256-IIF/bkTLwR8pCs/hJ625T3NsiKf/6Zf1cW2i4lsiK4U="; + }; + + cargoHash = "sha256-tDvqaNVuzv1BlS/oNI1D/WV1b5uHreT3Ak/6ruqKXQc="; + + meta = with lib; { + description = "A cross-platform terminal UI used for modifying file data in hex or ASCII."; + homepage = "https://github.com/ndd7xv/heh"; + changelog = "https://github.com/ndd7xv/heh/releases/tag/${src.rev}"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ piturnah ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 71f9777d9ac0..d89cd8ce4077 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1764,6 +1764,8 @@ with pkgs; headset-charge-indicator = callPackage ../tools/audio/headset-charge-indicator { }; + heh = callPackage ../applications/editors/heh { }; + hexdiff = callPackage ../tools/misc/hexdiff { }; httm = darwin.apple_sdk_11_0.callPackage ../tools/filesystems/httm { };