21 lines
425 B
Nix
Raw Normal View History

2020-02-07 03:09:25 +04:00
p: c:
with p;
2020-08-11 02:38:02 +04:00
let
writeScript = name: script:
writeTextFile {
inherit name;
text = callPackage script {
iconfont = c.lib.base16.theme.iconFont;
config = c;
};
executable = true;
checkPhase =
"${bash}/bin/bash -n $src || ${python3}/bin/python3 -m compileall $src";
2020-02-07 03:09:25 +04:00
};
2020-08-11 02:38:02 +04:00
in
builtins.mapAttrs writeScript {
2020-02-07 03:09:25 +04:00
weather = ./weather.nix;
df = ./df.nix;
vpn-status = ./vpn-status.nix;
}