nixpkgs/pkgs/by-name/he/hexxy/package.nix

39 lines
876 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule {
pname = "hexxy";
version = "0-unstable-2024-09-20";
src = fetchFromGitHub {
owner = "sweetbbak";
repo = "hexxy";
# upstream does not publish releases, i.e., there are no tags
rev = "96cd37561fe54ba0b87d0d0989297f7eba09ecaa";
hash = "sha256-SkBHLZW0MDMluoLGFPH+QTXbaikcZXaUnSaTq3uoOaA=";
};
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";
};
}