Package proxy with nix

This commit is contained in:
Alexander
2026-04-10 14:44:07 +02:00
parent 5ec0004e4c
commit c5f6962104
2 changed files with 20 additions and 5 deletions
+5 -5
View File
@@ -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
View File
@@ -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";
};
}