diff --git a/pkgs/pi-agent-rust/default.nix b/pkgs/pi-agent-rust/default.nix deleted file mode 100644 index ca950e5..0000000 --- a/pkgs/pi-agent-rust/default.nix +++ /dev/null @@ -1,73 +0,0 @@ -{ - # keep-sorted start - autoPatchelfHook, - fetchurl, - gcc, - lib, - stdenv, - # keep-sorted end -}: let - manifest = builtins.fromJSON (builtins.readFile ./release.json); - inherit (manifest) version; - inherit (stdenv.hostPlatform) system; - - target = - { - aarch64-linux = "aarch64-unknown-linux-gnu"; - x86_64-linux = "x86_64-unknown-linux-gnu"; - }.${ - system - }; -in - stdenv.mkDerivation { - pname = "pi-agent-rust"; - inherit version; - - src = fetchurl { - url = "https://github.com/Dicklesworthstone/pi_agent_rust/releases/download/v${version}/${manifest.updater.assets.${system}}"; - hash = manifest.hashes.${system}; - }; - - sourceRoot = "pi-${version}-${target}"; - - nativeBuildInputs = [autoPatchelfHook]; - buildInputs = [gcc.cc.lib]; - - dontBuild = true; - - installPhase = '' - runHook preInstall - - install -Dm755 pi $out/bin/pi - install -Dm644 README.md $out/share/doc/pi-agent-rust/README.md - install -Dm644 LICENSE $out/share/licenses/pi-agent-rust/LICENSE - - runHook postInstall - ''; - - doInstallCheck = true; - installCheckPhase = '' - $out/bin/pi --version - ''; - - meta = { - # keep-sorted start block=yes newline_separated=yes - description = "Native AI coding agent CLI written in Rust"; - - homepage = "https://github.com/Dicklesworthstone/pi_agent_rust"; - - license = lib.licenses.unfree; - - mainProgram = "pi"; - - platforms = [ - # keep-sorted start - "aarch64-linux" - "x86_64-linux" - # keep-sorted end - ]; - - sourceProvenance = [lib.sourceTypes.binaryNativeCode]; - # keep-sorted end - }; - } diff --git a/pkgs/pi-agent-rust/release.json b/pkgs/pi-agent-rust/release.json deleted file mode 100644 index 9cd2ba0..0000000 --- a/pkgs/pi-agent-rust/release.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "version": "0.1.23", - "hashes": { - "aarch64-linux": "sha256-phwfnTBSx921wnpmALB5OBU4ZOu9ubLz4SBMF+xfupU=", - "x86_64-linux": "sha256-OG2xlf5mLtUkNmtW5ZC0VEnwLZGHWFIXGT12OCKhmvs=" - }, - "updater": { - "type": "github-release-assets", - "owner": "Dicklesworthstone", - "repo": "pi_agent_rust", - "tagPrefix": "v", - "assets": { - "aarch64-linux": "pi-linux-arm64.tar.xz", - "x86_64-linux": "pi-linux-amd64.tar.xz" - } - } -}