2020-11-30 08:33:03 +00:00
|
|
|
{ rustPlatform, lib, fetchFromGitLab }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "uwc";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.0.5";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "dead10ck";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-x2mijB1GkxdraFroG1+PiBzWKPjsaAeoDt0HFL2v93I=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
cargoHash = "sha256-0IvOaQaXfdEz5tlXh5gTbnZG9QZSWDVHGOqYq8aWOIc=";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Like wc, but unicode-aware, and with per-line mode";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "uwc";
|
2020-11-30 08:33:03 +00:00
|
|
|
homepage = "https://gitlab.com/dead10ck/uwc";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ShamrockLee ];
|
|
|
|
};
|
|
|
|
}
|