Fix override example

This commit is contained in:
Sander van der Burg 2018-06-29 22:58:30 +02:00
parent cce1630d5b
commit 2fb157acaf

View file

@ -299,12 +299,12 @@ let
inherit pkgs system;
};
in
phpPackage.override (oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [ pkgs.graphviz ];
phpPackage.override {
buildInputs = [ pkgs.graphviz ];
postInstall = ''
php vendor/bin/phpdocumentor -d src -t out
'';
})
}
```
The above expression overrides the generated PHP package by supplying `graphviz`