![Profpatsch](/assets/img/avatar_default.png)
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
{ lib, stdenv, mkDerivation, fetchFromGitHub, qmake, qttools, qtbase, poppler, flex, bison }:
|
|
|
|
mkDerivation {
|
|
pname = "tikzit";
|
|
version = "2.1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tikzit";
|
|
repo = "tikzit";
|
|
rev = "v2.1.6";
|
|
sha256 = "0ba99pgv54pj1xvhrwn9db2w0v4h07vsjajcnhpa2smy88ypg32h";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake qttools flex bison ];
|
|
buildInputs = [ qtbase poppler ];
|
|
|
|
# src/data/tikzlexer.l:29:10: fatal error: tikzparser.parser.hpp: No such file or directory
|
|
enableParallelBuilding = false;
|
|
|
|
meta = with lib; {
|
|
description = "A graphical tool for rapidly creating graphs and diagrams using PGF/TikZ";
|
|
longDescription = ''
|
|
TikZiT is a simple GUI editor for graphs and string diagrams.
|
|
Its native file format is a subset of PGF/TikZ, which means TikZiT files
|
|
can be included directly in papers typeset using LaTeX.
|
|
For preview support the texlive package 'preview' has to be installed.
|
|
'';
|
|
homepage = "https://tikzit.github.io/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.iblech maintainers.mgttlinger ];
|
|
};
|
|
}
|