refactor stockholmLentil
This commit is contained in:
parent
5a3da7fb50
commit
0b645a7e21
|
@ -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' } })
|
||||||
|
|
Loading…
Reference in a new issue