Your message dated Sun, 13 Mar 2022 16:37:50 +0000
with message-id <[email protected]>
and subject line Bug#1004113: fixed in nix 2.7.0+dfsg-1
has caused the Debian Bug report #1004113,
regarding nix-bin: Installing nix-bin and nix-setup-systemd not enough to get a 
functional nix?
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1004113: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004113
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nix-bin
Version: 2.3.10+dfsg1-1
Severity: important

Dear Maintainer,

I have installed nix-bin and nix-setup-systemd.  I've added myself to the
nix-users group, made sure the nix-daemon.service is running, etc.

My problem is that nix doesn't appear to be in a functional state.  If
there are additional steps to take, it would be great to figure them out
and add them to /usr/share/doc/nix-bin/README.Debian.

The https://nixos.org/learn.html site, under "First Steps With Nix," has
me set up an example project and run nix-build, which gives me:

    warning: Nix search path entry 
'/nix/var/nix/profiles/per-user/matt/channels/nixpkgs' does not exist, ignoring
    warning: Nix search path entry 
'/nix/var/nix/profiles/per-user/matt/channels' does not exist, ignoring
    error: file 'nixpkgs' was not found in the Nix search path (add it using 
$NIX_PATH or -I), at /home/matt/scratch/nix/default.nix:1:17

Same problem if I run "nix-shell default.nix".

As someone with no prior knowledge of Nix, I don't know what to do.

I feel like there may be some step I haven't done, and that I haven't found
on the nixos.org site.  Perhaps something their installers do so they don't
feel like they need to document them?

I notice that the install-multi-user script in Nix's installation tarball
has this function:

place_channel_configuration() {
    if [ -z "${NIX_INSTALLER_NO_CHANNEL_ADD:-}" ]; then
        echo "https://nixos.org/channels/nixpkgs-unstable nixpkgs" > 
"$SCRATCH/.nix-channels"
        _sudo "to set up the default system channel (part 1)" \
            install -m 0664 "$SCRATCH/.nix-channels" "$ROOT_HOME/.nix-channels"
    fi
}

It has a lot of other places where it puts things in ~root/.nix-*
files/directories, as a default.  The ~root/ on my system has no .nix-*
files/directories.


Here are some details about my machine and shell state:

$ dpkg -l | grep nix-
ii  nix-bin                               2.3.10+dfsg1-1
ii  nix-setup-systemd                     2.3.10+dfsg1-1

$  systemctl list-units --type=service | grep nix
  nix-daemon.service                                    loaded active running 
Nix Daemon

$ id
uid=1000(matt) gid=1000(matt) 
groups=1000(matt),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),109(netdev),987(nix-users)

$ journalctl -u nix-daemon.service
-- Journal begins at Sun 2021-10-17 17:54:51 PDT, ends at Thu 2022-01-20 
17:14:31 PST. --
Jan 20 15:08:57 naz systemd[1]: Started Nix Daemon.
Jan 20 15:18:51 naz systemd[1]: Stopping Nix Daemon...
Jan 20 15:18:51 naz systemd[1]: nix-daemon.service: Deactivated successfully.
Jan 20 15:18:51 naz systemd[1]: Stopped Nix Daemon.
-- Boot b72f5fe8020341daa4ddbdc89850a60d --
Jan 20 15:20:21 naz systemd[1]: Started Nix Daemon.
Jan 20 15:41:06 naz nix-daemon[929]: accepted connection from pid 5761, user 
matt

$ env | grep NIX
NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/matt/channels/nixpkgs:/nix/var/nix/profiles/per-user/matt/channels
NIX_REMOTE=daemon



