2019-06-14 16:10:37 +02:00
|
|
|
self: super:
|
|
|
|
let
|
|
|
|
inherit (self.arion-project) haskellPkgs;
|
2019-09-28 00:42:03 +02:00
|
|
|
inherit (super) lib;
|
2019-06-23 21:27:13 +02:00
|
|
|
|
2019-10-04 16:37:39 +02:00
|
|
|
sources = import ./sources.nix;
|
|
|
|
|
2019-06-14 16:10:37 +02:00
|
|
|
in
|
|
|
|
{
|
2019-06-23 21:27:13 +02:00
|
|
|
|
2019-10-04 17:16:41 +02:00
|
|
|
inherit (import ./.. { pkgs = self; }) arion;
|
2019-01-20 17:04:34 +01:00
|
|
|
tests = super.callPackage ../tests {};
|
2019-10-24 19:36:58 +02:00
|
|
|
|
|
|
|
doc-options = import ../docs/options.nix {};
|
|
|
|
doc-options-check = self.runCommand "doc-options-check" {} ''
|
|
|
|
diff --color -u ${../docs/modules/ROOT/partials/NixOSOptions.adoc} ${self.doc-options}
|
|
|
|
touch $out
|
|
|
|
'';
|
|
|
|
doc = self.stdenv.mkDerivation {
|
|
|
|
name = "arion-documentation";
|
|
|
|
buildInputs = [super.antora];
|
|
|
|
src = ../.;
|
|
|
|
HOME = ".";
|
|
|
|
buildPhase = "antora antora-playbook";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
mv public/* $out/
|
|
|
|
'';
|
|
|
|
};
|
2019-06-14 16:10:37 +02:00
|
|
|
|
|
|
|
arion-project = super.recurseIntoAttrs {
|
|
|
|
haskellPkgs = super.haskellPackages.extend (import ./haskell-overlay.nix self super);
|
|
|
|
shell = haskellPkgs.shellFor {
|
|
|
|
packages = p: [p.arion-compose];
|
|
|
|
buildInputs = [
|
|
|
|
haskellPkgs.cabal-install
|
|
|
|
haskellPkgs.ghcid
|
2019-09-27 21:01:57 +02:00
|
|
|
super.docker-compose
|
2019-10-04 16:37:39 +02:00
|
|
|
self.niv
|
2019-10-04 17:24:01 +02:00
|
|
|
self.releaser
|
2019-06-14 16:10:37 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2019-10-04 16:37:39 +02:00
|
|
|
|
|
|
|
inherit (import (sources.niv) {}) niv;
|
2019-10-04 17:24:01 +02:00
|
|
|
releaser = self.haskellPackages.callCabal2nix "releaser" sources.releaser {};
|
2019-01-20 17:04:34 +01:00
|
|
|
}
|