3
0
Fork 0
forked from mirrors/nixpkgs

xaos: 3.6 -> 4.2.1

This commit is contained in:
Emery Hemingway 2023-01-16 12:45:08 -06:00
parent 01f4f1383b
commit f2b744c9ca
2 changed files with 38 additions and 22 deletions

View file

@ -1,32 +1,50 @@
{ lib, stdenv, fetchurl, aalib, gsl, libpng, libX11, xorgproto, libXext
, libXt, zlib, gettext, intltool, perl }:
{ lib, stdenv, fetchFromGitHub, qmake, qtbase, qttools, wrapQtAppsHook, copyDesktopItems }:
stdenv.mkDerivation rec {
let datapath = "$out/share/XaoS";
in stdenv.mkDerivation rec {
pname = "xaos";
version = "3.6";
version = "4.2.1";
outputs = [ "out" "man" ];
src = fetchurl {
url = "mirror://sourceforge/xaos/${pname}-${version}.tar.gz";
sha256 = "15cd1cx1dyygw6g2nhjqq3bsfdj8sj8m4va9n75i0f3ryww3x7wq";
src = fetchFromGitHub {
owner = "xaos-project";
repo = pname;
rev = "release-${version}";
hash = "sha256-JLF8Mz/OHZEEJG/aryKQuJ6B5R8hPJdvln7mbKoqXFU=";
};
hardeningDisable = [ "format" ];
nativeBuildInputs = [ qmake qttools wrapQtAppsHook copyDesktopItems ];
buildInputs = [ qtbase ];
nativeBuildInputs = [ intltool ];
buildInputs = [
aalib gsl libpng libX11 xorgproto libXext
libXt zlib gettext perl
];
QMAKE_LRELEASE = "lrelease";
DEFINES = [ "USE_OPENGL" "USE_FLOAT128" ];
preConfigure = ''
sed -e s@/usr/@"$out/"@g -i configure $(find . -name 'Makefile*')
mkdir -p $out/share/locale
postPatch = ''
substituteInPlace src/include/config.h \
--replace "/usr/share/XaoS" "${datapath}"
'';
meta = {
homepage = "http://xaos.sourceforge.net/";
description = "Fractal viewer";
desktopItems = [ "xdg/xaos.desktop" ];
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;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ ehmry ];
};
}

View file

@ -33754,9 +33754,7 @@ with pkgs;
xannotate = callPackage ../tools/X11/xannotate {};
xaos = callPackage ../applications/graphics/xaos {
libpng = libpng12;
};
xaos = libsForQt5.callPackage ../applications/graphics/xaos { };
xastir = callPackage ../applications/misc/xastir {
rastermagick = imagemagick6;