[Nix-dev] Git branches to track nix channels

2015-05-19 Thread Florian Friesdorf

Hi,

nix channels are series of snapshots of nixpkgs that were succesfully
build by hydra and we subscribe and update them via nix-channel - for
users of nixpkgs this is great!

As maintainers of nixpkgs and users who keep custom patches, we also
have one or more local checkouts of git://github.com/NixOS/nixpkgs.git.

It would be great if channel information would be available via git as
well:

- one branch per channel, git reset --hard to the latest successfully
  build nixpkgs in this channel

- tags (channel-name-datetime) for each successful channel build.

This would enable us to base local customizations of nixpkgs on-top of
successful hydra builds and therefore getting as much binary package
support as possible, and would remove the need to additionally maintain
channels with nix-channel.

What do you think?

cheers
florian
-- 
Florian Friesdorf f...@chaoflow.net
GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083


signature.asc
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] Git branches to track nix channels

2015-05-19 Thread Florian Friesdorf

What is the reasoning to have these in a separate repository?
What do you think about adding tags like I proposed?

On Tue, May 19 2015, Domen Kožar wrote:
 We have https://github.com/NixOS/nixpkgs-channels that has branches that
 track latest channel updates

 On Tue, May 19, 2015 at 9:56 AM, Florian Friesdorf f...@chaoflow.net wrote:


 Hi,

 nix channels are series of snapshots of nixpkgs that were succesfully
 build by hydra and we subscribe and update them via nix-channel - for
 users of nixpkgs this is great!

 As maintainers of nixpkgs and users who keep custom patches, we also
 have one or more local checkouts of git://github.com/NixOS/nixpkgs.git.

 It would be great if channel information would be available via git as
 well:

 - one branch per channel, git reset --hard to the latest successfully
   build nixpkgs in this channel

 - tags (channel-name-datetime) for each successful channel build.

 This would enable us to base local customizations of nixpkgs on-top of
 successful hydra builds and therefore getting as much binary package
 support as possible, and would remove the need to additionally maintain
 channels with nix-channel.

 What do you think?

 cheers
 florian
 --
 Florian Friesdorf f...@chaoflow.net
 GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083

 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev



-- 
Florian Friesdorf f...@chaoflow.net
GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083


signature.asc
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] Git branches to track nix channels

2015-05-19 Thread Peter Simons
Hi Florian,

  What is the reasoning to have these in a separate repository?

We don't want notification e-mails sent out every time the channel
updates, which would happen if these branches were pushed to the main
repository.

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] Confused about packages

2015-05-19 Thread Roger Qiu
Wouldn't it be better for version numbers to always exist? That way it's 
simple to know the exact version of your package that you're installing, 
even if it's just one package. I'd prefer for it not to be random.


On 16/05/2015 7:27 AM, Vladimír Čunát wrote:

Hi.

On 05/15/2015 11:09 PM, Amy de Buitléir wrote:

Q 1. Why do some packages have version numbers, and some don't? Are the ones
without version numbers some sort of virtual package?

Missing version should be considered a bug, I believe, at least in most
cases. I versioned dmenu2 in d41798321.


Q 2. Why can't I find some packages that I would expect to find? Are they
hidden? For example, I have the following in my /etc/nixos/configuration.nix:

   environment.systemPackages = with pkgs; [
 dmenu2
 dzen2
 haskellPackages.xmonad
 haskellPackages.xmonadContrib
 haskellPackages.xmonadExtras
 wget
 xsel
   ];

But if someone hadn't told me the names to put there, how could I have found
the names of the packages? Searching for them using nix-env didn't find them:

I consider that a bug, too.
Peti: I guess this would be because of haskellPackages missing
recurseIntoAttrs. I can't see it in there and no haskell packages are
shown for me on master.


Vladimir




___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


--
Founder of Matrix AI
http://matrix.ai/
+61420925975

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Git branches to track nix channels

2015-05-19 Thread Domen Kožar
We have https://github.com/NixOS/nixpkgs-channels that has branches that
track latest channel updates

