nixpkgs/test/upstart-jobs/make-job.nix
Eelco Dolstra 70aca5974c * Simplification.
svn path=/nixu/trunk/; revision=7076
2006-11-19 21:03:22 +00:00

8 lines
203 B
Nix

{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";
}