buildInputs -> nativeBuildInputs
Will fix bash completion in the shell and is a good practice for non-shell derivations.
This commit is contained in:
parent
bddf4d919d
commit
ed42a5c708
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ let
|
||||||
|
|
||||||
sources = import ./sources.nix;
|
sources = import ./sources.nix;
|
||||||
|
|
||||||
fakeRepo = src: super.runCommand "source" { inherit src; buildInputs = [super.git]; } ''
|
fakeRepo = src: super.runCommand "source" { inherit src; nativeBuildInputs = [super.git]; } ''
|
||||||
cp -r --no-preserve=mode $src $out
|
cp -r --no-preserve=mode $src $out
|
||||||
git init
|
git init
|
||||||
cp -r .git $out
|
cp -r .git $out
|
||||||
|
@ -29,7 +29,7 @@ in
|
||||||
'';
|
'';
|
||||||
doc = self.stdenv.mkDerivation {
|
doc = self.stdenv.mkDerivation {
|
||||||
name = "arion-documentation";
|
name = "arion-documentation";
|
||||||
buildInputs = [super.antora];
|
nativeBuildInputs = [super.antora];
|
||||||
src = fakeRepo ../.;
|
src = fakeRepo ../.;
|
||||||
HOME = ".";
|
HOME = ".";
|
||||||
buildPhase = "antora antora-playbook";
|
buildPhase = "antora antora-playbook";
|
||||||
|
@ -43,7 +43,7 @@ in
|
||||||
haskellPkgs = super.haskellPackages.extend (import ./haskell-overlay.nix self super);
|
haskellPkgs = super.haskellPackages.extend (import ./haskell-overlay.nix self super);
|
||||||
shell = haskellPkgs.shellFor {
|
shell = haskellPkgs.shellFor {
|
||||||
packages = p: [p.arion-compose];
|
packages = p: [p.arion-compose];
|
||||||
buildInputs = [
|
nativeBuildInputs = [
|
||||||
haskellPkgs.cabal-install
|
haskellPkgs.cabal-install
|
||||||
haskellPkgs.ghcid
|
haskellPkgs.ghcid
|
||||||
haskellPkgs.haskell-language-server
|
haskellPkgs.haskell-language-server
|
||||||
|
|
Loading…
Reference in a new issue