Skip to content

Commit

Permalink
Merge pull request #194559 from dit7ya/cotton
Browse files Browse the repository at this point in the history
cotton: init at unstable-2022-10-04
  • Loading branch information
SuperSandro2000 authored Oct 22, 2022
2 parents 68eac2f + 953a99b commit aa92a34
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pkgs/development/tools/cotton/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ lib
, rustPlatform
, fetchFromGitHub
}:

rustPlatform.buildRustPackage rec {
pname = "cotton";
version = "unstable-2022-10-04";

src = fetchFromGitHub {
owner = "danielhuang";
repo = pname;
rev = "30f3aa7ec6792f3e2dbafc9f4b009b1a6eadc755";
sha256 = "sha256-jq5aW6dViHTxh2btP5smtcyUSZ1EoMrQVN7K8zs1jJM=";
};

cargoSha256 = "sha256-qpV3UriOidIk/0di9d8RjXvjcjgD6dXqg7wLAywI66o=";

meta = with lib; {
description = "A package manager for JavaScript projects";
homepage = "https://github.com/danielhuang/cotton";
license = licenses.gpl3Only;
maintainers = with maintainers; [ dit7ya ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13547,6 +13547,8 @@ with pkgs;

copper = callPackage ../development/compilers/copper {};

cotton = callPackage ../development/tools/cotton { };

inherit (callPackages ../development/compilers/crystal {
llvmPackages = if stdenv.system == "aarch64-darwin" then llvmPackages_11 else llvmPackages_10;
})
Expand Down

0 comments on commit aa92a34

Please sign in to comment.