diff --git a/README.md b/README.md index 630a750..b3c0565 100644 --- a/README.md +++ b/README.md @@ -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; }; diff --git a/release.nix b/release.nix new file mode 100644 index 0000000..633ef96 --- /dev/null +++ b/release.nix @@ -0,0 +1,27 @@ +{ 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 + ''; + })); +}