nixpkgs/pkgs/tools/misc/hex/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
788 B
Nix
Raw Normal View History

2022-09-11 19:14:17 +02:00
{ lib
, rustPlatform
, fetchFromGitHub
, testers
, hex
}:
rustPlatform.buildRustPackage rec {
pname = "hex";
2024-01-02 07:09:14 +01:00
version = "0.6.0";
2022-09-11 19:14:17 +02:00
src = fetchFromGitHub {
owner = "sitkevij";
repo = "hex";
rev = "v${version}";
2024-01-02 07:09:14 +01:00
hash = "sha256-YctXDhCMJvDQLPsuhzdyYDUIlFE2vKltNtrFFeE7YE8=";
2022-09-11 19:14:17 +02:00
};
2024-01-02 07:09:14 +01:00
cargoHash = "sha256-Nlha9Zn0qaQhpN2ivbBvpIPxCN2I7BtJJULb6sYdpdo=";
2022-09-11 19:14:17 +02:00
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 ];
};
}