nixpkgs/pkgs/tools/text/hck/default.nix

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

31 lines
811 B
Nix
Raw Permalink Normal View History

2021-09-19 17:38:41 +02:00
{ lib
2021-09-03 04:05:16 +02:00
, rustPlatform
2021-09-19 17:38:41 +02:00
, fetchFromGitHub
, cmake
2021-09-03 04:05:16 +02:00
}:
2021-08-17 21:27:02 +02:00
rustPlatform.buildRustPackage rec {
pname = "hck";
2024-04-15 23:40:02 +02:00
version = "0.10.0";
2021-08-17 21:27:02 +02:00
src = fetchFromGitHub {
owner = "sstadick";
repo = pname;
rev = "v${version}";
2024-04-15 23:40:02 +02:00
hash = "sha256-L/jad3T89VFub0JBC/o/xc4RI+/tF0hbhZdSxmSs+lo=";
2021-08-17 21:27:02 +02:00
};
2024-04-15 23:40:02 +02:00
cargoHash = "sha256-9v3yZNKBZ0XQkA7J50GH/Z4JQUQ48HnjNXr90ZBHXgI=";
2021-09-03 04:05:16 +02:00
nativeBuildInputs = [ cmake ];
2021-08-17 21:27:02 +02:00
meta = with lib; {
description = "A 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 ];
2024-04-15 23:40:28 +02:00
maintainers = with maintainers; [ figsoda gepbird ];
2024-01-08 12:33:53 +01:00
mainProgram = "hck";
2021-08-17 21:27:02 +02:00
};
}