Skip to content

Commit 6a6c6f2

Browse files
authored
chalk: init at 1.29.4 (#393146)
2 parents c58cb4c + 57d927a commit 6a6c6f2

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,6 +5095,12 @@
50955095
githubId = 202474;
50965096
name = "Jens Reimann";
50975097
};
5098+
curran = {
5099+
email = "[email protected]";
5100+
github = "curranosaurus";
5101+
githubId = 148147150;
5102+
name = "Curran McConnell";
5103+
};
50985104
cust0dian = {
50995105
email = "[email protected]";
51005106
github = "cust0dian";

maintainers/team-list.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,7 @@ with lib.maintainers;
810810
members = [
811811
_9999years
812812
Gabriella439
813+
curran
813814
];
814815
scope = "Group registry for packages maintained by Mercury";
815816
shortName = "Mercury Employees";

pkgs/by-name/ch/chalk/package.nix

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchurl,
5+
}:
6+
let
7+
# This derivation is adapted from the
8+
# install script that Chalk recommends: https://api.chalk.ai/install.sh
9+
chalkVersion = "1.29.4";
10+
chalkPathPiecesByNixSystem = {
11+
"aarch64-darwin" = "Darwin/aarch64";
12+
"x86_64-darwin" = "Darwin/x86_64";
13+
"aarch64-linux" = "Linux/aarch64";
14+
"x86_64-linux" = "Linux/x86_64";
15+
};
16+
chalkHashByNixSystem = {
17+
"aarch64-darwin" = "sha256-zHPfyeHdHfbxrUhjLJHbLkeuu7WwK4jtYX7bk5wimX0=";
18+
"x86_64-darwin" = "sha256-D6lBrnBlD+OU5kQv6b6BzK+u7vB91rTtYpz8iBUeWdA=";
19+
"aarch64-linux" = "sha256-XHaCLxVJbXjPILczDGWLFqP0q/nBO5O2A9lghkvM474=";
20+
"x86_64-linux" = "sha256-hlNljLJm+m7l+Djni+ATKyWKSGKSDP0YN3CuJ4fXmWg=";
21+
};
22+
chalkHash = chalkHashByNixSystem."${stdenv.system}";
23+
chalkPathPieces = chalkPathPiecesByNixSystem."${stdenv.system}";
24+
chalkUrl = "https://api.chalk.ai/v1/install/${chalkPathPieces}/v${chalkVersion}";
25+
in
26+
stdenv.mkDerivation {
27+
pname = "chalk";
28+
version = chalkVersion;
29+
src = fetchurl {
30+
url = chalkUrl;
31+
hash = chalkHash;
32+
};
33+
dontUnpack = true;
34+
35+
installPhase = ''
36+
runHook preInstall
37+
install -Dm 555 $src $out/bin/chalk
38+
runHook postInstall
39+
'';
40+
41+
meta = {
42+
description = "CLI tool for interacting with the Chalk platform";
43+
homepage = "https://docs.chalk.ai/cli";
44+
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
45+
license = lib.licenses.unfree;
46+
maintainers = with lib.maintainers; [ curran ];
47+
mainProgram = "chalk";
48+
platforms = [
49+
"x86_64-linux"
50+
"x86_64-darwin"
51+
"aarch64-linux"
52+
"aarch64-darwin"
53+
];
54+
};
55+
}

0 commit comments

Comments
 (0)