On Tue, May 19, 2015 at 9:56 AM, Florian Friesdorf f...@chaoflow.net wrote:


 Hi,

 nix channels are series of snapshots of nixpkgs that were succesfully
 build by hydra and we subscribe and update them via nix-channel - for
 users of nixpkgs this is great!

 As maintainers of nixpkgs and users who keep custom patches, we also
 have one or more local checkouts of git://github.com/NixOS/nixpkgs.git.

 It would be great if channel information would be available via git as
 well:

 - one branch per channel, git reset --hard to the latest successfully
   build nixpkgs in this channel

 - tags (channel-name-datetime) for each successful channel build.

 This would enable us to base local customizations of nixpkgs on-top of
 successful hydra builds and therefore getting as much binary package
 support as possible, and would remove the need to additionally maintain
 channels with nix-channel.

 What do you think?

 cheers
 florian
 --
 Florian Friesdorf f...@chaoflow.net
 GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083

 ___
 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] Git branches to track nix channels

2015-05-19 Thread Arseniy Seroka
We have this.
Read about it in a making patches section [1]

[1]
https://github.com/jagajaga/nixpkgs/blob/addition/contributing/CONTRIBUTING.md

Sincerely,
Arseniy Seroka



On 19 May 2015 12:15:00 Florian Friesdorf f...@chaoflow.net wrote:

 Hi,

 nix channels are series of snapshots of nixpkgs that were succesfully
 build by hydra and we subscribe and update them via nix-channel - for
 users of nixpkgs this is great!

 As maintainers of nixpkgs and users who keep custom patches, we also
 have one or more local checkouts of git://github.com/NixOS/nixpkgs.git.

 It would be great if channel information would be available via git as
 well:

 - one branch per channel, git reset --hard to the latest successfully
   build nixpkgs in this channel

 - tags (channel-name-datetime) for each successful channel build.

 This would enable us to base local customizations of nixpkgs on-top of
 successful hydra builds and therefore getting as much binary package
 support as possible, and would remove the need to additionally maintain
 channels with nix-channel.

 What do you think?

 cheers
 florian
 --
 Florian Friesdorf f...@chaoflow.net
 GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083



 --
 ___
 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] Leap Second

2015-05-19 Thread Roger Qiu
Will NixOS be affected by the leap second issue that's coming up on June 
30 2015?

-- 
Founder of Matrix AI
http://matrix.ai/
+61420925975

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Confused about packages

2015-05-19 Thread Marc Weber
Excerpts from Roger Qiu's message of Tue May 19 05:56:30 + 2015:
 Wouldn't it be better for version numbers to always exist?
You're totally right that the

  mkDerivation {
name =name-version
  }

version should always exist. Thus if you find cases just create a topic
branch, fix, and submit once in a while.

I was quite surprised that mysql in all-packages.nix started pointing
to mariadb which broke my ruby overlay because headers were not found.

Thus what can you do?

there is builtins.compareVersions function, and there are nixos module
assertions - thus you could ensure this way that compareVersion
pkgs.mysql equals 5.0 or so - or you could just add a constraint
mysql.name = mysql-5.0 which would fail building.

You always know the version as long as you're using the same nixpkgs
revision - but sometimes you have to update - and then adding such nixos
assertios would be close to what you want. Just grep nixpkgs/nixos for
assertions to see samples.

However usually upgrades just happen to work fine - in the end testing
for versions doesn't protect you from mal functioning (eg a dependency
could have changed) - thus what you really want is writing tests.

There are some samples in the nixpgks repository as well.

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Leap Second

2015-05-19 Thread Kirill Elagin
What is exactly the issue with this leap second, and what do you mean by
NixOS being affected?

On Tue, May 19, 2015, 11:56 Roger Qiu roger@polycademy.com wrote:

 Will NixOS be affected by the leap second issue that's coming up on June
 30 2015?

 --
 Founder of Matrix AI
 http://matrix.ai/
 +61420925975

 ___
 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] Git branches to track nix channels

2015-05-19 Thread Vladimír Čunát
On 05/19/2015 11:22 AM, Florian Friesdorf wrote:
 What do you think about adding tags like I proposed?

Listing the tags will quickly become unwieldy, but for a persistent
reference it will be more readable to have channel-date than some random
hash (or maybe channel/date or something). It might be also nice for
things like git describe. Maybe there's a better way to achieve those, I
don't know.

I'm uncertain if there might be some performance implications when
working on a repo with too many tags, but as this won't be in the main
repo, we can easily chance it.

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] Leap Second

2015-05-19 Thread Eelco Dolstra
Hi,

On 19/05/15 07:10, Roger Qiu wrote:

 Will NixOS be affected by the leap second issue that's coming up on June 
 30 2015?

You shouldn't have issues if you're running ntpd.

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


[Nix-dev] luks encrypted home stopped mounting after channel update

