Re: [Nix-dev] How to test my service definition without actually installing it?

2015-05-15 Thread Arseniy Seroka
That can help you to answer all your questions :)
https://github.com/jagajaga/nixpkgs/blob/addition/contributing/CONTRIBUTING.md


On 14 May 2015 13:29:14 Matthias Beyer m...@beyermatthias.de wrote:

 On 14-05-2015 11:28:24, Luca Bruno wrote:
  On 14/05/2015 11:18, Matthias Beyer wrote:
  
  
   How do you do that? My approach is nixos-rebuild build-vm as someone
   else (I guess it was Lethalman) suggested, but it fails with:
  
   $ sudo nixos-rebuild build-vm -I .
   building Nix...
   building the system configuration...
   error: The option `services.taskserver' defined in
  `/nix/store/sz5aszzk5hn943pcw66iqy5jf21hrws4-nixos/services/taskwarrior.nix'
  does not exist.
   (use '--show-trace' to show detailed location information)
  
   unfortunately. Any pointers?
  That's really about how you added the module and that -I option that is
  suspiciously wrong.
 

 I got it running with

 sudo nixos-rebuild build-vm -I nixpkgs=~/dev/contrib/nixpkgs/ --fallback 
 -j
 8 --cores 8

 but it actually fails to build as dependencies cannot be build. :-(

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

 Proudly sent with mutt.
 Happily signed with gnupg.



 --
 ___
 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] How to test my service definition without actually installing it?

2015-05-14 Thread Arseniy Seroka
Oh, there are answers about building with channel and testing. Not about
your service.

Sincerely,
Arseniy Seroka



On 14 May 2015 14:03:18 Matthias Beyer m...@beyermatthias.de wrote:

 On 14-05-2015 13:43:26, Arseniy Seroka wrote:
  That can help you to answer all your questions :)
 
 https://github.com/jagajaga/nixpkgs/blob/addition/contributing/CONTRIBUTING.md

 Well..

 [...]
 + '[' function = function ']'
 + eval '_callImplicitHook 0 exitHook $@'
 ++ _callImplicitHook 0 exitHook
 ++ local def=0
 ++ local hookName=exitHook
 ++ case $(type -t $hookName) in
 +++ type -t exitHook
 ++ '[' -z '' ']'
 ++ return 0
 + return 0
 + exit 0
 cannot build derivation
 ‘/nix/store/7hk1qcc11wk2z0y7hpp842sc1jajr1gs-nixos-15.05.git.50cfd24.drv’:
 2 dependencies couldn't be built error: build of
 ‘/nix/store/7hk1qcc11wk2z0y7hpp842sc1jajr1gs-nixos-15.05.git.50cfd24.drv’
 failed



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

 Proudly sent with mutt.
 Happily signed with gnupg.


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


[Nix-dev] How to test my service definition without actually installing it?

2015-05-14 Thread Matthias Beyer
Hi,

I'm currently working on

https://github.com/NixOS/nixpkgs/pull/7771

(taskwarrior-server service definition for nixos)

How to test my service definition without installing it aka. without
polluting my boot manager with boot entries? How to install it
without rebuilding my complete system because of the switch from
the nixos-unstable channel to the master branch channel.

Or am I getting something wrong with the last sentence?

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

Proudly sent with mutt.
Happily signed with gnupg.


pgpHyAzy6l4tz.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] How to test my service definition without actually installing it?

2015-05-14 Thread Matthias Beyer
On 14-05-2015 10:52:11, Tomasz Kontusz wrote:
 I'm so bad at sending mail to the list :-( still learning to reply-all.

