Hi all,

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

{ nixpkgs ? import <nixpkgs> { } }:
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 <a...@fmap.me> 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 '<nixpkgs>' -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

Reply via email to