cotton: init at unstable-2022-10-04

This commit is contained in:
Mostly Void 2022-10-05 14:00:50 +05:30
parent b881869205
commit 953a99b508
No known key found for this signature in database
GPG key ID: E2B7342D0CAA82C2
2 changed files with 27 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -13336,6 +13336,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;
})