add claurst

This commit is contained in:
2026-05-01 01:07:42 -04:00
parent a226d68df7
commit 179ced171d
3 changed files with 54 additions and 0 deletions

View File

@@ -207,6 +207,10 @@
nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/lego-latest/default.nix nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/lego-latest/default.nix
{ }; { };
packages.x86_64-linux.claurst =
nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/claurst/default.nix
{ };
checks = import ./checks.nix { inherit inputs forEachSystem formatter; }; checks = import ./checks.nix { inherit inputs forEachSystem formatter; };
devShells = import ./shell.nix { inherit inputs forEachSystem checks; }; devShells = import ./shell.nix { inherit inputs forEachSystem checks; };

48
pkgs/claurst/default.nix Normal file
View File

@@ -0,0 +1,48 @@
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
alsa-lib,
dbus,
libxkbcommon,
libxcb,
}:
rustPlatform.buildRustPackage rec {
pname = "claurst";
version = "0.0.9";
src = fetchFromGitHub {
owner = "Kuberwastaken";
repo = "claurst";
rev = "v${version}";
hash = "sha256-bTQHtZGZxhEAki0JxSC8smAC3w+otm8ubHvZ9MvwDaE=";
};
cargoRoot = "src-rust";
cargoHash = "sha256-6+B43spqmUZ983YMl5UBH5647DcUOS2ngw5ChMIPFFo=";
buildAndTestSubdir = "src-rust";
doCheck = false;
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
alsa-lib
dbus
libxkbcommon
libxcb
];
meta = with lib; {
description = "Terminal coding agent written in Rust";
homepage = "https://github.com/Kuberwastaken/claurst";
license = licenses.gpl3Only;
mainProgram = "claurst";
platforms = platforms.linux;
};
}

View File

@@ -2,6 +2,7 @@
config, config,
pkgs, pkgs,
lib, lib,
outputs,
machineConfig, machineConfig,
... ...
}: }:
@@ -90,6 +91,7 @@
gocryptfs gocryptfs
awscli2 awscli2
outputs.packages.${pkgs.system}.claurst
]; ];
}; };