chore(nix): add nice welcome message to dev shell
Signed-off-by: Seth Flynn <getchoo@tuta.io> (cherry picked from commit 38ec7def324891c5062d9b58c1180d44494f91d1)
This commit is contained in:
parent
ddcd61c808
commit
b02718ee57
20
flake.nix
20
flake.nix
@ -89,6 +89,24 @@
|
|||||||
|
|
||||||
packages' = self.packages.${system};
|
packages' = self.packages.${system};
|
||||||
|
|
||||||
|
welcomeMessage = ''
|
||||||
|
Welcome to the Prism Launcher repository! 🌈
|
||||||
|
|
||||||
|
We just set some things up for you. To get building, you can run:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cd "$cmakeBuildDir"
|
||||||
|
$ ninjaBuildPhase
|
||||||
|
$ ninjaInstallPhase
|
||||||
|
```
|
||||||
|
|
||||||
|
Feel free to ask any questions in our Discord server or Matrix space:
|
||||||
|
- https://prismlauncher.org/discord
|
||||||
|
- https://matrix.to/#/#prismlauncher:matrix.org
|
||||||
|
|
||||||
|
And thanks for helping out :)
|
||||||
|
'';
|
||||||
|
|
||||||
# Re-use our package wrapper to wrap our development environment
|
# Re-use our package wrapper to wrap our development environment
|
||||||
qt-wrapper-env = packages'.prismlauncher.overrideAttrs (old: {
|
qt-wrapper-env = packages'.prismlauncher.overrideAttrs (old: {
|
||||||
name = "qt-wrapper-env";
|
name = "qt-wrapper-env";
|
||||||
@ -134,6 +152,8 @@
|
|||||||
cd ..
|
cd ..
|
||||||
ln -s "$cmakeBuildDir"/compile_commands.json compile_commands.json
|
ln -s "$cmakeBuildDir"/compile_commands.json compile_commands.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo ${lib.escapeShellArg welcomeMessage}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user