No problem!

 
 Yes, that would rebuild the whole system. I normally build on top of 
 nixos-unstable (there's a separate repo with branches for channels) instead 
 of master, this helps with rebuilds.

I'll try this, thanks!

 If you don't want to rebuild your whole system you can use nixops with local 
 containers - that's how I normally test services that I won't run locally.
 

How do you do that? My approach is nixos-rebuild build-vm as someone
else (I guess it was Lethalman) suggested, but it fails with:

$ sudo nixos-rebuild build-vm -I .
building Nix...
building the system configuration...
error: The option `services.taskserver' defined in 
`/nix/store/sz5aszzk5hn943pcw66iqy5jf21hrws4-nixos/services/taskwarrior.nix' 
does not exist.
(use ‘--show-trace’ to show detailed location information)

unfortunately. Any pointers?

 BTW thanks for working on taskd service, I'd love to use one :-)
 

You're welcome! I actually wanted to write it for a long time, but I
had my taskd server on a debian machine running and it just worked, so
I didn't need it. The debian machine seems to be dead now and I cannot
sync my notebook and my desktop machines tasks... so I started to
write the service (which is actually my first one besides mpdscribble,
which doesn't work yet, too).

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

Proudly sent with mutt.
Happily signed with gnupg.


pgppw4kCW9JcF.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] How to test my service definition without actually installing it?

2015-05-14 Thread Luca Bruno
On 14/05/2015 10:26, Matthias Beyer wrote:
 (Also send to the list, as you did not reply to the list as well)

 But I need to specify my git clone of the repo, right?

 And when doing this, my whole system gets rebuild using the
 definitions from master, so almost everything.
You run nixos-rebuild with your git clone to build that vm, not to
rebuild your system.


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


Re: [Nix-dev] How to test my service definition without actually installing it?

2015-05-14 Thread Tomasz Kontusz
I'm so bad at sending mail to the list :-( still learning to reply-all.

Yes, that would rebuild the whole system. I normally build on top of 
nixos-unstable (there's a separate repo with branches for channels) instead of 
master, this helps with rebuilds.
If you don't want to rebuild your whole system you can use nixops with local 
containers - that's how I normally test services that I won't run locally.

BTW thanks for working on taskd service, I'd love to use one :-)

Matthias Beyer m...@beyermatthias.de napisał:
(Also send to the list, as you did not reply to the list as well)

But I need to specify my git clone of the repo, right?

And when doing this, my whole system gets rebuild using the
definitions from master, so almost everything.

I guess I can fix this by rebasing onto the unstable tracker git
branches, can I?

On 14-05-2015 10:17:44, Tomasz Kontusz wrote:
 You can use nixos-rebuild test to switch without polluting grub
 
 Matthias Beyer m...@beyermatthias.de napisał:
 Hi,
 
 I'm currently working on
 
 https://github.com/NixOS/nixpkgs/pull/7771
 
 (taskwarrior-server service definition for nixos)
 
 How to test my service definition without installing it aka. without
 polluting my boot manager with boot entries? How to install it
 without rebuilding my complete system because of the switch from
 the nixos-unstable channel to the master branch channel.
 
 Or am I getting something wrong with the last sentence?
 
 -- 
 Mit freundlichen Grüßen,
 Kind regards,
 Matthias Beyer
 
 Proudly sent with mutt.
 Happily signed with gnupg.
 
 


 
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
 
 -- 
 Wysłane za pomocą K-9 Mail.

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

Proudly sent with mutt.
Happily signed with gnupg.

-- 
Wysłane za pomocą K-9 Mail.___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to test my service definition without actually installing it?

2015-05-14 Thread Bjørn Forsman
On 14 May 2015 at 10:07, Matthias Beyer m...@beyermatthias.de wrote:
 Hi,

 I'm currently working on

 https://github.com/NixOS/nixpkgs/pull/7771

 (taskwarrior-server service definition for nixos)

 How to test my service definition without installing it aka. without
 polluting my boot manager with boot entries? How to install it
 without rebuilding my complete system because of the switch from
 the nixos-unstable channel to the master branch channel.

I think this is what you're looking for (scroll down to the end):

http://nixos.org/nixos/manual/sec-building-parts.html

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


Re: [Nix-dev] How to test my service definition without actually installing it?

2015-05-14 Thread Luca Bruno
On 14/05/2015 10:07, Matthias Beyer wrote:
 Hi,

 I'm currently working on

 https://github.com/NixOS/nixpkgs/pull/7771

 (taskwarrior-server service definition for nixos)

 How to test my service definition without installing it aka. without
 polluting my boot manager with boot entries? How to install it
 without rebuilding my complete system because of the switch from
 the nixos-unstable channel to the master branch channel.

 Or am I getting something wrong with the last sentence?

You can try with nixos-build-vms or nixos-rebuild build-vm or containers
or...

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


Re: [Nix-dev] How to test my service definition without actually installing it?

2015-05-14 Thread Matthias Beyer
(Also send to the list, as you did not reply to the list as well)

But I need to specify my git clone of the repo, right?

And when doing this, my whole system gets rebuild using the
definitions from master, so almost everything.

I guess I can fix this by rebasing onto the unstable tracker git
branches, can I?

On 14-05-2015 10:17:44, Tomasz Kontusz wrote:
 You can use nixos-rebuild test to switch without polluting grub
 
 Matthias Beyer m...@beyermatthias.de napisał:
 Hi,
 
 I'm currently working on
 
 https://github.com/NixOS/nixpkgs/pull/7771
 
 (taskwarrior-server service definition for nixos)
 
 How to test my service definition without installing it aka. without
 polluting my boot manager with boot entries? How to install it
 without rebuilding my complete system because of the switch from
 the nixos-unstable channel to the master branch channel.
 
 Or am I getting something wrong with the last sentence?
 
 -- 
 Mit freundlichen Grüßen,
 Kind regards,
 Matthias Beyer
 
 Proudly sent with mutt.
 Happily signed with gnupg.
 
 
 
 
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
 
 -- 
 Wysłane za pomocą K-9 Mail.

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

Proudly sent with mutt.
Happily signed with gnupg.


pgp3OBhfk9Jvj.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] How to test my service definition without actually installing it?

2015-05-14 Thread Matthias Beyer
On 14-05-2015 13:43:26, Arseniy Seroka wrote:
 That can help you to answer all your questions :)
 https://github.com/jagajaga/nixpkgs/blob/addition/contributing/CONTRIBUTING.md

