composer2nix/release.nix

42 lines
885 B
Nix
Raw Normal View History

{ 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
'';
}));
2020-03-31 21:08:24 +00:00
tests = {
dependencies = pkgs.lib.genAttrs systems (system:
import ./tests/dependencies {
inherit pkgs;
}
);
enduser = pkgs.lib.genAttrs systems (system:
import ./tests/enduser {
inherit pkgs;
}
);
};
}