mirror of
https://github.com/nix-community/dream2nix.git
synced 2025-01-05 21:45:54 +03:00
docs: add devShell hook
This commit is contained in:
parent
5c6e0e5e9a
commit
c67109b0f1
@ -142,6 +142,15 @@
|
|||||||
packages = [
|
packages = [
|
||||||
pythonWithDeps
|
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