mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 14:35:30 +03:00
docs: add devShell hook
This commit is contained in:
parent
5c6e0e5e9a
commit
c67109b0f1
@ -142,6 +142,15 @@
|
||||
packages = [
|
||||
pythonWithDeps
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
cd $PRJ_ROOT/docs
|
||||
if [ ! -d src/reference ]; then
|
||||
echo "linking .#reference to src/reference, you need to update this manually\
|
||||
and remove it before a production build"
|
||||
ln -s $(nix build ..#reference --no-link --print-out-paths) src/reference
|
||||
fi
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user