refactor stockholmLentil

This commit is contained in:
makefu 2015-09-18 21:36:58 +02:00
parent bf826b0cc3
commit 8039584d66

View File

@ -2,7 +2,12 @@
with pkgs; with pkgs;
let let
random-issue = pkgs.writeScript "random-issue" (builtins.readFile ./random-issue.sh); random-issue = pkgs.substituteAll( {
name="random-issue";
dir= "bin";
isExecutable=true;
src= ./random-issue.sh;
});
random-issue-path = lib.makeSearchPath "bin" (with pkgs; [ random-issue-path = lib.makeSearchPath "bin" (with pkgs; [
coreutils coreutils
git git
@ -14,7 +19,7 @@ in {
public_commands.insert(0,{ public_commands.insert(0,{
'capname' : "stockholm-issue", 'capname' : "stockholm-issue",
'pattern' : indirect_pattern.format("stockholm-issue"), 'pattern' : indirect_pattern.format("stockholm-issue"),
'argv' : ["${random-issue}"], 'argv' : ["${random-issue}/bin/random-issue"],
'env' : { 'state_dir': workdir, 'env' : { 'state_dir': workdir,
'PATH':'${random-issue-path}', 'PATH':'${random-issue-path}',
'origin':'http://cgit.pnp/stockholm' } }) 'origin':'http://cgit.pnp/stockholm' } })