41 lines
961 B
Nix
41 lines
961 B
Nix
{
|
|
inputs = {
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = inputs @ { self, ... }:
|
|
(inputs.flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
|
|
pkgs = import inputs.nixpkgs {
|
|
inherit system;
|
|
};
|
|
|
|
inherit (builtins) readFile fromTOML;
|
|
|
|
claude-chill = pkgs.rustPlatform.buildRustPackage {
|
|
pname = (fromTOML (readFile ./crates/claude-chill/Cargo.toml)).package.name;
|
|
version = (fromTOML (readFile ./Cargo.toml)).workspace.package.version;
|
|
src = pkgs.lib.cleanSourceWith {
|
|
src = ./.;
|
|
filter = path: type: !(pkgs.lib.hasSuffix ".nix" path);
|
|
};
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
};
|
|
|
|
in
|
|
{
|
|
|
|
packages = {
|
|
default = claude-chill;
|
|
|
|
claude-chill = claude-chill;
|
|
};
|
|
|
|
}
|
|
));
|
|
}
|