diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-09-17 23:15:33 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-09-17 23:15:33 +0900 |
| commit | 3d963b9f676af583c2ab5f29b87beb0c4800e764 (patch) | |
| tree | 0ef02f0ea8105790074af864d6dd7983c2e28973 | |
| parent | 4b7d616862dc7d8c73561b85deb0ca1fabf30781 (diff) | |
nix: include package buildInputs in devShells
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
| -rw-r--r-- | flake.nix | 8 | ||||
| -rw-r--r-- | nixos.nix | 18 |
2 files changed, 17 insertions, 9 deletions
@@ -34,7 +34,13 @@ devShells = forAllSystems (system: { default = nixpkgsFor.${system}.mkShell { - buildInputs = with nixpkgsFor.${system}; [ self.packages.${system}.fortify ]; + buildInputs = + with nixpkgsFor.${system}; + [ self.packages.${system}.fortify ] ++ self.packages.${system}.fortify.buildInputs; + + shellHook = '' + which fortify + ''; }; }); }; @@ -274,14 +274,16 @@ in link = source: "[ -d '${source}' ] && ln -sv '${source}' $out/share || true"; in shares - ++ optional (launcher.method != "simple" && (launcher.capability.wayland || launcher.capability.x11)) ( - pkgs.runCommand "${name}-share" { } '' - mkdir -p $out/share - ${link "${pkg}/share/applications"} - ${link "${pkg}/share/icons"} - ${link "${pkg}/share/man"} - '' - ) + ++ + optional (launcher.method != "simple" && (launcher.capability.wayland || launcher.capability.x11)) + ( + pkgs.runCommand "${name}-share" { } '' + mkdir -p $out/share + ${link "${pkg}/share/applications"} + ${link "${pkg}/share/icons"} + ${link "${pkg}/share/man"} + '' + ) ) (wrap user target.launchers) target.launchers) ) [ cfg.package ] cfg.target; }; |
