1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-25 02:10:57 +01:00
home-manager/tests/modules/programs/radicle/basic-configuration.nix
Austin Horstman 527ad07e66 tests/radicle: stub radicle-node
Failing build is blocking CI, test only verifies generated config.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-12-22 01:11:39 -06:00

23 lines
454 B
Nix

{
config = {
programs.radicle.enable = true;
test.stubs.radicle-node = {
buildScript = ''
mkdir -p "$out/bin"
cat > "$out/bin/rad" << 'EOF'
#!/bin/sh
# Stub rad command that does nothing
exit 0
EOF
chmod +x "$out/bin/rad"
'';
};
nmt.script = ''
assertFileContent \
home-files/.radicle/config.json \
${./basic-configuration.json}
'';
};
}