Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / cotton / default.nix
blob57b4ef0205818cf6a8981a00cc4f57598fe65c86
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , stdenv
5 , CoreServices
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "cotton";
10   version = "unstable-2023-09-13";
12   src = fetchFromGitHub {
13     owner = "danielhuang";
14     repo = pname;
15     rev = "df9d79a4b0bc4b140e87ddd7795924a93775a864";
16     sha256 = "sha256-ZMQaVMH8cuOb4PQ19g0pAFAMwP8bR60+eWFhiXk1bYE=";
17   };
19   cargoLock = {
20     lockFile = ./Cargo.lock;
21     outputHashes = {
22       "node-semver-2.0.1-alpha.0" = "sha256-ldRQuJGo8gGc4fBD8E/J1aPJcwG7lg7jhwRvl/P2BbM=";
23       "tokio-tar-0.3.0" = "sha256-mD6bls4rGsJhu/W56C5VYgK4mzcSJ2DPOaPAbRLStT8=";
24     };
25   };
27   buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
29   meta = with lib; {
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 ];
34   };