Commit 7455c80a authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

uwc: 1.0.5 -> 1.0.7 and fetch from GitHub

parent 168b7864
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
{ rustPlatform, lib, fetchFromGitLab }:
{ rustPlatform, lib, fetchFromGitHub }:

rustPlatform.buildRustPackage rec {
  pname = "uwc";
  version = "1.0.5";
  version = "1.0.7";

  src = fetchFromGitLab {
  src = fetchFromGitHub {
    owner = "dead10ck";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-x2mijB1GkxdraFroG1+PiBzWKPjsaAeoDt0HFL2v93I=";
    repo = "uwc";
    rev = "refs/tags/v${version}";
    hash = "sha256-Qv8vMjCMhpVxkJyH1uTsFXu2waO8oaLPuoBETaWOUqI=";
  };

  cargoHash = "sha256-0IvOaQaXfdEz5tlXh5gTbnZG9QZSWDVHGOqYq8aWOIc=";
  cargoHash = "sha256-20brxqYAvgBxbOQ7KOFviXxmFrSHDXNV/0lcks7x3a8=";

  doCheck = true;

  meta = with lib; {
    description = "Like wc, but unicode-aware, and with per-line mode";
    mainProgram = "uwc";
    homepage = "https://gitlab.com/dead10ck/uwc";
    homepage = "https://github.com/dead10ck/uwc";
    license = licenses.mit;
    maintainers = with maintainers; [ ShamrockLee ];
  };