fix(ags): use package flag on ts-for-gir

This commit is contained in:
matt1432 2024-07-17 00:21:12 -04:00
parent 628ccd1758
commit 8f0ec20dcf
14 changed files with 142 additions and 185 deletions

View file

@ -0,0 +1 @@
use flake $FLAKE#ags

View file

@ -0,0 +1,29 @@
{
package,
girName,
buildNpmPackage,
ts-for-gir-src,
...
}:
buildNpmPackage {
pname = "${package.pname}-types";
inherit (package) version;
npmDepsHash = "sha256-8De8tRUKzRhD1jyx0anYNPMhxZyIr2nI45HdK6nb8jI=";
src = ./.;
dontNpmBuild = true;
buildPhase = ''
npx @ts-for-gir/cli generate ${girName} \
-g ${package.dev}/share/gir-1.0 \
-g ${ts-for-gir-src}/girs \
--ignoreVersionConflicts \
--package \
-e gjs -o ./types
'';
installPhase = ''
cp -r ./types $out
'';
}

1204
modules/ags/mk-types/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,5 @@
{
"dependencies": {
"@ts-for-gir/cli": "^3.3.0"
}
}