biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / cotton / default.nix
blob1fce291cc4b5927d8060593e9fce97497799be04
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     mainProgram = "cotton";
32     homepage = "https://github.com/danielhuang/cotton";
33     license = licenses.gpl3Only;
34     maintainers = with maintainers; [ dit7ya figsoda ];
35   };