forked from the-distro/infra
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
|
||
|
''
|