2021-09-16 01:03:52 +03:00

22 lines
461 B
Nix

p: c:
with p;
let
writeScript = name: script:
writeTextFile {
inherit name;
text = callPackage script {
iconfont = c.lib.base16.theme.fonts.icon.family;
config = c;
};
executable = true;
checkPhase =
"${bash}/bin/bash -n $src || ${python3}/bin/python3 -m compileall $src";
};
in
builtins.mapAttrs writeScript {
cputemp = ./cputemp.nix;
weather = ./weather.nix;
df = ./df.nix;
vpn-status = ./vpn-status.nix;
}