From 7455c80a5f97a5fa9c4449a6c64c053232f6eca4 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Sat, 28 Sep 2024 18:22:07 +0800 Subject: [PATCH] uwc: 1.0.5 -> 1.0.7 and fetch from GitHub --- pkgs/tools/text/uwc/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/text/uwc/default.nix b/pkgs/tools/text/uwc/default.nix index 42777accb826..8919456d4d46 100644 --- a/pkgs/tools/text/uwc/default.nix +++ b/pkgs/tools/text/uwc/default.nix @@ -1,24 +1,24 @@ -{ 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 ]; };