You are not logged in.

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

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

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: 11,808

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: 716

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: 54,565

Offline

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

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

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

Board footer

Powered by FluxBB