nixpkgs/pkgs/tools/text/hck/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

31 lines
809 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, cmake
}:
rustPlatform.buildRustPackage rec {
pname = "hck";
version = "0.10.0";
src = fetchFromGitHub {
owner = "sstadick";
repo = pname;
rev = "v${version}";
hash = "sha256-L/jad3T89VFub0JBC/o/xc4RI+/tF0hbhZdSxmSs+lo=";
};
cargoHash = "sha256-9v3yZNKBZ0XQkA7J50GH/Z4JQUQ48HnjNXr90ZBHXgI=";
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "Close to drop in replacement for cut that can use a regex delimiter instead of a fixed string";
homepage = "https://github.com/sstadick/hck";
changelog = "https://github.com/sstadick/hck/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit /* or */ unlicense ];
maintainers = with maintainers; [ figsoda gepbird ];
mainProgram = "hck";
};
}