-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathpackage.nix
More file actions
47 lines (38 loc) · 1.12 KB
/
package.nix
File metadata and controls
47 lines (38 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
lib,
stdenv,
fetchzip,
nodejs,
flake,
}:
stdenv.mkDerivation rec {
pname = "skills-installer";
version = "0.2.0";
src = fetchzip {
url = "https://registry.npmjs.org/${pname}/-/${pname}-${version}.tgz";
hash = "sha256-UWddwsNoULVCOVeXHr+WEeWnouc4/AplqYfBWd0oTRg=";
};
buildInputs = [ nodejs ];
installPhase = ''
runHook preInstall
install -Dm755 dist/cli.js $out/bin/skills-installer
runHook postInstall
'';
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/skills-installer --help | grep -q "Install agent skills"
runHook postInstallCheck
'';
passthru.category = "Claude Code Ecosystem";
meta = with lib; {
description = "Install agent skills across multiple AI coding clients";
homepage = "https://github.com/Kamalnrf/claude-plugins";
changelog = "https://github.com/Kamalnrf/claude-plugins/releases";
license = licenses.mit;
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
maintainers = with flake.lib.maintainers; [ Bad3r ];
mainProgram = "skills-installer";
platforms = platforms.all;
};
}