3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/hck/default.nix

36 lines
914 B
Nix
Raw Normal View History

2021-09-19 16:38:41 +01:00
{ lib
2021-09-03 03:05:16 +01:00
, rustPlatform
2021-09-19 16:38:41 +01:00
, fetchFromGitHub
, cmake
2021-09-03 03:05:16 +01:00
, stdenv
, libiconv
, CoreFoundation
, Security
}:
2021-08-17 20:27:02 +01:00
rustPlatform.buildRustPackage rec {
pname = "hck";
2021-09-27 13:57:49 +01:00
version = "0.6.6";
2021-08-17 20:27:02 +01:00
src = fetchFromGitHub {
owner = "sstadick";
repo = pname;
rev = "v${version}";
2021-09-27 13:57:49 +01:00
sha256 = "sha256-DUFJZEtJM5Sv41zJvSZ8KsNWFzlictM2T1wS7VxPL04=";
2021-08-17 20:27:02 +01:00
};
2021-09-27 13:57:49 +01:00
cargoSha256 = "sha256-kubQL+p7J2koPDOje5wMxKDeCY4yi0kupfHsJCKYf44=";
2021-09-03 03:05:16 +01:00
nativeBuildInputs = [ cmake ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv CoreFoundation Security ];
2021-08-17 20:27:02 +01: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 ];
maintainers = with maintainers; [ figsoda ];
};
}