-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (100, 'testing'), (90, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-2-amd64 (SMP w/24 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nix-bin depends on:
ii  bzip2                   1.0.8-5
ii  curl                    7.81.0-1
ii  libboost-context1.74.0  1.74.0-14
ii  libbrotli1              1.0.9-2+b3
ii  libbz2-1.0              1.0.8-5
ii  libc6                   2.33-2
ii  libcurl3-gnutls         7.81.0-1
ii  libdbd-sqlite3-perl     1.70-3
ii  libgc1                  1:8.0.6-1.1
ii  libgcc-s1               11.2.0-13
ii  liblzma5                5.2.5-2
ii  libreadline8            8.1.2-1
ii  libseccomp2             2.5.3-2
ii  libsodium23             1.0.18-1
ii  libsqlite3-0            3.36.0-2
ii  libssl1.1               1.1.1m-1
ii  libstdc++6              11.2.0-13
ii  libwww-curl-perl        4.17-7+b1
ii  lsb-base                11.1.0
ii  perl                    5.32.1-6
ii  xz-utils                5.2.5-2

Versions of packages nix-bin recommends:
ii  nix-setup-systemd  2.3.10+dfsg1-1

nix-bin suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: nix
Source-Version: 2.7.0+dfsg-1
Done: Thomas Koch <[email protected]>

We believe that the bug you reported is fixed in the latest version of
nix, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Koch <[email protected]> (supplier of updated nix package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 13 Mar 2022 12:52:41 +0200
Source: nix
Architecture: source
Version: 2.7.0+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Thomas Koch <[email protected]>
Changed-By: Thomas Koch <[email protected]>
Closes: 1004113 1006473
Changes:
 nix (2.7.0+dfsg-1) unstable; urgency=medium
 .
   * new upstream version
   * Add note to nix-bin.README.Debian to set up nix channel.
     Thanks to Matt Armstrong <[email protected]> for reporting.
     Closes: #1004113
   * fix: build path embedded in debug symbols                                  
                                                                                
       =99% =99%
     This broke reproducible-builds. Thanks to Vagrant Cascadian 
<[email protected]>
     Closes: #1006473
Checksums-Sha1:
 24a5705dcf4ca6546c1be932cd5badea66cfd26d 2400 nix_2.7.0+dfsg-1.dsc
 d12b1d12c1448b5cda3ddc9e6e62e5612ef14260 838488 nix_2.7.0+dfsg.orig.tar.xz
 d7675a1467c181f9d82be2c4d3ff215a2ec3ece7 12080 nix_2.7.0+dfsg-1.debian.tar.xz
 11e3c3e05f8401ba71e40293af6a7082a7b13033 7977 nix_2.7.0+dfsg-1_source.buildinfo
Checksums-Sha256:
 56b82c769a62ebdd7f3a12fb50f63c55042b21877e72d223dc1cd859a1d99b8a 2400 
nix_2.7.0+dfsg-1.dsc
 c6059bc1d7ab389788ae3604e07136cf79e360649edc3222a4673b9a2bcab77f 838488 
nix_2.7.0+dfsg.orig.tar.xz
 bf7b5f486afb7dc046f39dff67423831781d53c9a451f66b81e495bfb9ca23a8 12080 
nix_2.7.0+dfsg-1.debian.tar.xz
 adc55bf0f0c75ccdffc18fbbb8e0d94158bb4a1a3a47c6cb4f9fcdae3163fab9 7977 
nix_2.7.0+dfsg-1_source.buildinfo
Files:
 aeff9ab34444334ccf53f68367c6d9c1 2400 devel optional nix_2.7.0+dfsg-1.dsc
 76182a2d5855219a60a25ed7646f5c0c 838488 devel optional 
nix_2.7.0+dfsg.orig.tar.xz
 386d2dabadaf5db9a0f9f0d4257fe351 12080 devel optional 
nix_2.7.0+dfsg-1.debian.tar.xz
 f7783f62d09c9746340489da98e63879 7977 devel optional 
nix_2.7.0+dfsg-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEdgQCBVl/ppbxMTvKB/xIkQQrploFAmIuGW0ACgkQB/xIkQQr
plpujxAAzeP6zYNcz0+G/QfOdMAz288ZfJz6M14rqPBc9K6PEBgTn2zfiqbnxlFg
ULzA8K+HXBJkchs+bfQB8dXIccWz8K3nI116KbW9AHYwHbh6Ra8/vNiKtCuF0rXu
1DPRpU8/voouAASIna+rwkiRACD+Z385yO6+r8G4RaCjqV1qcLQnemhtpU39TF7v
MBqrxu0J/RaWUCv/907MIlHnG8UPxBrDsuGO2sBcv90cVpcnKNwFHGo9CVJNP4m5
mWkBGpjXs1ZxCmbz2qxCHsrueeHEoCUYTbAixfBG4AZFH51L6Tqu9+478edTlmJf
tiJocaUI+4MBKA6Smd9SwWHsyvtn9LrdyZ9t3ioWm417sa6KxcuV0YimM/kg9Fwk
B7oikpVQ88zwmFD9PTErfu9hbAGDsTJbOlJS2Y9kQEWElOAJ6U1HF/mEI3HRDX32
cMffHQqXaAM2705yhUX/BSv7LX5yu2qI6k/4aLAAF4dDAv7gVuFVsHyM+Xfp2kbi
PntBQc+spZPHjV4fQgcA93GuvYn6DZLqgtKTXNbWemvWq5JjrtMxQ42fV9JSkswW
P6gatPC3s/kvrZdlwFWBLJbWgY3pjfPQfl3oJyUvrp8QeP6t3UycnqZ3yDbClHpn
P1hEI6/n/QUzqmHnNE6Wo1V6W9/GNm9UfO+ZbPTIeuLqAReymUY=
=EVR1
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to