hexchen
3ff9d00f7f
Taken from lix/web-services, commit hash 6d29ce968e64225faf03450c063d11a0a5c89cac Co-authored-by: Jade Lovelace <lix@jade.fyi>
15 lines
366 B
Nix
15 lines
366 B
Nix
# A wrapper for colmena that prevents accidentally deploying changes without
|
|
# having pulled.
|
|
{ colmena, runCommandNoCC }:
|
|
runCommandNoCC "colmena-wrapper"
|
|
{
|
|
env.colmena = "${colmena}/bin/colmena";
|
|
} ''
|
|
mkdir -p $out
|
|
ln -s ${colmena}/share $out/share
|
|
mkdir $out/bin
|
|
|
|
substituteAll ${./colmena-wrapper.sh.in} $out/bin/colmena
|
|
chmod +x $out/bin/colmena
|
|
''
|