nixpkgs-suyu/upstart-jobs/make-job.nix

8 lines
203 B
Nix
Raw Normal View History

{stdenv}: job:
stdenv.mkDerivation {
inherit (job) name job;
builder = builtins.toFile "builder.sh"
"source $stdenv/setup; ensureDir $out/etc/event.d; echo \"$job\" > $out/etc/event.d/$name";
}