Re: [Nix-dev] Cannot build stdenv-linux-boot on MacOS
Recently, I haven't had any problems with building and SSH keys when doing nixops deploy to a VM on OS X after using the setup process outlined in my first email to this thread. -Henry On Sun, Feb 1, 2015 at 2:23 AM, Wout Mertens wout.mert...@gmail.com wrote: Note that in order to build packages on the virtual Linux box, you need to be able to ssh to it as root. Nixops doesn't set that up for nix-build, which is why it fails to build. (this may be a security thing, not sure) So once you deployed and it fails to build, do a nixops ssh to the Linux vm and set up your own ssh key for root login. After that, nixops deploy will work even when it needs to build things. Wout. On Thu, Jan 29, 2015, 5:31 PM Henry Till henryt...@gmail.com wrote: I should also add that you could just as easily check out the revision of the stable channel if you prefer (currently 676e8d7, found at https://nixos.org/channels/nixos-14.12/). -Henry On Thu, Jan 29, 2015 at 11:21 AM, Henry Till henryt...@gmail.com wrote: Hello Andreas, It is definitely possible to use NixOps on OS X without a Linux build machine. I've done it recently by installing NixOps directly from Hydra using nix-install-package, and then using NixOps with a clone of nixpkgs/master in my NIX_PATH (rather than a clone of joelteon/master). Here are some instructions I wrote for doing so: https://gist.github.com/henrytill/ce67b98a5e65452705f5 The only thing I would add to these instructions is that you will get more binaries from cache.nixos.org if you check out your clone of nixpkgs at the same revision as nixos-unstable (currently db75b5d, found at https://nixos.org/channels/nixos-unstable/), and, as a result, nixops deploy will be a much quicker process. -Henry On Wed, Jan 28, 2015 at 4:28 PM, Vladimír Čunát vcu...@gmail.com wrote: Hi. On 01/28/2015 08:00 AM, Andreas Bernauer wrote: error: a ‘x86_64-linux’ is required to build ‘/nix/store/6giy9b7xg90p8pqm6f056jqdwdx36jj6-stdenv-linux-boot.drv’, but I am a ‘x86_64-darwin’ (Note: I know very little about NixOps, so I may not be accurate.) You are attempting to build *linux* packages on a darwin machine. You can deploy that way, but you need to add a x86_64-linux machine that will build the stuff (even a virtual one). See http://nixos.org/nix/manual/#chap-distributed-builds I don't know if there's a shortcut that also builds on the machines that you deploy to. Vladimir ___ 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] Haskell: Using Nix with cabal.config
I've been doing something similar, to build with specific versions that aren't in Nixpkgs. My current approach is a directory tree with a directory per package, and a .nix file per version, and a nix function that imports a particular package/version from that tree. For each package I maintain, I call cabal2nix to make the default.nix, and I put any local or pinned dependencies in shell.nix Here's a fairly typical example, with some versioned deps and some relative paths to git checkout directories. https://github.com/bergey/diagrams-stow/blob/c89d0d79d7a35373582e25efd2c0abde427d2829/nix/postscript/shell.nix I've started working on a tool to automate this sort of thing. ( https://github.com/bergey/hscache ) It's not usable yet, but I'd like to hear what your current workflow is, and ideal workflow would be. Daniel On 2015-02-01 at 03:41, Nikita Karetnikov nik...@karetnikov.org wrote: I’d like to build an application using the versions specified in a cabal.config file (cabal-install is included in the shell.nix file). Is there an easy way to do it? After talking to people on #nixos, I got the impression that having your own Nixpkgs branch is the only way if you want to share your environment with NixOS and plain Nix users. Parsing a cabal.config file and running cabal2nix on every package is not difficult. But where do I need to put the new recipes? For packages with the default.nix file, you just compare the versions and replace the existing recipe if they don’t match. For packages having multiple versions, you also need to change pkgs/top-level/haskell-packages.nix. The latter makes me a bit uncomfortable because it’s easy to make a mistake. I’d rather put all the new recipes in a different place, say, in the directory of my application, and somehow instruct Nix to use them first. Can it be done? Or is there a better way? ___ 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] added libpst
Quoting Tomas Hlavaty (2015-01-30 19:04:52) Hi all, would it be possible to add new nixpkg? Patch attached. Thank you, Tomas tnx. https://github.com/NixOS/nixpkgs/commit/461e7dd662a2c9d8222c591522cd6355662e5192 -- Rok Garbas - http://www.garbas.si signature.asc Description: signature ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] HaskellNG and priority
Hi Richard, run nix-env -e haskell-hiberico-ghc7.8.3-1-shared to remove the old version of the package from your profile. Once you've done that, you can install the new expression from haskell-ng into your profile without a collision. Best regards, Peter ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Check the priority of package in the nix store
On Sun, Feb 1, 2015 at 1:07 AM, Vladimír Čunát vcu...@gmail.com wrote: On 01/31/2015 09:19 PM, Richard Wallace wrote: Is there a way to check the priority of something in the nix-store? Any ideas why the priority is being ignored and/or lost in this process? Am there something wrong in my process? The packages in nix store don't really have any priority themselves. nix-env evaluates priority for a package at the moment when it's (re-)installed into an environment, and records it in a manifest file of that particular environment. You can inspect that file, too, e.g. ~/.nix-profile/manifest.nix So, e.g. if you changed the priorities in the expressions but not re-installed from them since, the packages will keep the old priorities in those envs. Ok, so in my case because I'm copying the closure with `nix-copy-closure` and using `nix-env -i` on the nix store path directly, nix-env never sees the package expression and hence never has a chance of seeing the priority. I guess my best option - unless I'm missing something - is to run `nix-env --set-flag priority 10 old-package-name` on each of my machines. This is a bit of a pain, but at least it's a one time thing. Thanks, Rich ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Check the priority of package in the nix store
On 02/01/2015 07:40 PM, Richard Wallace wrote: I guess my best option - unless I'm missing something - is to run `nix-env --set-flag priority 10 old-package-name` on each of my machines. This is a bit of a pain, but at least it's a one time thing. You can copy a whole profile (e.g. the target of ~/.nix-profile) and use it whole on the target; you can even add/remove packages from it later. Other than that and what you wrote, I see no better option (though I may miss some). Vladimir 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] A few questions about ARM support and NixOS on a Chromebook
I have the bootstrap-tools for armv5tel, they build and the test passes. https://github.com/viric/nixpkgs/tree/make_arm_bootstraptools Now I try to go further building release-14.12 stdenv. On Fri, Jan 30, 2015 at 04:19:49PM +0100, Lluís Batlle i Rossell wrote: I have the busybox.. but that's not enough. Eelco updated the bootstrap tools in the 29th of October, but I cannot find why. The new bootstrap tools include different binaries. Eelco updated the stdenv scripts to accomodate the new tools, but without updating arm or mips tools, hence breaking them. One approach could have been to have kept the old stdenv scripts for arm/mips. Can anyone point me to the reasons of the change, so I can try to work in that same direction? Or restore old bootstrap tools scripts. Regards, Lluís. -- PGP key D4831A8A - https://emailselfdefense.fsf.org/ -- PGP key D4831A8A - https://emailselfdefense.fsf.org/ ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] Bulk-downloading all sources of all packages in use in the system
Hello Nixers! There is some way to do a full bulk load of all source codes of all packages derived on NixOS? The only thing I know is the wiki hint in [1], but it implies to run the program in all installed packages manually one by one. There is some way to do it mor automatically? [1] https://nixos.org/wiki/Download_all_sources ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev