2
1
Fork 0

nix: add package for only types (without site)

This commit is contained in:
outfoxxed 2024-11-09 00:26:37 -08:00
parent 52514ee9fb
commit bc2c0d5d2c
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 35 additions and 8 deletions

23
types.nix Normal file
View file

@ -0,0 +1,23 @@
{
stdenv,
nix-gitignore,
just,
callPackage,
typegen ? (callPackage ./typegen {}),
srcpath ? ../src,
}: stdenv.mkDerivation {
name = "quickshell-types";
version = "0.1.0";
src = nix-gitignore.gitignoreSource "/typegen\n" ./.;
buildInputs = [ just typegen ];
buildPhase = ''
SRC_PATH="${srcpath}" TYPEGEN=typegen just typedocs
'';
installPhase = ''
mv ./data/modules $out
'';
}