Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix's "packages" output is too bloated #11828

Open
edolstra opened this issue Nov 7, 2024 · 2 comments
Open

Nix's "packages" output is too bloated #11828

edolstra opened this issue Nov 7, 2024 · 2 comments

Comments

@edolstra
Copy link
Member

edolstra commented Nov 7, 2024

Describe the bug

In flakes, the packages output should contain things that a user might want to install or run. It shouldn't contain arbitrary derivations that are not of interest to the user. But Nix's own packages.<system> output contains 293 packages:

# nix flake show
...
    └───x86_64-linux
        ├───changelog-d: package 'changelog-d-1.0' - 'Concatenate changelog entries into a single one'
        ├───default: package 'nix-2.25.0pre20241107_3ab8534'
        ├───dockerImage: package 'docker-image-tarball-2.25.0pre20241107_3ab8534' - 'Docker image with Nix for x86_64-linux'
        ├───nix-cli: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-cli-armv6l-unknown-linux-gnueabihf: package 'nix-armv6l-unknown-linux-gnueabihf-2.25.0pre20241107_3ab8534'
        ├───nix-cli-armv7l-unknown-linux-gnueabihf: package 'nix-armv7l-unknown-linux-gnueabihf-2.25.0pre20241107_3ab8534'
        ├───nix-cli-ccacheStdenv: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-cli-clangStdenv: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-cli-gccStdenv: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-cli-libcxxStdenv: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-cli-riscv64-unknown-linux-gnu: package 'nix-riscv64-unknown-linux-gnu-2.25.0pre20241107_3ab8534'
        ├───nix-cli-static: package 'nix-static-x86_64-unknown-linux-musl-2.25.0pre20241107_3ab8534'
        ├───nix-cli-stdenv: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-cli-x86_64-unknown-freebsd: package 'nix-x86_64-unknown-freebsd-2.25.0pre20241107_3ab8534'
        ├───nix-cli-x86_64-unknown-netbsd: package 'nix-x86_64-unknown-netbsd-2.25.0pre20241107_3ab8534'
        ├───nix-cli-x86_64-w64-mingw32: package 'nix-x86_64-w64-mingw32-2.25.0pre20241107_3ab8534'
        ├───nix-cmd: package 'nix-cmd-2.25.0pre'
        ├───nix-cmd-armv6l-unknown-linux-gnueabihf: package 'nix-cmd-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-cmd-armv7l-unknown-linux-gnueabihf: package 'nix-cmd-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-cmd-ccacheStdenv: package 'nix-cmd-2.25.0pre'
        ├───nix-cmd-clangStdenv: package 'nix-cmd-2.25.0pre'
        ├───nix-cmd-gccStdenv: package 'nix-cmd-2.25.0pre'
        ├───nix-cmd-libcxxStdenv: package 'nix-cmd-2.25.0pre'
        ├───nix-cmd-riscv64-unknown-linux-gnu: package 'nix-cmd-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-cmd-static: package 'nix-cmd-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-cmd-stdenv: package 'nix-cmd-2.25.0pre'
        ├───nix-cmd-x86_64-unknown-freebsd: package 'nix-cmd-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-cmd-x86_64-unknown-netbsd: package 'nix-cmd-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-cmd-x86_64-w64-mingw32: package 'nix-cmd-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-everything: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-armv6l-unknown-linux-gnueabihf: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-armv7l-unknown-linux-gnueabihf: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-ccacheStdenv: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-clangStdenv: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-gccStdenv: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-libcxxStdenv: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-riscv64-unknown-linux-gnu: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-static: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-stdenv: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-x86_64-unknown-freebsd: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-x86_64-unknown-netbsd: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-everything-x86_64-w64-mingw32: package 'nix-2.25.0pre20241107_3ab8534'
        ├───nix-expr: package 'nix-expr-2.25.0pre'
        ├───nix-expr-armv6l-unknown-linux-gnueabihf: package 'nix-expr-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-expr-armv7l-unknown-linux-gnueabihf: package 'nix-expr-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-expr-c: package 'nix-expr-c-2.25.0pre'
        ├───nix-expr-c-armv6l-unknown-linux-gnueabihf: package 'nix-expr-c-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-expr-c-armv7l-unknown-linux-gnueabihf: package 'nix-expr-c-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-expr-c-ccacheStdenv: package 'nix-expr-c-2.25.0pre'
        ├───nix-expr-c-clangStdenv: package 'nix-expr-c-2.25.0pre'
        ├───nix-expr-c-gccStdenv: package 'nix-expr-c-2.25.0pre'
        ├───nix-expr-c-libcxxStdenv: package 'nix-expr-c-2.25.0pre'
        ├───nix-expr-c-riscv64-unknown-linux-gnu: package 'nix-expr-c-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-expr-c-static: package 'nix-expr-c-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-expr-c-stdenv: package 'nix-expr-c-2.25.0pre'
        ├───nix-expr-c-x86_64-unknown-freebsd: package 'nix-expr-c-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-expr-c-x86_64-unknown-netbsd: package 'nix-expr-c-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-expr-c-x86_64-w64-mingw32: package 'nix-expr-c-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-expr-ccacheStdenv: package 'nix-expr-2.25.0pre'
        ├───nix-expr-clangStdenv: package 'nix-expr-2.25.0pre'
        ├───nix-expr-gccStdenv: package 'nix-expr-2.25.0pre'
        ├───nix-expr-libcxxStdenv: package 'nix-expr-2.25.0pre'
        ├───nix-expr-riscv64-unknown-linux-gnu: package 'nix-expr-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-expr-static: package 'nix-expr-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-expr-stdenv: package 'nix-expr-2.25.0pre'
        ├───nix-expr-test-support: package 'nix-util-test-support-2.25.0pre'
        ├───nix-expr-test-support-armv6l-unknown-linux-gnueabihf: package 'nix-util-test-support-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-expr-test-support-armv7l-unknown-linux-gnueabihf: package 'nix-util-test-support-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-expr-test-support-ccacheStdenv: package 'nix-util-test-support-2.25.0pre'
        ├───nix-expr-test-support-clangStdenv: package 'nix-util-test-support-2.25.0pre'
        ├───nix-expr-test-support-gccStdenv: package 'nix-util-test-support-2.25.0pre'
        ├───nix-expr-test-support-libcxxStdenv: package 'nix-util-test-support-2.25.0pre'
        ├───nix-expr-test-support-riscv64-unknown-linux-gnu: package 'nix-util-test-support-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-expr-test-support-static: package 'nix-util-test-support-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-expr-test-support-stdenv: package 'nix-util-test-support-2.25.0pre'
        ├───nix-expr-test-support-x86_64-unknown-freebsd: package 'nix-util-test-support-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-expr-test-support-x86_64-unknown-netbsd: package 'nix-util-test-support-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-expr-test-support-x86_64-w64-mingw32: package 'nix-util-test-support-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-expr-tests: package 'nix-expr-tests-2.25.0pre'
        ├───nix-expr-tests-armv6l-unknown-linux-gnueabihf: package 'nix-expr-tests-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-expr-tests-armv7l-unknown-linux-gnueabihf: package 'nix-expr-tests-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-expr-tests-ccacheStdenv: package 'nix-expr-tests-2.25.0pre'
        ├───nix-expr-tests-clangStdenv: package 'nix-expr-tests-2.25.0pre'
        ├───nix-expr-tests-gccStdenv: package 'nix-expr-tests-2.25.0pre'
        ├───nix-expr-tests-libcxxStdenv: package 'nix-expr-tests-2.25.0pre'
        ├───nix-expr-tests-riscv64-unknown-linux-gnu: package 'nix-expr-tests-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-expr-tests-static: package 'nix-expr-tests-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-expr-tests-stdenv: package 'nix-expr-tests-2.25.0pre'
        ├───nix-expr-tests-x86_64-unknown-freebsd: package 'nix-expr-tests-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-expr-tests-x86_64-unknown-netbsd: package 'nix-expr-tests-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-expr-tests-x86_64-w64-mingw32: package 'nix-expr-tests-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-expr-x86_64-unknown-freebsd: package 'nix-expr-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-expr-x86_64-unknown-netbsd: package 'nix-expr-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-expr-x86_64-w64-mingw32: package 'nix-expr-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-external-api-docs: package 'nix-external-api-docs-2.25.0pre20241107_3ab8534'
        ├───nix-fetchers: package 'nix-fetchers-2.25.0pre'
        ├───nix-fetchers-armv6l-unknown-linux-gnueabihf: package 'nix-fetchers-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-fetchers-armv7l-unknown-linux-gnueabihf: package 'nix-fetchers-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-fetchers-ccacheStdenv: package 'nix-fetchers-2.25.0pre'
        ├───nix-fetchers-clangStdenv: package 'nix-fetchers-2.25.0pre'
        ├───nix-fetchers-gccStdenv: package 'nix-fetchers-2.25.0pre'
        ├───nix-fetchers-libcxxStdenv: package 'nix-fetchers-2.25.0pre'
        ├───nix-fetchers-riscv64-unknown-linux-gnu: package 'nix-fetchers-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-fetchers-static: package 'nix-fetchers-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-fetchers-stdenv: package 'nix-fetchers-2.25.0pre'
        ├───nix-fetchers-tests: package 'nix-fetchers-tests-2.25.0pre'
        ├───nix-fetchers-tests-armv6l-unknown-linux-gnueabihf: package 'nix-fetchers-tests-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-fetchers-tests-armv7l-unknown-linux-gnueabihf: package 'nix-fetchers-tests-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-fetchers-tests-ccacheStdenv: package 'nix-fetchers-tests-2.25.0pre'
        ├───nix-fetchers-tests-clangStdenv: package 'nix-fetchers-tests-2.25.0pre'
        ├───nix-fetchers-tests-gccStdenv: package 'nix-fetchers-tests-2.25.0pre'
        ├───nix-fetchers-tests-libcxxStdenv: package 'nix-fetchers-tests-2.25.0pre'
        ├───nix-fetchers-tests-riscv64-unknown-linux-gnu: package 'nix-fetchers-tests-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-fetchers-tests-static: package 'nix-fetchers-tests-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-fetchers-tests-stdenv: package 'nix-fetchers-tests-2.25.0pre'
        ├───nix-fetchers-tests-x86_64-unknown-freebsd: package 'nix-fetchers-tests-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-fetchers-tests-x86_64-unknown-netbsd: package 'nix-fetchers-tests-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-fetchers-tests-x86_64-w64-mingw32: package 'nix-fetchers-tests-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-fetchers-x86_64-unknown-freebsd: package 'nix-fetchers-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-fetchers-x86_64-unknown-netbsd: package 'nix-fetchers-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-fetchers-x86_64-w64-mingw32: package 'nix-fetchers-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-flake: package 'nix-flake-2.25.0pre'
        ├───nix-flake-armv6l-unknown-linux-gnueabihf: package 'nix-flake-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-flake-armv7l-unknown-linux-gnueabihf: package 'nix-flake-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-flake-ccacheStdenv: package 'nix-flake-2.25.0pre'
        ├───nix-flake-clangStdenv: package 'nix-flake-2.25.0pre'
        ├───nix-flake-gccStdenv: package 'nix-flake-2.25.0pre'
        ├───nix-flake-libcxxStdenv: package 'nix-flake-2.25.0pre'
        ├───nix-flake-riscv64-unknown-linux-gnu: package 'nix-flake-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-flake-static: package 'nix-flake-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-flake-stdenv: package 'nix-flake-2.25.0pre'
        ├───nix-flake-tests: package 'nix-flake-tests-2.25.0pre'
        ├───nix-flake-tests-armv6l-unknown-linux-gnueabihf: package 'nix-flake-tests-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-flake-tests-armv7l-unknown-linux-gnueabihf: package 'nix-flake-tests-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-flake-tests-ccacheStdenv: package 'nix-flake-tests-2.25.0pre'
        ├───nix-flake-tests-clangStdenv: package 'nix-flake-tests-2.25.0pre'
        ├───nix-flake-tests-gccStdenv: package 'nix-flake-tests-2.25.0pre'
        ├───nix-flake-tests-libcxxStdenv: package 'nix-flake-tests-2.25.0pre'
        ├───nix-flake-tests-riscv64-unknown-linux-gnu: package 'nix-flake-tests-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-flake-tests-static: package 'nix-flake-tests-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-flake-tests-stdenv: package 'nix-flake-tests-2.25.0pre'
        ├───nix-flake-tests-x86_64-unknown-freebsd: package 'nix-flake-tests-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-flake-tests-x86_64-unknown-netbsd: package 'nix-flake-tests-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-flake-tests-x86_64-w64-mingw32: package 'nix-flake-tests-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-flake-x86_64-unknown-freebsd: package 'nix-flake-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-flake-x86_64-unknown-netbsd: package 'nix-flake-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-flake-x86_64-w64-mingw32: package 'nix-flake-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-functional-tests: package 'nix-functional-tests-2.25.0pre20241107_3ab8534'
        ├───nix-functional-tests-ccacheStdenv: package 'nix-functional-tests-2.25.0pre20241107_3ab8534'
        ├───nix-functional-tests-clangStdenv: package 'nix-functional-tests-2.25.0pre20241107_3ab8534'
        ├───nix-functional-tests-gccStdenv: package 'nix-functional-tests-2.25.0pre20241107_3ab8534'
        ├───nix-functional-tests-libcxxStdenv: package 'nix-functional-tests-2.25.0pre20241107_3ab8534'
        ├───nix-functional-tests-static: package 'nix-functional-tests-static-x86_64-unknown-linux-musl-2.25.0pre20241107_3ab8534'
        ├───nix-functional-tests-stdenv: package 'nix-functional-tests-2.25.0pre20241107_3ab8534'
        ├───nix-internal-api-docs: package 'nix-internal-api-docs-2.25.0pre20241107_3ab8534'
        ├───nix-main: package 'nix-main-2.25.0pre'
        ├───nix-main-armv6l-unknown-linux-gnueabihf: package 'nix-main-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-main-armv7l-unknown-linux-gnueabihf: package 'nix-main-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-main-c: package 'nix-main-c-2.25.0pre'
        ├───nix-main-c-armv6l-unknown-linux-gnueabihf: package 'nix-main-c-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-main-c-armv7l-unknown-linux-gnueabihf: package 'nix-main-c-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-main-c-ccacheStdenv: package 'nix-main-c-2.25.0pre'
        ├───nix-main-c-clangStdenv: package 'nix-main-c-2.25.0pre'
        ├───nix-main-c-gccStdenv: package 'nix-main-c-2.25.0pre'
        ├───nix-main-c-libcxxStdenv: package 'nix-main-c-2.25.0pre'
        ├───nix-main-c-riscv64-unknown-linux-gnu: package 'nix-main-c-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-main-c-static: package 'nix-main-c-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-main-c-stdenv: package 'nix-main-c-2.25.0pre'
        ├───nix-main-c-x86_64-unknown-freebsd: package 'nix-main-c-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-main-c-x86_64-unknown-netbsd: package 'nix-main-c-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-main-c-x86_64-w64-mingw32: package 'nix-main-c-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-main-ccacheStdenv: package 'nix-main-2.25.0pre'
        ├───nix-main-clangStdenv: package 'nix-main-2.25.0pre'
        ├───nix-main-gccStdenv: package 'nix-main-2.25.0pre'
        ├───nix-main-libcxxStdenv: package 'nix-main-2.25.0pre'
        ├───nix-main-riscv64-unknown-linux-gnu: package 'nix-main-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-main-static: package 'nix-main-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-main-stdenv: package 'nix-main-2.25.0pre'
        ├───nix-main-x86_64-unknown-freebsd: package 'nix-main-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-main-x86_64-unknown-netbsd: package 'nix-main-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-main-x86_64-w64-mingw32: package 'nix-main-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-manual: package 'nix-manual-2.25.0pre20241107_3ab8534'
        ├───nix-perl-bindings: package 'nix-perl-2.25.0pre'
        ├───nix-perl-bindings-ccacheStdenv: package 'nix-perl-2.25.0pre'
        ├───nix-perl-bindings-clangStdenv: package 'nix-perl-2.25.0pre'
        ├───nix-perl-bindings-gccStdenv: package 'nix-perl-2.25.0pre'
        ├───nix-perl-bindings-libcxxStdenv: package 'nix-perl-2.25.0pre'
        ├───nix-perl-bindings-static: package 'nix-perl-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-perl-bindings-stdenv: package 'nix-perl-2.25.0pre'
        ├───nix-store: package 'nix-store-2.25.0pre'
        ├───nix-store-armv6l-unknown-linux-gnueabihf: package 'nix-store-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-store-armv7l-unknown-linux-gnueabihf: package 'nix-store-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-store-c: package 'nix-store-c-2.25.0pre'
        ├───nix-store-c-armv6l-unknown-linux-gnueabihf: package 'nix-store-c-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-store-c-armv7l-unknown-linux-gnueabihf: package 'nix-store-c-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-store-c-ccacheStdenv: package 'nix-store-c-2.25.0pre'
        ├───nix-store-c-clangStdenv: package 'nix-store-c-2.25.0pre'
        ├───nix-store-c-gccStdenv: package 'nix-store-c-2.25.0pre'
        ├───nix-store-c-libcxxStdenv: package 'nix-store-c-2.25.0pre'
        ├───nix-store-c-riscv64-unknown-linux-gnu: package 'nix-store-c-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-store-c-static: package 'nix-store-c-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-store-c-stdenv: package 'nix-store-c-2.25.0pre'
        ├───nix-store-c-x86_64-unknown-freebsd: package 'nix-store-c-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-store-c-x86_64-unknown-netbsd: package 'nix-store-c-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-store-c-x86_64-w64-mingw32: package 'nix-store-c-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-store-ccacheStdenv: package 'nix-store-2.25.0pre'
        ├───nix-store-clangStdenv: package 'nix-store-2.25.0pre'
        ├───nix-store-gccStdenv: package 'nix-store-2.25.0pre'
        ├───nix-store-libcxxStdenv: package 'nix-store-2.25.0pre'
        ├───nix-store-riscv64-unknown-linux-gnu: package 'nix-store-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-store-static: package 'nix-store-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-store-stdenv: package 'nix-store-2.25.0pre'
        ├───nix-store-test-support: package 'nix-store-test-support-2.25.0pre'
        ├───nix-store-test-support-armv6l-unknown-linux-gnueabihf: package 'nix-store-test-support-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-store-test-support-armv7l-unknown-linux-gnueabihf: package 'nix-store-test-support-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-store-test-support-ccacheStdenv: package 'nix-store-test-support-2.25.0pre'
        ├───nix-store-test-support-clangStdenv: package 'nix-store-test-support-2.25.0pre'
        ├───nix-store-test-support-gccStdenv: package 'nix-store-test-support-2.25.0pre'
        ├───nix-store-test-support-libcxxStdenv: package 'nix-store-test-support-2.25.0pre'
        ├───nix-store-test-support-riscv64-unknown-linux-gnu: package 'nix-store-test-support-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-store-test-support-static: package 'nix-store-test-support-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-store-test-support-stdenv: package 'nix-store-test-support-2.25.0pre'
        ├───nix-store-test-support-x86_64-unknown-freebsd: package 'nix-store-test-support-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-store-test-support-x86_64-unknown-netbsd: package 'nix-store-test-support-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-store-test-support-x86_64-w64-mingw32: package 'nix-store-test-support-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-store-tests: package 'nix-store-tests-2.25.0pre'
        ├───nix-store-tests-armv6l-unknown-linux-gnueabihf: package 'nix-store-tests-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-store-tests-armv7l-unknown-linux-gnueabihf: package 'nix-store-tests-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-store-tests-ccacheStdenv: package 'nix-store-tests-2.25.0pre'
        ├───nix-store-tests-clangStdenv: package 'nix-store-tests-2.25.0pre'
        ├───nix-store-tests-gccStdenv: package 'nix-store-tests-2.25.0pre'
        ├───nix-store-tests-libcxxStdenv: package 'nix-store-tests-2.25.0pre'
        ├───nix-store-tests-riscv64-unknown-linux-gnu: package 'nix-store-tests-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-store-tests-static: package 'nix-store-tests-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-store-tests-stdenv: package 'nix-store-tests-2.25.0pre'
        ├───nix-store-tests-x86_64-unknown-freebsd: package 'nix-store-tests-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-store-tests-x86_64-unknown-netbsd: package 'nix-store-tests-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-store-tests-x86_64-w64-mingw32: package 'nix-store-tests-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-store-x86_64-unknown-freebsd: package 'nix-store-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-store-x86_64-unknown-netbsd: package 'nix-store-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-store-x86_64-w64-mingw32: package 'nix-store-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-util: package 'nix-util-2.25.0pre'
        ├───nix-util-armv6l-unknown-linux-gnueabihf: package 'nix-util-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-util-armv7l-unknown-linux-gnueabihf: package 'nix-util-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-util-c: package 'nix-util-c-2.25.0pre'
        ├───nix-util-c-armv6l-unknown-linux-gnueabihf: package 'nix-util-c-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-util-c-armv7l-unknown-linux-gnueabihf: package 'nix-util-c-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-util-c-ccacheStdenv: package 'nix-util-c-2.25.0pre'
        ├───nix-util-c-clangStdenv: package 'nix-util-c-2.25.0pre'
        ├───nix-util-c-gccStdenv: package 'nix-util-c-2.25.0pre'
        ├───nix-util-c-libcxxStdenv: package 'nix-util-c-2.25.0pre'
        ├───nix-util-c-riscv64-unknown-linux-gnu: package 'nix-util-c-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-util-c-static: package 'nix-util-c-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-util-c-stdenv: package 'nix-util-c-2.25.0pre'
        ├───nix-util-c-x86_64-unknown-freebsd: package 'nix-util-c-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-util-c-x86_64-unknown-netbsd: package 'nix-util-c-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-util-c-x86_64-w64-mingw32: package 'nix-util-c-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-util-ccacheStdenv: package 'nix-util-2.25.0pre'
        ├───nix-util-clangStdenv: package 'nix-util-2.25.0pre'
        ├───nix-util-gccStdenv: package 'nix-util-2.25.0pre'
        ├───nix-util-libcxxStdenv: package 'nix-util-2.25.0pre'
        ├───nix-util-riscv64-unknown-linux-gnu: package 'nix-util-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-util-static: package 'nix-util-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-util-stdenv: package 'nix-util-2.25.0pre'
        ├───nix-util-test-support: package 'nix-util-test-support-2.25.0pre'
        ├───nix-util-test-support-armv6l-unknown-linux-gnueabihf: package 'nix-util-test-support-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-util-test-support-armv7l-unknown-linux-gnueabihf: package 'nix-util-test-support-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-util-test-support-ccacheStdenv: package 'nix-util-test-support-2.25.0pre'
        ├───nix-util-test-support-clangStdenv: package 'nix-util-test-support-2.25.0pre'
        ├───nix-util-test-support-gccStdenv: package 'nix-util-test-support-2.25.0pre'
        ├───nix-util-test-support-libcxxStdenv: package 'nix-util-test-support-2.25.0pre'
        ├───nix-util-test-support-riscv64-unknown-linux-gnu: package 'nix-util-test-support-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-util-test-support-static: package 'nix-util-test-support-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-util-test-support-stdenv: package 'nix-util-test-support-2.25.0pre'
        ├───nix-util-test-support-x86_64-unknown-freebsd: package 'nix-util-test-support-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-util-test-support-x86_64-unknown-netbsd: package 'nix-util-test-support-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-util-test-support-x86_64-w64-mingw32: package 'nix-util-test-support-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-util-tests: package 'nix-util-tests-2.25.0pre'
        ├───nix-util-tests-armv6l-unknown-linux-gnueabihf: package 'nix-util-tests-armv6l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-util-tests-armv7l-unknown-linux-gnueabihf: package 'nix-util-tests-armv7l-unknown-linux-gnueabihf-2.25.0pre'
        ├───nix-util-tests-ccacheStdenv: package 'nix-util-tests-2.25.0pre'
        ├───nix-util-tests-clangStdenv: package 'nix-util-tests-2.25.0pre'
        ├───nix-util-tests-gccStdenv: package 'nix-util-tests-2.25.0pre'
        ├───nix-util-tests-libcxxStdenv: package 'nix-util-tests-2.25.0pre'
        ├───nix-util-tests-riscv64-unknown-linux-gnu: package 'nix-util-tests-riscv64-unknown-linux-gnu-2.25.0pre'
        ├───nix-util-tests-static: package 'nix-util-tests-static-x86_64-unknown-linux-musl-2.25.0pre'
        ├───nix-util-tests-stdenv: package 'nix-util-tests-2.25.0pre'
        ├───nix-util-tests-x86_64-unknown-freebsd: package 'nix-util-tests-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-util-tests-x86_64-unknown-netbsd: package 'nix-util-tests-x86_64-unknown-netbsd-2.25.0pre'
        ├───nix-util-tests-x86_64-w64-mingw32: package 'nix-util-tests-x86_64-w64-mingw32-2.25.0pre'
        ├───nix-util-x86_64-unknown-freebsd: package 'nix-util-x86_64-unknown-freebsd-2.25.0pre'
        ├───nix-util-x86_64-unknown-netbsd: package 'nix-util-x86_64-unknown-netbsd-2.25.0pre'
        └───nix-util-x86_64-w64-mingw32: package 'nix-util-x86_64-w64-mingw32-2.25.0pre'

This is bad UX because it hides the useful packages (i.e. nix) among all the irrelevant stuff. The vast majority of these should be removed: the tests, the cross builds (probably), all the *Stdenv stuff, dockerImage and changelog-d.

Probably the only ones that should be in there are default, nix and nix-static.

Steps To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

nix-env --version output

Additional context

Add any other context about the problem here.

Priorities

Add 👍 to issues you find important.

@edolstra edolstra added the bug label Nov 7, 2024
@bryanhonof
Copy link
Member

Would it be okay to create a new output attrset for the cross compiled packages, for example?
The tests I think can live under the checks output, I guess.

@Ericson2314
Copy link
Member

This relates to the "recipes vs CI test points" thing we were discussing the other day. The idioms flakes are intended to promote are far from clear. The proper downstream usage is also not clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants