nix packaging
Still requires manual addition of modules and tweaking pagefind.
This commit is contained in:
parent
ffdbd0e614
commit
a787497feb
5 changed files with 147 additions and 9 deletions
16
shell.nix
Normal file
16
shell.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> {},
|
||||
quickshell-web ? pkgs.callPackage ./default.nix {},
|
||||
}: pkgs.mkShell {
|
||||
inputsFrom = [ quickshell-web ];
|
||||
|
||||
nativeBuildInputs = [ (pkgs.writeShellScriptBin "yarn-install-hack" ''
|
||||
set -x
|
||||
yarn install || true
|
||||
mkdir -p node_modules/node/bin
|
||||
ln -sf ${pkgs.nodejs}/bin/node node_modules/node/bin/node
|
||||
yarn install
|
||||
'') ];
|
||||
|
||||
YARN_NODE_LINKER = "node-modules";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue