8 rustPlatform.buildRustPackage rec {
10 version = "unstable-2023-09-13";
12 src = fetchFromGitHub {
13 owner = "danielhuang";
15 rev = "df9d79a4b0bc4b140e87ddd7795924a93775a864";
16 sha256 = "sha256-ZMQaVMH8cuOb4PQ19g0pAFAMwP8bR60+eWFhiXk1bYE=";
20 lockFile = ./Cargo.lock;
22 "node-semver-2.0.1-alpha.0" = "sha256-ldRQuJGo8gGc4fBD8E/J1aPJcwG7lg7jhwRvl/P2BbM=";
23 "tokio-tar-0.3.0" = "sha256-mD6bls4rGsJhu/W56C5VYgK4mzcSJ2DPOaPAbRLStT8=";
27 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
30 description = "A package manager for JavaScript projects";
31 homepage = "https://github.com/danielhuang/cotton";
32 license = licenses.gpl3Only;
33 maintainers = with maintainers; [ dit7ya figsoda ];