summary refs log tree commit diff
path: root/pkgs/games/deliantra/deliantra-arch.nix
blob: 2201ca2d1f5fb7d2f59449362859031ca9e93223 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, lib, fetchurl, deliantra-server }:

stdenv.mkDerivation rec {
  pname = "deliantra-arch";
  version = "3.1";

  src = fetchurl {
    url = "http://dist.schmorp.de/deliantra/${pname}-${version}.tar.xz";
    sha256 = "1xzhv48g90hwkzgx9nfjm81ivg6hchkik9ldimi8ijb4j393kvsz";
  };

  installPhase = ''
    mkdir -p "$out"
    export DELIANTRA_DATADIR="$out"
    ${deliantra-server}/bin/cfutil --install-arch .
  '';

  meta = with lib; {
    description = "Archetype data for the Deliantra free MMORPG";
    homepage = "http://www.deliantra.net/";
    license = with licenses; [ gpl2Plus agpl3Plus ];
    platforms = platforms.linux;
    maintainers = with maintainers; [ ToxicFrog ];
  };
}