nixpkgs/pkgs/applications/graphics/xaos/default.nix

35 lines
896 B
Nix
Raw Normal View History

2014-07-28 09:43:20 +00:00
a :
let
fetchurl = a.fetchurl;
2014-07-28 09:43:20 +00:00
version = a.lib.attrByPath ["version"] "3.6" a;
buildInputs = with a; [
2014-07-28 09:43:20 +00:00
aalib gsl libpng libX11 xproto libXext xextproto
libXt zlib gettext intltool perl
];
in
rec {
src = fetchurl {
url = "mirror://sourceforge/xaos/xaos-${version}.tar.gz";
2013-12-15 23:11:51 +00:00
sha256 = "15cd1cx1dyygw6g2nhjqq3bsfdj8sj8m4va9n75i0f3ryww3x7wq";
};
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*')
mkdir -p $out/share/locale
'') ["doUnpack" "minInit" "defEnsureDir"];
2014-07-28 09:43:20 +00:00
name = "xaos-" + version;
meta = {
homepage = http://xaos.sourceforge.net/;
description = "XaoS - fractal viewer";
2014-07-28 09:43:20 +00:00
license = a.stdenv.lib.licenses.gpl2Plus;
};
}