mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
39 lines
876 B
Nix
39 lines
876 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
buildGoModule {
|
|
pname = "hexxy";
|
|
version = "0-unstable-2024-02-23";
|
|
src = fetchFromGitHub {
|
|
owner = "sweetbbak";
|
|
repo = "hexxy";
|
|
# upstream does not publish releases, i.e., there are no tags
|
|
rev = "30e0aa5549bbafeb8204fe34b0d37019f9acc975";
|
|
hash = "sha256-KBgxZD95UT7i/eYeKLm0LVLliKgK/KiJYXVY9zzwbvk=";
|
|
};
|
|
|
|
vendorHash = "sha256-qkBpSVLWZPRgS9bqOVUWHpyj8z/nheQJON3vJOwPUj4=";
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version"
|
|
"branch"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
description = "A modern and beautiful alternative to xxd and hexdump";
|
|
homepage = "https://github.com/sweetbbak/hexxy";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.NotAShelf ];
|
|
mainProgram = "hexxy";
|
|
};
|
|
}
|