composer2nix/release.nix
Sander van der Burg 19ec217ead - Add Hydra release expression
- Document proper way to configure PHP in NixOS
2017-10-09 22:23:18 +02:00

27 lines
622 B
Nix

{ 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
'';
}));
}