mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
lyx: format default.nix
This commit is contained in:
parent
b2a54feb35
commit
5698911fb6
@ -1,5 +1,15 @@
|
||||
{ fetchurl, lib, mkDerivation, pkg-config, python3, file, bc
|
||||
, qtbase, qtsvg, hunspell, makeWrapper #, mythes, boost
|
||||
{
|
||||
fetchurl,
|
||||
lib,
|
||||
mkDerivation,
|
||||
pkg-config,
|
||||
python3,
|
||||
file,
|
||||
bc,
|
||||
qtbase,
|
||||
qtsvg,
|
||||
hunspell,
|
||||
makeWrapper, # , mythes, boost
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
@ -18,17 +28,27 @@ mkDerivation rec {
|
||||
'';
|
||||
|
||||
# LaTeX is used from $PATH, as people often want to have it with extra pkgs
|
||||
nativeBuildInputs = [ pkg-config makeWrapper python3 qtbase ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
makeWrapper
|
||||
python3
|
||||
qtbase
|
||||
];
|
||||
buildInputs = [
|
||||
qtbase qtsvg file/*for libmagic*/ bc
|
||||
qtbase
|
||||
qtsvg
|
||||
file # for libmagic
|
||||
bc
|
||||
hunspell # enchant
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-qt5"
|
||||
#"--without-included-boost"
|
||||
/* Boost is a huge dependency from which 1.4 MB of libs would be used.
|
||||
Using internal boost stuff only increases executable by around 0.2 MB. */
|
||||
/*
|
||||
Boost is a huge dependency from which 1.4 MB of libs would be used.
|
||||
Using internal boost stuff only increases executable by around 0.2 MB.
|
||||
*/
|
||||
#"--without-included-mythes" # such a small library isn't worth a separate package
|
||||
];
|
||||
|
||||
@ -36,9 +56,7 @@ mkDerivation rec {
|
||||
doCheck = true;
|
||||
|
||||
# python is run during runtime to do various tasks
|
||||
qtWrapperArgs = [
|
||||
" --prefix PATH : ${python3}/bin"
|
||||
];
|
||||
qtWrapperArgs = [ " --prefix PATH : ${python3}/bin" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "WYSIWYM frontend for LaTeX, DocBook";
|
||||
@ -48,4 +66,3 @@ mkDerivation rec {
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user