From 41354f754107376f5c9265eae89d07275f0305de Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 18 Dec 2023 19:41:17 +0000 Subject: [PATCH] avoid exposing all of nixpkgs as an output --- flake.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index b0349ec..c84cae7 100644 --- a/flake.nix +++ b/flake.nix @@ -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); + # }; }; }