mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
openspec: 1.4.1 -> 1.7.0
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
nodejs,
|
||||
pnpm_11,
|
||||
pnpm_10, # upstream uses pnpm 9 which is insecure. pnpm 11 breaks when fetching deps.
|
||||
fetchPnpmDeps,
|
||||
pnpmConfigHook,
|
||||
makeWrapper,
|
||||
@@ -13,26 +13,28 @@
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "openspec";
|
||||
version = "1.4.1";
|
||||
version = "1.7.0";
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Fission-AI";
|
||||
repo = "OpenSpec";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-VZZ/ukjciXqiebwei2JizyOnxx0T3IeoowFWElKec4o=";
|
||||
hash = "sha256-mkwQQRjc/kWwhTj0pfJj264wIoL9FHb3B8flevyM8bs=";
|
||||
};
|
||||
|
||||
pnpmDeps = fetchPnpmDeps {
|
||||
inherit (finalAttrs) pname version src;
|
||||
pnpm = pnpm_11;
|
||||
fetcherVersion = 4;
|
||||
hash = "sha256-p44ctVCA3d1CXoq+zzhswVqhScF23ZhvpLUVVcrgQlM=";
|
||||
pnpm = pnpm_10;
|
||||
fetcherVersion = 3;
|
||||
hash = "sha256-riT2qV8FUKdF4PI7Zcw7nZw6ZR9u4/qpeDKZ5oFPuH4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
nodejs
|
||||
pnpmConfigHook
|
||||
pnpm_11
|
||||
pnpm_10
|
||||
makeWrapper
|
||||
installShellFiles
|
||||
];
|
||||
@@ -51,8 +53,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
mkdir -p $out/bin $out/lib/openspec
|
||||
|
||||
substituteInPlace bin/openspec.js \
|
||||
--replace '#!/usr/bin/env node' '#!${nodejs}/bin/node' \
|
||||
--replace "../dist" "$out/lib/openspec/dist"
|
||||
--replace-fail '#!/usr/bin/env node' '#!${nodejs}/bin/node' \
|
||||
--replace-fail "../dist" "$out/lib/openspec/dist"
|
||||
install -Dm755 bin/openspec.js $out/bin/openspec
|
||||
|
||||
cp -r dist $out/lib/openspec/
|
||||
|
||||
Reference in New Issue
Block a user