package.nix (916B)
1 { 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 git, 6 installShellFiles, 7 writableTmpDirAsHomeHook, 8 }: 9 10 buildGoModule (finalAttrs: { 11 pname = "ralphex"; 12 version = "1.2.0"; 13 14 __structuredAttrs = true; 15 16 src = fetchFromGitHub { 17 owner = "umputun"; 18 repo = "ralphex"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-bL1RFGL7+ceDgDOgKw1pBZGKjtj1WrtxAoFRuByuUS4="; 21 }; 22 23 vendorHash = null; 24 25 ldflags = [ 26 "-s" 27 "-w" 28 "-X main.revision=${finalAttrs.version}" 29 ]; 30 31 nativeBuildInputs = [ installShellFiles ]; 32 33 nativeCheckInputs = [ 34 git 35 writableTmpDirAsHomeHook 36 ]; 37 38 postInstall = '' 39 installShellCompletion completions/* 40 ''; 41 42 meta = { 43 description = "Extended Ralph loop for autonomous AI-driven plan execution"; 44 homepage = "https://ralphex.com/"; 45 license = lib.licenses.mit; 46 mainProgram = "ralphex"; 47 maintainers = [ lib.maintainers.sikmir ]; 48 }; 49 })
