nixpkgs/pkgs/development/tools/cotton/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
910 B
Nix
Raw Normal View History

{ lib
2022-10-05 08:30:50 +00:00
, rustPlatform
, fetchFromGitHub
, stdenv
2022-11-10 06:18:49 +00:00
, CoreServices
2022-10-05 08:30:50 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "cotton";
version = "unstable-2023-08-09";
2022-10-05 08:30:50 +00:00
src = fetchFromGitHub {
owner = "danielhuang";
repo = pname;
rev = "04e2dfd123f7af6e78e3ce86b2fc04ca4c754cdc";
sha256 = "sha256-+HOuQyGkyS7oG0I0DkFGl+6YIDpV4GCCgC+a5Jwo4fw=";
2022-10-05 08:30:50 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"node-semver-2.0.1-alpha.0" = "sha256-ldRQuJGo8gGc4fBD8E/J1aPJcwG7lg7jhwRvl/P2BbM=";
"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;
maintainers = with maintainers; [ dit7ya figsoda ];
2022-10-05 08:30:50 +00:00
};
}