2015-05-19 Thread Ellis Whitehead
A few days ago, I ran `nixos-rebuild --switch` using the up-to-date
unstable channel, and everything worked fine.  Last night I updated
the channel again and rebuilt, but when I started my computer this
morning, it doesn't prompt for the encryption password anymore, and
home doesn't mount.  Any ideas?

I can get into my system by telling GRUB to boot the previous
configuration instead, so the partition itself is fine.  Nothing
changed in my configure.nix.  Here are the relevant lines:

---
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = /dev/sda;

# Encrypted home
boot.initrd.luks.devices = [ { device = /dev/sda6; name = home; } ];

fileSystems./home.device = /dev/mapper/home;
---

And this is my hardware-configuration-lorax.nix:

---
# Do not modify this file!  It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations.  Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, pkgs, ... }:

{
  imports =
[ nixpkgs/nixos/modules/installer/scan/not-detected.nix
];

  boot.initrd.availableKernelModules = [ ehci_pci ahci xhci_hcd
usbhid ];
  boot.kernelModules = [ kvm-intel ];
  boot.extraModulePackages = [ ];

  fileSystems./ =
{ device = /dev/sda5;
  fsType = ext4;
};

  swapDevices =[ ];

  nix.maxJobs = 4;
}
---

The error message in `journalctl -xb` is:
May 20 04:50:55 lorax systemd[1]: Job dev-mapper-home.device/start timed out.
May 20 04:50:55 lorax systemd[1]: Timed out waiting for device
dev-mapper-home.device.
May 20 04:50:55 lorax systemd[1]: Dependency failed for /home.
May 20 04:50:55 lorax systemd[1]: Dependency failed for Local File Systems.
May 20 04:50:55 lorax systemd[1]: Triggering OnFailure= dependencies
of local-fs.target.
May 20 04:50:55 lorax systemd[1]: Dependency failed for File System
Check on /dev/mapper/home.

The AES encryption modules is loaded, though.

Any ideas about how to get the system to ask for my encryption
password again?  Much appreciated,
Ellis
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Leap Second

2015-05-19 Thread Roger Qiu
http://serverfault.com/questions/403732/anyone-else-experiencing-high-rates-of-linux-server-crashes-during-a-leap-second
On 19/05/2015 8:06 PM, Kirill Elagin kirela...@gmail.com wrote:

 What is exactly the issue with this leap second, and what do you mean by
 NixOS being affected?

 On Tue, May 19, 2015, 11:56 Roger Qiu roger@polycademy.com wrote:

 Will NixOS be affected by the leap second issue that's coming up on June
 30 2015?

 --
 Founder of Matrix AI
 http://matrix.ai/
 +61420925975

 ___
 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] Leap Second

2015-05-19 Thread Domen Kožar
Yeah, leap second(s) are a big issue since that's the code that nobody
really tests. NixOS is going to have as much problems as the software
you're running has bugs.

Google is smart here, they're adding microseconds over a longer span of
time via their NTP, so the extra second doesn't disrupt any services and is
synced with the rest of the world at the switch time.



On Tue, May 19, 2015 at 1:19 PM, Roger Qiu roger@polycademy.com wrote:


 http://serverfault.com/questions/403732/anyone-else-experiencing-high-rates-of-linux-server-crashes-during-a-leap-second
 On 19/05/2015 8:06 PM, Kirill Elagin kirela...@gmail.com wrote:

 What is exactly the issue with this leap second, and what do you mean by
 NixOS being affected?

 On Tue, May 19, 2015, 11:56 Roger Qiu roger@polycademy.com wrote:

 Will NixOS be affected by the leap second issue that's coming up on June
 30 2015?

 --
 Founder of Matrix AI
 http://matrix.ai/
 +61420925975

 ___
 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] Git branches to track nix channels

2015-05-19 Thread Matthias Beyer
On 19-05-2015 12:08:30, Vladimír Čunát wrote:
 I'm uncertain if there might be some performance implications when
 working on a repo with too many tags, but as this won't be in the main
 repo, we can easily chance it.

From a git point of view, there won't be any performance implications
besides that the tags get fetched on `git fetch` - which is wanted
behaviour I guess.

doing a `git tag` could become a bit slower... But I don't think
that's much of a problem (just did a `git tag` on the kernel sources,
which has 417 tags for me atm:

real0m0.015s
user0m0.003s
sys 0m0.011s

so I guess nobody cares. (Well, `git tag` is simply file-read and
nothing more...)


-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.


pgpmagQrmc6kP.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev