From cc7dc58696654b1e4a74444049569e6d50d9373f Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 8 Aug 2024 15:12:21 +0300 Subject: [PATCH] cloneit: init at 0-unstable-2024-06-28 --- pkgs/by-name/cl/cloneit/package.nix | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/cl/cloneit/package.nix diff --git a/pkgs/by-name/cl/cloneit/package.nix b/pkgs/by-name/cl/cloneit/package.nix new file mode 100644 index 000000000000..844bbd22eff8 --- /dev/null +++ b/pkgs/by-name/cl/cloneit/package.nix @@ -0,0 +1,35 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + openssl, + unstableGitUpdater, +}: +rustPlatform.buildRustPackage { + pname = "cloneit"; + version = "0-unstable-2024-06-28"; + + src = fetchFromGitHub { + owner = "alok8bb"; + repo = "cloneit"; + rev = "6198556e810d964cc5938c446ef42fc21b55fe0b"; + sha256 = "sha256-RP0/kquAlSwRMeB6cjvS5JB9qfdkT8IKLVxaxrmzJ+0="; + }; + + cargoHash = "sha256-XXcqmDPEQUm4YBqY5+06X55ym3o3RqE7fNSiR4n+iyc="; + + strictDeps = true; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ openssl ]; + + passthru.updateScript = unstableGitUpdater { }; + + meta = { + description = "CLI tool to download specific GitHub directories or files"; + homepage = "https://github.com/alok8bb/cloneit"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NotAShelf ]; + platforms = lib.platforms.linux; + }; +}