Package proxy with nix
This commit is contained in:
@@ -17,14 +17,14 @@
|
|||||||
let
|
let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfreePredicate =
|
config.allowUnfree = true;
|
||||||
pkg:
|
|
||||||
builtins.elem (pkgs.lib.getName pkg) [
|
|
||||||
"claude-code"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
packages = {
|
||||||
|
proxy = pkgs.callPackage ./package.nix {};
|
||||||
|
};
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
go
|
go
|
||||||
|
|||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
{ buildGoModule, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "anthropic-proxy";
|
||||||
|
version = "0.0.4";
|
||||||
|
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
|
vendorHash = "sha256-QUb/DIX3x/MBZd3srF0hV2x/o0wf7zNzj2SEhTIpq58=";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Reverse proxy that lets OpenCode (and similar tools) use a Claude subscription instead of an API key.";
|
||||||
|
homepage = "https://gitea.susano-homelab.duckdns.org/fujin/anthropic-proxy";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user