Incremental Commit to see WTF I was doing.
This commit is contained in:
1 parent
276a72b4ce
commit
0b77b0516d
35 files changed
+774
-47
No files matched your search
@@ -0,0 +1,39 @@
|
||||
with import <nixpkgs> { };
|
||||
|
||||
let
|
||||
pythonPackages = python311Packages;
|
||||
in pkgs.mkShell rec {
|
||||
name = "Solid Scribe Env";
|
||||
|
||||
buildInputs = [
|
||||
# node for server
|
||||
nodejs
|
||||
nodePackages.npm
|
||||
pm2
|
||||
];
|
||||
|
||||
# Run this command, only after creating the virtual environment
|
||||
postVenvCreation = ''
|
||||
unset SOURCE_DATE_EPOCH
|
||||
'';
|
||||
|
||||
postShellHook = ''
|
||||
|
||||
if [[ ! -f lockfile.running ]] ; then
|
||||
echo "No Lock File, starting servers"
|
||||
touch lockfile.running
|
||||
|
||||
# start service
|
||||
# npm run start or whatever
|
||||
|
||||
fi
|
||||
|
||||
# kill everything when main screen is closed
|
||||
function end {
|
||||
echo "Exiting, Removing Lockfile"
|
||||
rm -f lockfile.running
|
||||
}
|
||||
trap end EXIT
|
||||
'';
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user