Package proxy with nix
This commit is contained in:
@@ -17,14 +17,14 @@
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfreePredicate =
|
||||
pkg:
|
||||
builtins.elem (pkgs.lib.getName pkg) [
|
||||
"claude-code"
|
||||
];
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in
|
||||
{
|
||||
packages = {
|
||||
proxy = pkgs.callPackage ./package.nix {};
|
||||
};
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
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