- Add Hydra release expression
- Document proper way to configure PHP in NixOS
This commit is contained in:
parent
dbcfc9b931
commit
19ec217ead
2 changed files with 30 additions and 3 deletions
|
@ -115,12 +115,12 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
time.timeZone = "UTC";
|
||||
|
||||
services.httpd = {
|
||||
enable = true;
|
||||
adminAddr = "admin@localhost";
|
||||
extraModules = [
|
||||
{ name = "php7"; path = "${pkgs.php}/modules/libphp7.so"; }
|
||||
];
|
||||
enablePHP = true;
|
||||
documentRoot = myexampleapp;
|
||||
};
|
||||
|
||||
|
|
27
release.nix
Normal file
27
release.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ nixpkgs ? <nixpkgs>
|
||||
, systems ? [ "x86_64-linux" ]
|
||||
}:
|
||||
|
||||
let
|
||||
pkgs = import nixpkgs {};
|
||||
in
|
||||
{
|
||||
package = pkgs.lib.genAttrs systems (system: (import ./default.nix {
|
||||
inherit pkgs system;
|
||||
noDev = true;
|
||||
}).override {
|
||||
executable = true;
|
||||
});
|
||||
|
||||
dev = pkgs.lib.genAttrs systems (system: (import ./default.nix {
|
||||
inherit pkgs system;
|
||||
}).override (oldAttrs: {
|
||||
buildInputs = oldAttrs.buildInputs ++ [ pkgs.graphviz ];
|
||||
executable = true;
|
||||
postInstall = ''
|
||||
vendor/bin/phpdoc
|
||||
mkdir -p $out/nix-support
|
||||
echo "doc api $out/doc" >> $out/nix-support/hydra-build-products
|
||||
'';
|
||||
}));
|
||||
}
|
Loading…
Reference in a new issue