refactor stockholmLentil
This commit is contained in:
parent
5a3da7fb50
commit
0b645a7e21
|
@ -2,7 +2,12 @@
|
|||
|
||||
with pkgs;
|
||||
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; [
|
||||
coreutils
|
||||
git
|
||||
|
@ -14,7 +19,7 @@ in {
|
|||
public_commands.insert(0,{
|
||||
'capname' : "stockholm-issue",
|
||||
'pattern' : indirect_pattern.format("stockholm-issue"),
|
||||
'argv' : ["${random-issue}"],
|
||||
'argv' : ["${random-issue}/bin/random-issue"],
|
||||
'env' : { 'state_dir': workdir,
|
||||
'PATH':'${random-issue-path}',
|
||||
'origin':'http://cgit.pnp/stockholm' } })
|
||||
|
|
Loading…
Reference in a new issue