quickshell-web/shell.nix
outfoxxed a787497feb
nix packaging
Still requires manual addition of modules and tweaking pagefind.
2024-09-28 02:26:13 -07:00

17 lines
412 B
Nix

{
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";
}