stockholm/makefu/2configs/Reaktor/stockholmLentil.nix

28 lines
854 B
Nix
Raw Normal View History

2015-09-04 20:57:16 +00:00
{ config, lib, pkgs, ... }:
with pkgs;
let
2015-09-18 19:36:58 +00:00
random-issue = pkgs.substituteAll( {
name="random-issue";
dir= "bin";
isExecutable=true;
src= ./random-issue.sh;
});
2015-09-04 20:57:16 +00:00
random-issue-path = lib.makeSearchPath "bin" (with pkgs; [
coreutils
git
gnused
lentil]);
in {
2015-09-04 21:01:41 +00:00
# TODO: make origin a variable, <- module is generic enough to handle different origins, not only stockholm
2015-09-04 20:57:16 +00:00
krebs.Reaktor.extraConfig = ''
public_commands.insert(0,{
'capname' : "stockholm-issue",
'pattern' : indirect_pattern.format("stockholm-issue"),
2015-09-18 19:36:58 +00:00
'argv' : ["${random-issue}/bin/random-issue"],
2015-09-04 20:57:16 +00:00
'env' : { 'state_dir': workdir,
'PATH':'${random-issue-path}',
'origin':'http://cgit.pnp/stockholm' } })
'';
}