mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
Merge pull request #190813 from IvarWithoutBones/init-hex
hex: init at 0.4.2
This commit is contained in:
commit
6a8d5a6d69
34
pkgs/tools/misc/hex/default.nix
Normal file
34
pkgs/tools/misc/hex/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, testers
|
||||
, hex
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "hex";
|
||||
version = "0.4.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sitkevij";
|
||||
repo = "hex";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-mxKjiciejnOTbSkCzOWdAtysRAnEv4JgntPS1qM9og8=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-kGe6XN03V+ILnlAcT0E8BvrYMa7ub05STFsFY6X5Gkk=";
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = hex;
|
||||
version = "hx ${version}";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Futuristic take on hexdump, made in Rust";
|
||||
homepage = "https://github.com/sitkevij/hex";
|
||||
changelog = "https://github.com/sitkevij/hex/releases/tag/v${version}";
|
||||
mainProgram = "hx";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ivar ];
|
||||
};
|
||||
}
|
@ -7447,6 +7447,8 @@ with pkgs;
|
||||
|
||||
hevea = callPackage ../tools/typesetting/hevea { };
|
||||
|
||||
hex = callPackage ../tools/misc/hex { };
|
||||
|
||||
hexd = callPackage ../tools/misc/hexd { };
|
||||
pixd = callPackage ../tools/misc/pixd { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user