Fix deps for nix run
This commit is contained in:
parent
7b5c653ed4
commit
2c46141e47
@ -12,26 +12,25 @@ beamPackages.mixRelease rec {
|
|||||||
|
|
||||||
# Disable distributed Erlang to avoid COOKIE requirement
|
# Disable distributed Erlang to avoid COOKIE requirement
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Create wrapper script that sets proper environment including COOKIE
|
# Create wrapper script that sets proper environment including COOKIE
|
||||||
mv $out/bin/systant $out/bin/.systant-wrapped
|
mv $out/bin/systant $out/bin/.systant-wrapped
|
||||||
cat > $out/bin/systant << EOF
|
cat > $out/bin/systant << EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
export RELEASE_DISTRIBUTION=none
|
export RELEASE_DISTRIBUTION=none
|
||||||
export RELEASE_NODE=nonode@nohost
|
export RELEASE_NODE=nonode@nohost
|
||||||
export RELEASE_COOKIE=dummy_cookie_for_single_node
|
export RELEASE_COOKIE=dummy_cookie_for_single_node
|
||||||
exec "$out/bin/.systant-wrapped" "\$@"
|
exec "$out/bin/.systant-wrapped" "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/bin/systant
|
chmod +x $out/bin/systant
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Mix dependencies will be automatically fetched and cached by Nix
|
# Mix dependencies will be automatically fetched and cached by Nix
|
||||||
mixFodDeps = beamPackages.fetchMixDeps {
|
mixFodDeps = beamPackages.fetchMixDeps {
|
||||||
pname = "systant-mix-deps";
|
pname = "systant-mix-deps";
|
||||||
inherit src version;
|
inherit src version;
|
||||||
sha256 = "sha256-g8L/ZzCaXznrd+YLCMgvV94NVTKoFnK/Y/RXXPIMAjg=";
|
sha256 = "sha256-99aIYuSEO7V0Scgh6c4+FIStQpM2ccUvY1NwBArvhi8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Systant - System stats MQTT daemon for monitoring system metrics";
|
description = "Systant - System stats MQTT daemon for monitoring system metrics";
|
||||||
homepage = "https://git.ryanpandya.com/ryan/systant";
|
homepage = "https://git.ryanpandya.com/ryan/systant";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user