summary refs log tree commit diff
path: root/pkgs/applications/graphics/xaos/default.nix
blob: 226dcb8d918ecb4b77ea19379238ebeeb7045608 (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
26
27
28
29
30
31
32
a :  
let 
  fetchurl = a.fetchurl;

  version = a.lib.getAttr ["version"] "3.4" a; 
  buildInputs = with a; [
    aalib gsl libpng libX11 xproto libXext xextproto 
    libXt zlib gettext intltool perl
  ];
in
rec {
  src = fetchurl {
    url = "http://prdownloads.sourceforge.net/xaos/XaoS-${version}.tar.gz";
    sha256 = "004cdb0xv14shyixs79bf95s52s7aidr5bqfn9wb49gpasrsknrc";
  };

  inherit buildInputs;
  configureFlags = [];

  /* doConfigure should be removed if not needed */
  phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"];

  preConfigure = a.fullDepEntry (''
    sed -e s@/usr/@"$out/"@g -i configure $(find . -name 'Makefile*')
    ensureDir $out/share/locale
  '') ["doUnpack" "minInit" "defEnsureDir"];
      
  name = "xaos-" + version;
  meta = {
    description = "XaoS - fractal viewer";
  };
}