Re: [Nix-dev] nixos-install building FLAC and failing
That worked, has sound become enabled by default all of a sudden? Vladimír Čunát vcu...@gmail.com writes: On 06/14/2013 12:23 AM, Malcolm Matalka wrote: I'm trying to install NixOS on another Linode host, and I'm running into something odd during 'nixos-install'. Despite my configuration, AFAIK, a bunch of sound stuff is being installed, and FLAC is failing on tests, most likely because I'm running as root. I just don't understand why FLAC is being installed at all. Here is part of the output from nixos-install showing the deps it still needs to build. [...] Also, I don't seem able to build a dependency graph to see why sound is begin pulled in because nothing is actually installed yet. And what about setting sound.enable = false; in configuration.nix? It seems all to come from alsa utils. Vlada ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Obfuscated TOR bridge is packaged. Please consider running it.
I just did this and 'worked for me'. Looks like your machine cannot resolve the git host. Moritz Ulrich mor...@tarn-vedra.de writes: Just tried it: exporting https://git.torproject.org/pluggable-transports/obfsproxy.git (rev 3c4e843a30c430aec1de03e0e09ef654072efc03) into /nix/store/w3mzdvnh4wyzy86l19m6yln7iwl0fxdj-git-export fetching path `/nix/store/02yrag3nhmdz8vx6zbxjzikr209nnfch-python-offline-distutils-2.7.3'... Initialized empty Git repository in /nix/store/w3mzdvnh4wyzy86l19m6yln7iwl0fxdj-git-export/.git/ error: Couldn't resolve host 'git.torproject.org' while accessing https://git.torproject.org/pluggable-transports/obfsproxy.git/info/refs?service=git-upload-pack fatal: HTTP request failed error: Couldn't resolve host 'git.torproject.org' while accessing https://git.torproject.org/pluggable-transports/obfsproxy.git/info/refs?service=git-upload-pack fatal: HTTP request failed Unable to checkout 3c4e843a30c430aec1de03e0e09ef654072efc03 from https://git.torproject.org/pluggable-transports/obfsproxy.git. builder for `/nix/store/lvif9n2yr7fggizhqkarpi9fxc7dlnm2-git-export.drv' failed with exit code 1 On Tue, Jun 11, 2013 at 3:00 AM, phree...@yandex.ru wrote: Hi, Helping people in censorship-heavy countries has just gotten even easier. TOR in bridge mode now also runs obfsproxy which helps defeat those nasty DPI boxes in those countries which are actively trying to prevent people from using TOR. There are no known cases of non-exit node operators getting attacked by governments. Defeating censorship requires a vast and diverse pool of IP addresses, so please consider adding this to your configuration.nix on your internet-facing box: services.tor.relay = { enable = true; isBridge = true; port = 443; }; If you need help with a more complex setup, just ask me. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixos-install building FLAC and failing
On 06/14/2013 08:00 AM, Malcolm Matalka wrote: That worked, has sound become enabled by default all of a sudden? I don't know... I would prefer to have it enabled by default only iff you enable X (I'm not sure it's even possible to do that). Vlada smime.p7s Description: S/MIME Cryptographic Signature ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixos-install building FLAC and failing
I also got this error while installing a new Linode. I fixed it by reverting to the previous version of FLAC. On 13 Jun 2013 23:23, Malcolm Matalka mmata...@gmail.com wrote: I'm trying to install NixOS on another Linode host, and I'm running into something odd during 'nixos-install'. Despite my configuration, AFAIK, a bunch of sound stuff is being installed, and FLAC is failing on tests, most likely because I'm running as root. I just don't understand why FLAC is being installed at all. Here is part of the output from nixos-install showing the deps it still needs to build. building the system configuration... these derivations will be built: /nix/store/0kpj3rl5w9ycgfqs2wb5bikdmyf1sgir-unit.drv /nix/store/4v3x9b21gk0yf80aahy3l6m23l1g66kk-udev-rules.drv /nix/store/85zn8vkpwprb1i7zacd150gjmxmxh3vz-dbus-conf.drv /nix/store/9xaz4r1ivpf4pk5cq4yqzw5bfhk3hz9m-libsndfile-1.0.23.drv /nix/store/iq8rdzk2ybzvpq8m1pvwwb6lsrz6gvpg-flac-1.3.0.drv /nix/store/ja8a6k37a2vp60gpd74gd3y01iqgh7z9-units.drv /nix/store/jc3935zzvkyzc2xq61lflmnqb5420b61-alsa-utils-1.0.26.drv /nix/store/kdr9hr1gdkn1q81sigijry48shgf8r9l-system-path.drv /nix/store/npkljyz5ilgg9b8r45yi384bgqibr4cf-etc.drv /nix/store/p6cr6phxzavm78wk4srgkr8cknw53kyf-nixos-0.2pre-git.drv /nix/store/szj3ha2qac6xkr4wzvgp0p5z1gg6ahk8-system-crontab.drv /nix/store/wy5m4svdmj1gkgyzmijy7z09jfwfgqcb-libsamplerate-0.1.7.drv Here is the error: ERROR: iterator claims file is writable when tester thinks it should not be; are you running as root? ERROR during test_libFLAC make[1]: *** [check] Error 1 make[1]: Leaving directory `/tmp/nix-build-flac-1.3.0.drv-0/flac-1.3.0/test' ESC[qESC[qmake: *** [check-recursive] Error 1 ESC[qESC[qESC[qbuilder for `/nix/store/iq8rdzk2ybzvpq8m1pvwwb6lsrz6gvpg-flac-1.3.0.drv' failed with exit code 2 cannot build derivation `/nix/store/9xaz4r1ivpf4pk5cq4yqzw5bfhk3hz9m-libsndfile-1.0.23.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/wy5m4svdmj1gkgyzmijy7z09jfwfgqcb-libsamplerate-0.1.7.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/jc3935zzvkyzc2xq61lflmnqb5420b61-alsa-utils-1.0.26.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/kdr9hr1gdkn1q81sigijry48shgf8r9l-system-path.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/p6cr6phxzavm78wk4srgkr8cknw53kyf-nixos-0.2pre-git.drv': 1 dependencies couldn't be built error: build of `/nix/store/p6cr6phxzavm78wk4srgkr8cknw53kyf-nixos-0.2pre-git.drv' failed Also, I don't seem able to build a dependency graph to see why sound is begin pulled in because nothing is actually installed yet. Any suggestions how to debug this? ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixos-install building FLAC and failing
On 06/14/2013 09:26 AM, Oliver Charles wrote: I also got this error while installing a new Linode. I fixed it by reverting to the previous version of FLAC. It seems to be enough to disable the tests. However, for the tree I would prefer to fix this impurity... tests can save us in some situations. Vlada smime.p7s Description: S/MIME Cryptographic Signature ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nix-env --arg
Hello, If I first to nix-env -i openssh --arg withKerberos false and then nix-env -i openssh --arg withKerberos true Then openssh is not replaced. It seems that the hash do not depends on argument ? How can I fix this ? I think that nix-env -iA openssh --arg withKerberos false should be the way. IMO --arg only makes sense with attribute paths. I failed to do that too. I think I am doing something wrong. I attach my modify version of openssh/default.nix. Note: I made the name depend on the value of withKerberos to see what I am doing. If I create a specific entry for openssh with kerberos in all_packages.nix, it works. (i.e. nix-env -iA openssKrb5 works) If I try to install via nix-env -iA openssh --arg withKerberos false, the variable withKerberos is not transmitted. Here is also the piece of definition I have in all_packages.nix: Another related question: how should we make this kind of options visible from the end user ? Adding something in all-packages.nix ? One could add the other version to all-packages.nix, but that's probably redundant. Most people will be satisfied by a well-chosen default, and the rest can override it in ~/.nixpkgs/config.nix or similar. I did not bind how to do that. The examples I found via google were all about compilation environment, not configuration of package, so I failed to guess what to add in ~/.nixpkgs/config.nix And by the way, I prefer a systeme wide installation of openssh, so I would prefer to add something in /etc/nixos ? Thanks for the help, Christophe { stdenv, fetchurl, zlib, openssl, perl, libedit, pkgconfig, pam , etcDir ? null , hpnSupport ? false , withKerberos ? false , kerberos }: assert withKerberos - kerberos != null; let hpnSrc = fetchurl { url = http://nixos.org/tarballs/openssh-6.1p1-hpn13v14.diff.gz; sha256 = 14das6lim6fxxnx887ssw76ywsbvx3s4q3n43afgh5rgvs4xmnnq; }; in stdenv.mkDerivation rec { basename = openssh-6.2p1; # just temporary, to see what I am doing name = basename + (if withKerberos then -krb5 else ); src = fetchurl { url = ftp://ftp.nl.uu.net/pub/OpenBSD/OpenSSH/portable/${basename}.tar.gz;; sha1 = 8824708c617cc781b2bb29fa20bd905fd3d2a43d; }; prePatch = stdenv.lib.optionalString hpnSupport '' gunzip -c ${hpnSrc} | patch -p1 export NIX_LDFLAGS=$NIX_LDFLAGS -lgcc_s ''; patches = [ ./locale_archive.patch # Upstream fix for gratuitous no such identity warnings. ./fix-identity-warnings.patch ]; buildInputs = [ zlib openssl libedit pkgconfig pam ] ++ (if withKerberos then [ kerberos ] else []) ; # I set --disable-strip because later we strip anyway. And it fails to strip # properly when cross building. configureFlags = '' --with-mantype=man --with-libedit=yes --disable-strip ${if pam != null then --with-pam else --without-pam} ${if etcDir != null then --sysconfdir=${etcDir} else } ${if withKerberos then --with-kerberos5=${kerberos} else } ''; preConfigure = '' configureFlags=$configureFlags --with-privsep-path=$out/empty mkdir -p $out/empty ''; postInstall = '' # Install ssh-copy-id, it's very useful. cp contrib/ssh-copy-id $out/bin/ chmod +x $out/bin/ssh-copy-id cp contrib/ssh-copy-id.1 $out/share/man/man1/ mkdir -p $out/etc/ssh cp moduli $out/etc/ssh/ ''; installTargets = install-nosysconf; meta = { homepage = http://www.openssh.org/; description = An implementation of the SSH protocol; license = bsd; platforms = stdenv.lib.platforms.linux; maintainers = stdenv.lib.maintainers.eelco; }; } ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixos-install building FLAC and failing
Hi, On 14/06/13 00:23, Malcolm Matalka wrote: Here is the error: ERROR: iterator claims file is writable when tester thinks it should not be; are you running as root? Well, maybe the build is actually running as root. The installer is supposed to set up nixbld* uids in the target environment, but maybe something is broken there... -- Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/ ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev