2023-04-16 04:26:40 +00:00
|
|
|
{ lib
|
2022-10-05 08:30:50 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2023-04-16 04:26:40 +00:00
|
|
|
, stdenv
|
2022-11-10 06:18:49 +00:00
|
|
|
, CoreServices
|
2022-10-05 08:30:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cotton";
|
2023-09-13 15:15:18 +00:00
|
|
|
version = "unstable-2023-09-13";
|
2022-10-05 08:30:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "danielhuang";
|
|
|
|
repo = pname;
|
2023-09-13 15:15:18 +00:00
|
|
|
rev = "df9d79a4b0bc4b140e87ddd7795924a93775a864";
|
|
|
|
sha256 = "sha256-ZMQaVMH8cuOb4PQ19g0pAFAMwP8bR60+eWFhiXk1bYE=";
|
2022-10-05 08:30:50 +00:00
|
|
|
};
|
|
|
|
|
2023-03-25 23:16:46 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2023-04-16 04:26:40 +00:00
|
|
|
"node-semver-2.0.1-alpha.0" = "sha256-ldRQuJGo8gGc4fBD8E/J1aPJcwG7lg7jhwRvl/P2BbM=";
|
2023-03-25 23:16:46 +00:00
|
|
|
"tokio-tar-0.3.0" = "sha256-mD6bls4rGsJhu/W56C5VYgK4mzcSJ2DPOaPAbRLStT8=";
|
|
|
|
};
|
|
|
|
};
|
2022-10-05 08:30:50 +00:00
|
|
|
|
2022-11-10 06:18:49 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
|
2022-10-05 08:30:50 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A package manager for JavaScript projects";
|
|
|
|
homepage = "https://github.com/danielhuang/cotton";
|
|
|
|
license = licenses.gpl3Only;
|
2023-04-16 04:26:40 +00:00
|
|
|
maintainers = with maintainers; [ dit7ya figsoda ];
|
2022-10-05 08:30:50 +00:00
|
|
|
};
|
|
|
|
}
|