xaos: 3.6 -> 4.2.1
This commit is contained in:
parent
01f4f1383b
commit
f2b744c9ca
2 changed files with 38 additions and 22 deletions
|
@ -1,32 +1,50 @@
|
||||||
{ lib, stdenv, fetchurl, aalib, gsl, libpng, libX11, xorgproto, libXext
|
{ lib, stdenv, fetchFromGitHub, qmake, qtbase, qttools, wrapQtAppsHook, copyDesktopItems }:
|
||||||
, libXt, zlib, gettext, intltool, perl }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let datapath = "$out/share/XaoS";
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
pname = "xaos";
|
pname = "xaos";
|
||||||
version = "3.6";
|
version = "4.2.1";
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://sourceforge/xaos/${pname}-${version}.tar.gz";
|
owner = "xaos-project";
|
||||||
sha256 = "15cd1cx1dyygw6g2nhjqq3bsfdj8sj8m4va9n75i0f3ryww3x7wq";
|
repo = pname;
|
||||||
|
rev = "release-${version}";
|
||||||
|
hash = "sha256-JLF8Mz/OHZEEJG/aryKQuJ6B5R8hPJdvln7mbKoqXFU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
nativeBuildInputs = [ qmake qttools wrapQtAppsHook copyDesktopItems ];
|
||||||
|
buildInputs = [ qtbase ];
|
||||||
|
|
||||||
nativeBuildInputs = [ intltool ];
|
QMAKE_LRELEASE = "lrelease";
|
||||||
buildInputs = [
|
DEFINES = [ "USE_OPENGL" "USE_FLOAT128" ];
|
||||||
aalib gsl libpng libX11 xorgproto libXext
|
|
||||||
libXt zlib gettext perl
|
|
||||||
];
|
|
||||||
|
|
||||||
preConfigure = ''
|
postPatch = ''
|
||||||
sed -e s@/usr/@"$out/"@g -i configure $(find . -name 'Makefile*')
|
substituteInPlace src/include/config.h \
|
||||||
mkdir -p $out/share/locale
|
--replace "/usr/share/XaoS" "${datapath}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
desktopItems = [ "xdg/xaos.desktop" ];
|
||||||
homepage = "http://xaos.sourceforge.net/";
|
|
||||||
description = "Fractal viewer";
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -D bin/xaos "$out/bin/xaos"
|
||||||
|
|
||||||
|
mkdir -p "${datapath}"
|
||||||
|
cp -r tutorial examples catalogs "${datapath}"
|
||||||
|
|
||||||
|
install -D "xdg/${pname}.png" "$out/share/icons/${pname}.png"
|
||||||
|
|
||||||
|
install -D doc/xaos.6 "$man/man6/xaos.6"
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = src.meta // {
|
||||||
|
description = "Real-time interactive fractal zoomer";
|
||||||
|
homepage = "https://xaos-project.github.io/";
|
||||||
license = lib.licenses.gpl2Plus;
|
license = lib.licenses.gpl2Plus;
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
|
maintainers = with lib.maintainers; [ ehmry ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -33754,9 +33754,7 @@ with pkgs;
|
||||||
|
|
||||||
xannotate = callPackage ../tools/X11/xannotate {};
|
xannotate = callPackage ../tools/X11/xannotate {};
|
||||||
|
|
||||||
xaos = callPackage ../applications/graphics/xaos {
|
xaos = libsForQt5.callPackage ../applications/graphics/xaos { };
|
||||||
libpng = libpng12;
|
|
||||||
};
|
|
||||||
|
|
||||||
xastir = callPackage ../applications/misc/xastir {
|
xastir = callPackage ../applications/misc/xastir {
|
||||||
rastermagick = imagemagick6;
|
rastermagick = imagemagick6;
|
||||||
|
|
Loading…
Reference in a new issue