2019-06-14 17:10:37 +03:00
|
|
|
self: super:
|
|
|
|
let
|
|
|
|
inherit (self.arion-project) haskellPkgs;
|
2019-09-28 01:42:03 +03:00
|
|
|
inherit (super) lib;
|
2019-06-23 22:27:13 +03:00
|
|
|
|
2019-10-04 17:37:39 +03:00
|
|
|
sources = import ./sources.nix;
|
|
|
|
|
2019-10-25 02:07:10 +03:00
|
|
|
fakeRepo = src: super.runCommand "source" { inherit src; buildInputs = [super.git]; } ''
|
|
|
|
cp -r --no-preserve=mode $src $out
|
|
|
|
git init
|
|
|
|
cp -r .git $out
|
|
|
|
'';
|
|
|
|
|
2019-06-14 17:10:37 +03:00
|
|
|
in
|
|
|
|
{
|
2019-06-23 22:27:13 +03:00
|
|
|
|
2019-10-04 18:16:41 +03:00
|
|
|
inherit (import ./.. { pkgs = self; }) arion;
|
2019-01-20 19:04:34 +03:00
|
|
|
tests = super.callPackage ../tests {};
|
2019-10-24 20:36:58 +03: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];
|
2019-10-25 02:07:10 +03:00
|
|
|
src = fakeRepo ../.;
|
2019-10-24 20:36:58 +03:00
|
|
|
HOME = ".";
|
|
|
|
buildPhase = "antora antora-playbook";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
mv public/* $out/
|
|
|
|
'';
|
|
|
|
};
|
2019-06-14 17:10:37 +03: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 22:01:57 +03:00
|
|
|
super.docker-compose
|
2019-10-04 17:37:39 +03:00
|
|
|
self.niv
|
2019-10-04 18:24:01 +03:00
|
|
|
self.releaser
|
2019-06-14 17:10:37 +03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2019-10-04 17:37:39 +03:00
|
|
|
|
|
|
|
inherit (import (sources.niv) {}) niv;
|
2019-10-04 18:24:01 +03:00
|
|
|
releaser = self.haskellPackages.callCabal2nix "releaser" sources.releaser {};
|
2019-01-20 19:04:34 +03:00
|
|
|
}
|