avoid exposing all of nixpkgs as an output

This commit is contained in:
Colin 2023-12-18 19:41:17 +00:00
parent e0b6671401
commit 41354f7541
1 changed files with 8 additions and 4 deletions

View File

@ -13,11 +13,15 @@
overlays.default = final: prev: with final; {
uninsane-dot-org = callPackage ./default.nix { };
};
packages.x86_64-linux = pkgs;
packages.x86_64-linux = {
# avoid exposing ALL of nixpkgs
inherit (pkgs) uninsane-dot-org;
};
defaultPackage.x86_64-linux = uninsane-dot-org;
devShells.default = mkShell {
buildInputs = with uninsane-dot-org; (buildInputs ++ nativeBuildInputs);
};
# doesn't work... ?
# devShells.default = pkgs.mkShell {
# buildInputs = with uninsane-dot-org; (buildInputs ++ nativeBuildInputs);
# };
};
}