You are not logged in.

#1 2023-11-06 14:50:53

nibazshab
Member
Registered: 2022-08-25
Posts: 60

Why nix need so many Deps ?

I'm not a professional user, I'm not blaming, I'm just looking for answers here.

Why nix need deps like these xorgproto, alsa-lib ...? It just a package manager.
Maybe it only need itself without other deps?

root@vps ~# pacman -S nix
正在解析依赖关系...
正在查找软件包冲突...

软件包 (40) alsa-lib-1.2.10-2  alsa-topology-conf-1.2.5.1-3  alsa-ucm-conf-1.2.10-2
            aws-c-auth-0.7.1-1  aws-c-cal-0.6.1-1  aws-c-common-0.9.0-1  aws-c-compression-0.2.17-1
            aws-c-event-stream-0.3.1-1  aws-c-http-0.7.11-1  aws-c-io-0.13.30-1
            aws-c-mqtt-0.8.14-1  aws-c-s3-0.3.14-1  aws-c-sdkutils-0.1.12-1  aws-checksums-0.1.17-1
            aws-crt-cpp-0.20.7-1  aws-sdk-cpp-1.11.124-1  boost-libs-1.83.0-2  editline-1.17.1-3
            flac-1.4.3-1  gc-8.2.4-1  lame-3.100-4  libasyncns-1:0.8+r3+g68cd5af-2
            libcpuid-0.6.4-2  libmd-1.1.0-1  libogg-1.3.5-1  libpulse-16.1-6  libsndfile-1.2.2-1
            libsodium-1.0.19-2  libvorbis-1.3.7-3  libxau-1.0.11-2  libxcb-1.16-1  libxdmcp-1.1.4-2
            lowdown-1.0.2-2  mpg123-1.32.3-1  nix-busybox-1.35.0-1  opus-1.4-1  s2n-tls-1.3.47-1
            xcb-proto-1.16.0-1  xorgproto-2023.2-1  nix-2.18.1-5

下载大小:       73.13 MiB
全部安装大小:  696.36 MiB

:: 进行安装吗? [Y/n] n

Offline

#2 2023-11-06 15:06:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,875

Re: Why nix need so many Deps ?

Why? Because that's how software works when it uses external libraries. See pactree.

Offline

#3 2023-11-06 18:32:41

xerxes_
Member
Registered: 2018-04-29
Posts: 923

Re: Why nix need so many Deps ?

Pactree is out of main repo now.

Offline

#4 2023-11-06 20:19:52

seth
Member
Registered: 2012-09-03
Posts: 65,801

Offline

#5 2023-11-07 21:55:49

walkingstickfan
Member
From: USA
Registered: 2021-05-10
Posts: 113

Re: Why nix need so many Deps ?

Dependencies save duplicate efforts. A dependency can be used by other packages instead of each developer having to re-create the wheel.


Arch Linux with Openbox & Tint2

Offline

#6 2025-07-15 09:55:22

nibazshab
Member
Registered: 2022-08-25
Posts: 60

Re: Why nix need so many Deps ?

Now it from 696.46 Mib to 69.22 MiB, packages from 40 to 32.

aws-c-auth-0.9.0-1  aws-c-cal-0.9.2-1  aws-c-common-0.12.3-1  aws-c-compression-0.3.1-1  aws-c-event-stream-0.5.5-1  aws-c-http-0.10.2-1
aws-c-io-0.20.1-1  aws-c-mqtt-0.13.2-1  aws-c-s3-0.8.3-1  aws-c-sdkutils-0.2.4-1  aws-checksums-0.2.7-1  aws-crt-cpp-0.32.10-1
aws-sdk-cpp-core-1.11.598-1  aws-sdk-cpp-iam-1.11.598-1  aws-sdk-cpp-s3-1.11.598-1  boost-libs-1.88.0-3  editline-1.17.1-4  gc-8.2.8-2
hwloc-2.12.1-1  libblake3-1.8.2-1  libcpuid-0.8.0-1  libgit2-1:1.9.1-1  libmd-1.1.0-2  libpciaccess-0.18.1-2  libsodium-1.0.20-1  llhttp-9.2.1-2
lowdown-1.4.0-1  nix-busybox-1.36.1-2  nlohmann-json-3.12.0-2  onetbb-2022.2.0-1  s2n-tls-1.5.21-1  nix-2.30.0-1

Offline

Board footer

Powered by FluxBB