nix: add package for only types (without site)
This commit is contained in:
parent
52514ee9fb
commit
bc2c0d5d2c
3 changed files with 35 additions and 8 deletions
23
types.nix
Normal file
23
types.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue