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:
parent
fa5fe2a61c
commit
29651d086b
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue