Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d4afaa8dc29b
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8315cf5b1892
Choose a head ref
  • 7 commits
  • 1 file changed
  • 3 contributors

Commits on Jun 5, 2019

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3e651ac View commit details
  2. qtikz: add homepage

    layus committed Jun 5, 2019
    Copy the full SHA
    859f465 View commit details
  3. Copy the full SHA
    d08162e View commit details

Commits on Jun 6, 2019

  1. Copy the full SHA
    951509a View commit details
  2. qtikz: s/fetchurl/fetchpatch/

    layus committed Jun 6, 2019
    Copy the full SHA
    c3c2274 View commit details
  3. qtikz: fix wrong sha256

    layus committed Jun 6, 2019
    Copy the full SHA
    3277a77 View commit details

Commits on Jun 18, 2019

  1. qtikz: unstable-20161122 -> 0.12 (#62733)

    qtikz: unstable-20161122 -> 0.12
    jtojnar authored Jun 18, 2019
    Copy the full SHA
    8315cf5 View commit details
Showing with 38 additions and 50 deletions.
  1. +38 −50 pkgs/applications/graphics/ktikz/default.nix
88 changes: 38 additions & 50 deletions pkgs/applications/graphics/ktikz/default.nix
Original file line number Diff line number Diff line change
@@ -1,70 +1,58 @@
{ stdenv, fetchFromGitHub, gettext, poppler, qt5 , pkgconfig }:

# Warning: You will also need a working pdflatex installation containing
# at least auctex and pgf.
{ stdenv, fetchFromGitHub, fetchpatch
, pkgconfig, makeWrapper
, poppler, qt5, gnuplot
}:

# This package only builds ktikz without KDE integration because KDE4 is
# deprecated and upstream does not (yet ?) support KDE5.
# See historical versions of this file for building ktikz with KDE4.

stdenv.mkDerivation rec {
version = "unstable-20161122";
name = "qtikz-${version}";

src = fetchFromGitHub {
owner = "fhackenberger";
repo = "ktikz";
rev = "be66c8b1ff7e6b791b65af65e83c4926f307cf5a";
sha256 = "15jx53sjlnky4yg3ry1i1c29g28v1jbbvhbz66h7a49pfxa40fj3";
};
version = "0.12";
pname = "qtikz";

meta = with stdenv.lib; {
description = "Editor for the TikZ language";
homepage = "https://github.com/fhackenberger/ktikz";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.layus ];
longDescription = ''
You will also need a working *tex installation in your PATH, containing at least `preview` and `pgf`.
'';
};

conf = ''
# installation prefix:
PREFIX = @out@
# install desktop file here (*nix only):
DESKTOP_INSTALL_DIR = @out@/share/applications
# install mimetype here:
MIME_INSTALL_DIR = @out@/share/mime/packages
# install doc here:
MAN_INSTALL_DIR = @out@/share/man
CONFIG -= debug
CONFIG += release
src = fetchFromGitHub {
owner = "fhackenberger";
repo = "ktikz";
rev = version;
sha256 = "1s83x8r2yi64wc6ah2iz09dj3qahy0fkxx6cfgpkavjw9x0j0582";
};

# qmake command:
QMAKECOMMAND = qmake
# lrelease command:
LRELEASECOMMAND = lrelease
# qcollectiongenerator command:
QCOLLECTIONGENERATORCOMMAND = qhelpgenerator
patches = [
(fetchpatch {
url = "https://github.com/fhackenberger/ktikz/commit/972685a406517bb85eb561f2c8e26f029eacd7db.patch";
sha256 = "13z40rcd4m4n088v7z2ns17lnpn0z3rzp31lsamic3qdcwjwa5k8";
})
];

# TikZ documentation default file path:
TIKZ_DOCUMENTATION_DEFAULT = @out@/share/doc/texmf/pgf/pgfmanual.pdf.gz
'';
QT_PLUGIN_PATH = "${qt5.qtbase}/${qt5.qtbase.qtPluginPrefix}";

# 1. Configuration is done by overwriting qtikzconfig.pri
# 2. Recent Qt removed QString::fromAscii in favor of QString::fromLatin1
patchPhase = ''
echo "$conf" | sed "s!@out@!$out!g" > qmake/qtikzconfig.pri
find -name "*.cpp" -exec sed -i s/fromAscii/fromLatin1/g "{}" \;
'';
nativeBuildInputs = [ pkgconfig qt5.qttools qt5.qmake makeWrapper ];
buildInputs = [ qt5.qtbase poppler ];
enableParallelBuilding = true;

configurePhase = ''
qmake PREFIX="$out" ./qtikz.pro
qmakeFlags = [
"DESKTOP_INSTALL_DIR=${placeholder "out"}/share/applications"
"MIME_INSTALL_DIR=${placeholder "out"}/share/mime/packages"
# qcollectiongenerator does no more exist in `qt5.qttools`.
# It was merged with qhelpgenerator at some point.
"QCOLLECTIONGENERATORCOMMAND=qhelpgenerator"
];

postFixup = ''
wrapProgram "$out/bin/qtikz" \
--prefix QT_PLUGIN_PATH : "${qt5.qtbase}/${qt5.qtbase.qtPluginPrefix}" \
--prefix PATH : "${gnuplot}/bin"
'';

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gettext qt5.full poppler ];

enableParallelBuilding = true;
}