Re: [Nix-dev] ioquake3 on nixos

2016-04-18 Thread Máté Kovács
Hi all,

I made a small improvement to the derivation for playing the game:

{ nixpkgs ? import  { } }:
with nixpkgs.lib;
let
  paks = nixpkgs.stdenv.mkDerivation {
name = "quake3-arena";
sources = sourceFilesBySuffices ./baseq3 [".pk3"];
buildCommand = ''
  install -D -m 644 $sources/* -t $out/baseq3/
'';
  };
in nixpkgs.quake3wrapper {
  paks = [ paks nixpkgs.quake3pointrelease ];
}

This will copy all pk3 files to the destination baseq3, which comes in
handy if you have custom maps and mods.

(In case you're wondering: I didn't yet figure out what's wrong with my
channels, so I'm pointing to a clone of the nixpkgs github repo using the
-I option for building the game.)

Cheers,
Mate

On Sat, Apr 9, 2016 at 5:44 PM Nikolay Amiantov  wrote:

> Try to rename `nixpkgs-small` to just `nixpkgs` (using the same URL) --
> if I understand correctly what's going on, it should help. I don't
> remember how exactly to do it -- you can remove `nixpkgs-small` and add
> `nixpkgs` if everything else betrays.
>
> --
> Nikolay.
>
> On 04/09/2016 10:41 PM, Máté Kovács wrote:
> > It seems like I'm unable to use some expressions that have seemingly
> > been added a long time ago, it's not just quake3wrapper.
> >
> >> nix-instantiate --eval '' -A lib.nixpkgsVersion
> > "15.09.1056.9a7b24a"
> >
> >> nix-channel --list
> > nixpkgs-small http://nixos.org/channels/nixpkgs-unstable-small
> >
> >> sudo nix-channel --list
> > nixos https://nixos.org/channels/nixos-15.09
> >
> > Do you see anything suspicious here? I've been suspecting for a while
> > now that there's something fishy with my nixpkgs, but I have trouble
> > figuring it out. I really appreciate your help! :)
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Synchronizing a the binary cache

2016-04-18 Thread Evan Rowley
Hello,

I am wondering if it is possible to somehow synchronize a machine with the
nix binary cache, so that on a separate network, it may service NixOS
client requests to download binaries.

I'm interested in any other tips / guides on using NixOS on networks with
limited or no connectivity to the internet.

I don't use NixOS at the moment, but if this were possible, then it would
bring me one step closer towards using it. My home internet connectivity is
extremely unreliable due to it's remote location, so am looking for a way
to cache packages and other necessary things locally.

The OS I use the most now is FreeBSD and it is simple to cache packages and
binary sets used to perform installations.

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


[Nix-dev] Upgrade from 15.09 to 16.03 with NixOps

2016-04-18 Thread 4levels
Hi Nix'ers,

This is an Nix Ops related question.

How can I specify which channel to use inside the nix expressions (*.nix
files) for nixops?

Thanks in advance!

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