nix: include package buildInputs in devShells
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
parent
4b7d616862
commit
3d963b9f67
|
@ -34,7 +34,13 @@
|
||||||
|
|
||||||
devShells = forAllSystems (system: {
|
devShells = forAllSystems (system: {
|
||||||
default = nixpkgsFor.${system}.mkShell {
|
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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
18
nixos.nix
18
nixos.nix
|
@ -274,14 +274,16 @@ in
|
||||||
link = source: "[ -d '${source}' ] && ln -sv '${source}' $out/share || true";
|
link = source: "[ -d '${source}' ] && ln -sv '${source}' $out/share || true";
|
||||||
in
|
in
|
||||||
shares
|
shares
|
||||||
++ optional (launcher.method != "simple" && (launcher.capability.wayland || launcher.capability.x11)) (
|
++
|
||||||
pkgs.runCommand "${name}-share" { } ''
|
optional (launcher.method != "simple" && (launcher.capability.wayland || launcher.capability.x11))
|
||||||
mkdir -p $out/share
|
(
|
||||||
${link "${pkg}/share/applications"}
|
pkgs.runCommand "${name}-share" { } ''
|
||||||
${link "${pkg}/share/icons"}
|
mkdir -p $out/share
|
||||||
${link "${pkg}/share/man"}
|
${link "${pkg}/share/applications"}
|
||||||
''
|
${link "${pkg}/share/icons"}
|
||||||
)
|
${link "${pkg}/share/man"}
|
||||||
|
''
|
||||||
|
)
|
||||||
) (wrap user target.launchers) target.launchers)
|
) (wrap user target.launchers) target.launchers)
|
||||||
) [ cfg.package ] cfg.target;
|
) [ cfg.package ] cfg.target;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue