Fix/devshell (#390)

* Fix flake-info attribute name in devShell definition

* Export rust stdlib path though shell hook

* Format flake.nix
This commit is contained in:
Yannik Sander 2021-12-15 02:38:06 +01:00 committed by GitHub
parent fa5fe2a61c
commit 29651d086b
Failed to generate hash of commit

View file

@ -24,12 +24,15 @@
}; };
devShell = system: devShell = system:
let packages_inst = (packages system); let
packages_inst = (packages system);
pkgs = nixpkgs.legacyPackages.${system};
in in
nixpkgs.legacyPackages.${system}.mkShell { pkgs.mkShell {
inputsFrom = builtins.attrValues packages_inst; inputsFrom = builtins.attrValues packages_inst;
shellHook = '' shellHook = ''
export NIXPKGS_PANDOC_FILTERS_PATH="${packages_inst.flake_info.NIXPKGS_PANDOC_FILTERS_PATH}"; export RUST_SRC_PATH="${pkgs.rustPlatform.rustLibSrc}";
export NIXPKGS_PANDOC_FILTERS_PATH="${packages_inst.flake-info.NIXPKGS_PANDOC_FILTERS_PATH}";
''; '';
}; };
in in