Well..

[...]
+ '[' function = function ']'
+ eval '_callImplicitHook 0 exitHook $@'
++ _callImplicitHook 0 exitHook
++ local def=0
++ local hookName=exitHook
++ case $(type -t $hookName) in
+++ type -t exitHook
++ '[' -z '' ']'
++ return 0
+ return 0
+ exit 0
cannot build derivation 
‘/nix/store/7hk1qcc11wk2z0y7hpp842sc1jajr1gs-nixos-15.05.git.50cfd24.drv’: 2 
dependencies couldn't be built error: build of
‘/nix/store/7hk1qcc11wk2z0y7hpp842sc1jajr1gs-nixos-15.05.git.50cfd24.drv’ 
failed



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

Proudly sent with mutt.
Happily signed with gnupg.


pgpocEgPPw23s.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] How to test my service definition without actually installing it?

2015-05-14 Thread Luca Bruno
On 14/05/2015 11:18, Matthias Beyer wrote:


 How do you do that? My approach is nixos-rebuild build-vm as someone
 else (I guess it was Lethalman) suggested, but it fails with:

 $ sudo nixos-rebuild build-vm -I .
 building Nix...
 building the system configuration...
 error: The option `services.taskserver' defined in
`/nix/store/sz5aszzk5hn943pcw66iqy5jf21hrws4-nixos/services/taskwarrior.nix'
does not exist.
 (use '--show-trace' to show detailed location information)

 unfortunately. Any pointers?
That's really about how you added the module and that -I option that is
suspiciously wrong.

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


Re: [Nix-dev] How to test my service definition without actually installing it?

2015-05-14 Thread Matthias Beyer
On 14-05-2015 11:28:24, Luca Bruno wrote:
 On 14/05/2015 11:18, Matthias Beyer wrote:
 
 
  How do you do that? My approach is nixos-rebuild build-vm as someone
  else (I guess it was Lethalman) suggested, but it fails with:
 
  $ sudo nixos-rebuild build-vm -I .
  building Nix...
  building the system configuration...
  error: The option `services.taskserver' defined in
 `/nix/store/sz5aszzk5hn943pcw66iqy5jf21hrws4-nixos/services/taskwarrior.nix'
 does not exist.
  (use '--show-trace' to show detailed location information)
 
  unfortunately. Any pointers?
 That's really about how you added the module and that -I option that is
 suspiciously wrong.
 

I got it running with

sudo nixos-rebuild build-vm -I nixpkgs=~/dev/contrib/nixpkgs/ --fallback -j 
8 --cores 8

but it actually fails to build as dependencies cannot be build. :-( 

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

Proudly sent with mutt.
Happily signed with gnupg.


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