feat(pkgs) add repo pack package

This commit is contained in:
ooks-io 2024-08-25 21:21:39 +12:00
parent 45a6774b20
commit f34eed5138
4 changed files with 33 additions and 7 deletions

View file

@ -2,6 +2,7 @@
pkgs,
lib,
config,
self,
...
}: let
cfg = config.ooknet.tools.utils;
@ -45,6 +46,9 @@ in {
# Nix tooling
alejandra
#AI
self.packages.${pkgs.system}.repopack
];
};
}

View file

@ -2,6 +2,7 @@
perSystem = {pkgs, ...}: {
packages = {
live-buds-cli = pkgs.callPackage ./live-buds-cli {};
repopack = pkgs.callPackage ./repopack {};
};
};
}

View file

@ -0,0 +1,27 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "repopack";
version = "0.1.24";
src = fetchFromGitHub {
owner = "yamadashy";
repo = "repopack";
rev = "v${version}";
hash = "sha256-+UcpfxMcG47j4fSOAXBvNgwKy0nSC6UKJvNc5G8c6U0=";
};
npmDepsHash = "sha256-Jyp48JNRuqxGSNi6eLrnOkF4Z+OResbtfbTYHg1S1mU=";
meta = {
description = ''
A powerful tool that packs your entire repository into a
single, AI-friendly file.
'';
homepage = "https://github.com/yamadashy/repopack";
mainProgram = "repopack";
};
}

View file

@ -1,12 +1,6 @@
let
sshKeys = import ../secrets/keys.nix;
in {
perSystem = {...}: {
imports = [
{
_module.args.keys = sshKeys;
}
];
};
perSystem = _: {_module.args.keys = sshKeys;};
flake.keys = sshKeys;
}