add vendor package with code generation output (#54)

This commit is contained in:
Max 2024-07-16 01:02:58 +02:00 committed by GitHub
parent 76a3f73a42
commit 7975eea2f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

7
dev/vendor.nix Normal file
View File

@ -0,0 +1,7 @@
{ runCommand, generateSchemasProgram }:
runCommand "hyprspace-vendoring" { } ''
mkdir -p $out/schema
cd $out
${generateSchemasProgram}
''

View File

@ -47,6 +47,9 @@
generateSchemasProgram = config.apps.dev-generate-schemas.program;
};
docs = pkgs.callPackage ./docs/package.nix { hyprspace = config.packages.default; };
vendor = pkgs.callPackage ./dev/vendor.nix {
generateSchemasProgram = config.apps.dev-generate-schemas.program;
};
};
};
};