2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
2021-09-18 10:52:07 +00:00
|
|
|
, rustPlatform
|
2021-09-22 15:38:15 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "hck";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.10.0";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sstadick";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-L/jad3T89VFub0JBC/o/xc4RI+/tF0hbhZdSxmSs+lo=";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-9v3yZNKBZ0XQkA7J50GH/Z4JQUQ48HnjNXr90ZBHXgI=";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Close to drop in replacement for cut that can use a regex delimiter instead of a fixed string";
|
2021-08-22 07:53:02 +00:00
|
|
|
homepage = "https://github.com/sstadick/hck";
|
|
|
|
changelog = "https://github.com/sstadick/hck/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = with licenses; [ mit /* or */ unlicense ];
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ figsoda gepbird ];
|
|
|
|
mainProgram = "hck";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
}
|