mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
cb5ae2cd16
* ci: bump changesets/action in the github-actions group Bumps the github-actions group with 1 update: [changesets/action](https://github.com/changesets/action). Updates `changesets/action` from 1.9.0 to 2.1.1 - [Release notes](https://github.com/changesets/action/releases) - [Changelog](https://github.com/changesets/action/blob/main/CHANGELOG.md) - [Commits](https://github.com/changesets/action/compare/a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d...8488615a623b1b9c987934bb89eae8af6a946ac1) --- updated-dependencies: - dependency-name: changesets/action dependency-version: 2.1.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> * fix(ci): complete changesets action v2 migration * fix(nix): invalidate pnpm dependency hash * fix(nix): use calculated dependency hash * fix(nix): refresh pnpm dependency hash --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Clay Good <hi@claygood.com>
116 lines
2.9 KiB
Nix
116 lines
2.9 KiB
Nix
{
|
|
description = "OpenSpec - AI-native system for spec-driven development";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixpkgs }:
|
|
let
|
|
supportedSystems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
|
|
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
|
|
in
|
|
{
|
|
packages = forAllSystems (
|
|
system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
inherit (pkgs) lib;
|
|
in
|
|
{
|
|
default = pkgs.stdenv.mkDerivation (finalAttrs: {
|
|
pname = "openspec";
|
|
version = (builtins.fromJSON (builtins.readFile ./package.json)).version;
|
|
|
|
src = lib.fileset.toSource {
|
|
root = ./.;
|
|
fileset = lib.fileset.unions [
|
|
./src
|
|
./bin
|
|
./schemas
|
|
./scripts
|
|
./test
|
|
./package.json
|
|
./pnpm-lock.yaml
|
|
./pnpm-workspace.yaml
|
|
./tsconfig.json
|
|
./build.js
|
|
./vitest.config.ts
|
|
./vitest.setup.ts
|
|
./eslint.config.js
|
|
];
|
|
};
|
|
|
|
pnpmDeps = pkgs.fetchPnpmDeps {
|
|
inherit (finalAttrs) pname version src;
|
|
pnpm = pkgs.pnpm_10;
|
|
fetcherVersion = 3;
|
|
hash = "sha256-SNPeEUa+amkZYRO5tHeUwDBT4betXYPKnfZiEyhN7fE=";
|
|
};
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
nodejs_22
|
|
npmHooks.npmInstallHook
|
|
pnpmConfigHook
|
|
pnpm_10
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
pnpm run build
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
dontNpmPrune = true;
|
|
|
|
meta = with pkgs.lib; {
|
|
description = "AI-native system for spec-driven development";
|
|
homepage = "https://github.com/Fission-AI/OpenSpec";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
mainProgram = "openspec";
|
|
};
|
|
});
|
|
}
|
|
);
|
|
|
|
apps = forAllSystems (system: {
|
|
default = {
|
|
type = "app";
|
|
program = "${self.packages.${system}.default}/bin/openspec";
|
|
};
|
|
});
|
|
|
|
devShells = forAllSystems (
|
|
system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
nodejs_22
|
|
pnpm_10
|
|
];
|
|
|
|
shellHook = ''
|
|
echo "OpenSpec development environment"
|
|
echo "Node version: $(node --version)"
|
|
echo "pnpm version: $(pnpm --version)"
|
|
echo "Run 'pnpm install' to install dependencies"
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
};
|
|
}
|