build: add nix package
This commit is contained in:
parent
70989dc619
commit
b218d3ec30
10 changed files with 161 additions and 12 deletions
31
default.nix
Normal file
31
default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
stdenv,
|
||||
nix-gitignore,
|
||||
hugo,
|
||||
cargo,
|
||||
just,
|
||||
|
||||
callPackage,
|
||||
typegen ? (callPackage ./typegen {}),
|
||||
|
||||
srcpath ? ../src,
|
||||
}: stdenv.mkDerivation {
|
||||
name = "quickshell-docs";
|
||||
version = "0.1.0";
|
||||
src = nix-gitignore.gitignoreSource "/typegen\n" ./.;
|
||||
|
||||
buildInputs = [
|
||||
just
|
||||
hugo
|
||||
typegen
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
SRC_PATH="${srcpath}" TYPEGEN=typegen just build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r ./public/* $out/
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue