Re: [Nix-dev] nix-dev Digest, Vol 101, Issue 25
Turns out I need nolock, but more importantly: add “nfsv3 to initrd.availableKernelModules … Nix’ full dependency management makes me expect too much :P Is there an easy way to remount with locks enabled in stage 2? On 19 nov. 2013, at 03:31, nix-dev-requ...@lists.science.uu.nl wrote: Date: Mon, 18 Nov 2013 21:44:18 +0100 From: Rickard Nilsson rickard.nils...@telia.com Subject: Re: [Nix-dev] Mount /nix/store from NFS during Stage 1 boot To: nix-dev@lists.science.uu.nl Message-ID: 528a7c22.6020...@telia.com Content-Type: text/plain; charset=windows-1252; format=flowed On 11/18/2013 04:01 PM, Eelco Dolstra wrote: Hi, On 18/11/13 14:22, deCube.net | Danny Wilson wrote: I?m having 2 issues: 1) DHCP is not queried during stage 1. BusyBox (used in the initrd) contains a DHCP client called udhcpc that might be useful here. Googling around it looks like NFS mounting at boot was supported back in 2011, but this is no longer the case? It has never been supported in any real sense, but people may have gotten it to work. Try using the nolock mount option. It works for me. / Rickard signature.asc Description: Message signed with OpenPGP using GPGMail ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] Packaging Foreman
As part of the Heroku Toolbelt, I need to make a Nix package for Foreman. I am following the instructions to Install from Source [1]. The instructions say that it has many package requirements: gcc-c++ git libvirt-devel mysql-devel pg-devel openssl-devel \ libxml2-devel sqlite-devel libxslt-devel zlib-devel readline-devel \ postgresql-devel Am I right when I say - If I want to package Foreman, I must first package all these dependent packages. ? Related question: Does anyone know how to use the auto-generated Gem packages? I can't find any docs. - https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/ruby/generated.nix [1] http://theforeman.org/manuals/1.3/index.html#3.4InstallFromSource ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Packaging Foreman
On 11/19/2013 09:03 AM, Alex Berg wrote: As part of the Heroku Toolbelt, I need to make a Nix package for Foreman. I am following the instructions to Install from Source [1]. The instructions say that it has many package requirements: gcc-c++ git libvirt-devel mysql-devel pg-devel openssl-devel \ libxml2-devel sqlite-devel libxslt-devel zlib-devel readline-devel \ postgresql-devel Am I right when I say - If I want to package Foreman, I must first package all these dependent packages. ? I don't know Foreman, but yes - you will need all of those dependencies. Note however that these dependencies seem to be specified as Ubuntu package names. We don't strip out include files from our packages, so we don't have 'devel' versions. Thus a lot of these dependencies we probably already have: gcc-c++ - gcc mysql-devel - mysql pg-devel - postgresql9* sqlite-devel - sqlite etc. I tend to grep in nixpkgs/pkgs/top-level/all-packages.nix for the start of the expression, find something that looks relevant, add it to the expression of whatever I'm packaging, and attempt to nix-build. I repeat that process until all dependencies are satisfied Related question: Does anyone know how to use the auto-generated Gem packages? I can't find any docs. - https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/ruby/generated.nix This really needs better documentation. Most people will tell you to read nixpkgs/pkgs/development/interpreters/ruby/rubygems.nix, but imo that is not good enough. - ocharles signature.asc Description: OpenPGP digital signature ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Powertop NixOS
Hi Tom, nix-env -i powertop sudo powertop For quicker and in general more accurate help: nix-dev@lists.science.uu.nl Thomas Bereknyei tombe...@gmail.com writes: Hi what is the current method of using powertop I would like to start using it but I'm a little new to nixos. I came across your email on a forum posting regarding the kernel. Tom -- Florian Friesdorf f...@chaoflow.net GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083 Jabber/XMPP: f...@chaoflow.net IRC: chaoflow on freenode,ircnet,blafasel,OFTC pgpRIqcF8HvYS.pgp Description: PGP signature ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Packaging Foreman
Awesome, that's exactly the info I needed. I added those as dependencies and now I'm making progress again. Now I'm working through a Ruby issue (Gem::RemoteFetcher::FetchError). For curious readers, here's how I did that. ### foreman/default.nix ### { stdenv, fetchurl, rubygems, gcc, git, libvirt, mysql, postgresql, openssl, libxml2, sqlite, libxslt, zlib, readline }: stdenv.mkDerivation rec { name = foreman; src = fetchurl { # Tarball link fetched from here: http://projects.theforeman.org/projects/foreman/files url = http://projects.theforeman.org/attachments/download/642/foreman-1.3.1.tar.bz2 ; sha256 = 0jq48nswwgx7lk79cpdm2zmn40rxf1jjnng63qmam09m4pbypj3r; }; buildInputs = [ rubygems gcc git libvirt mysql postgresql openssl libxml2 sqlite libxslt zlib readline ]; ... On Tue, Nov 19, 2013 at 5:17 PM, Oliver Charles ol...@ocharles.org.ukwrote: On 11/19/2013 09:03 AM, Alex Berg wrote: As part of the Heroku Toolbelt, I need to make a Nix package for Foreman. I am following the instructions to Install from Source [1]. The instructions say that it has many package requirements: gcc-c++ git libvirt-devel mysql-devel pg-devel openssl-devel \ libxml2-devel sqlite-devel libxslt-devel zlib-devel readline-devel \ postgresql-devel Am I right when I say - If I want to package Foreman, I must first package all these dependent packages. ? I don't know Foreman, but yes - you will need all of those dependencies. Note however that these dependencies seem to be specified as Ubuntu package names. We don't strip out include files from our packages, so we don't have 'devel' versions. Thus a lot of these dependencies we probably already have: gcc-c++ - gcc mysql-devel - mysql pg-devel - postgresql9* sqlite-devel - sqlite etc. I tend to grep in nixpkgs/pkgs/top-level/all-packages.nix for the start of the expression, find something that looks relevant, add it to the expression of whatever I'm packaging, and attempt to nix-build. I repeat that process until all dependencies are satisfied Related question: Does anyone know how to use the auto-generated Gem packages? I can't find any docs. - https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/ruby/generated.nix This really needs better documentation. Most people will tell you to read nixpkgs/pkgs/development/interpreters/ruby/rubygems.nix, but imo that is not good enough. - ocharles ___ 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] Powertop NixOS
On 11/19/2013 10:32 AM, Florian Friesdorf wrote: nix-env -i powertop sudo powertop Note: I also need to do sudo modprobe msr before 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] Powertop NixOS
It turns out I was missing the msr kernel module. Found here: https://github.com/chaoflow/nixos-configurations/commit/e777ac603da7a4587a370bdbfecc28ec70544fd3 On Nov 19, 2013 4:32 AM, Florian Friesdorf f...@chaoflow.net wrote: Hi Tom, nix-env -i powertop sudo powertop For quicker and in general more accurate help: nix-dev@lists.science.uu.nl Thomas Bereknyei tombe...@gmail.com writes: Hi what is the current method of using powertop I would like to start using it but I'm a little new to nixos. I came across your email on a forum posting regarding the kernel. Tom -- Florian Friesdorf f...@chaoflow.net GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083 Jabber/XMPP: f...@chaoflow.net IRC: chaoflow on freenode,ircnet,blafasel,OFTC ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev