aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/editors/texmacs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/editors/texmacs/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/editors/texmacs/default.nix51
1 files changed, 27 insertions, 24 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/editors/texmacs/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/editors/texmacs/default.nix
index 91e2427a6c84..9c37d00c9ee1 100644
--- a/infra/libkookie/nixpkgs/pkgs/applications/editors/texmacs/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/applications/editors/texmacs/default.nix
@@ -1,5 +1,5 @@
-{ stdenv, callPackage,
- fetchurl, guile_1_8, qt4, xmodmap, which, makeWrapper, freetype,
+{ lib, mkDerivation, callPackage, fetchFromGitHub,
+ guile_1_8, qtbase, xmodmap, which, freetype,
libjpeg,
sqlite,
tex ? null,
@@ -16,32 +16,27 @@
let
pname = "TeXmacs";
- version = "1.99.11";
+ version = "1.99.15";
common = callPackage ./common.nix {
inherit tex extraFonts chineseFonts japaneseFonts koreanFonts;
};
in
-stdenv.mkDerivation {
+mkDerivation {
name = "${pname}-${version}";
- src = fetchurl {
- url = "https://www.texmacs.org/Download/ftp/tmftp/source/TeXmacs-${version}-src.tar.gz";
- sha256 = "12bp0f34izzqimz49lfpgf4lyz3h45s9xbmk8v6zsawdjki76alg";
+ src = fetchFromGitHub {
+ owner = "texmacs";
+ repo = "texmacs";
+ rev = "v${version}";
+ sha256 = "04585hdh98fvyhj4wsxf69xal2wvfa6lg76gad8pr6ww9abi5105";
};
- cmakeFlags = [
- # Texmacs' cmake build as of writing defaults to Qt5,
- # but we haven't updated to that yet.
- "-DTEXMACS_GUI=Qt4"
- ];
-
enableParallelBuilding = true;
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
guile_1_8
- qt4
- makeWrapper
+ qtbase
ghostscriptX
freetype
libjpeg
@@ -51,18 +46,26 @@ stdenv.mkDerivation {
];
NIX_LDFLAGS = "-lz";
- postInstall = "wrapProgram $out/bin/texmacs --suffix PATH : " +
- (if ghostscriptX == null then "" else "${ghostscriptX}/bin:") +
- (if aspell == null then "" else "${aspell}/bin:") +
- (if tex == null then "" else "${tex}/bin:") +
- (if git == null then "" else "${git}/bin:") +
- (if python3 == null then "" else "${python3}/bin:") +
- "${xmodmap}/bin:${which}/bin";
+ qtWrapperArgs = [
+ "--suffix" "PATH" ":" (lib.makeBinPath [
+ xmodmap
+ which
+ ghostscriptX
+ aspell
+ tex
+ git
+ python3
+ ])
+ ];
+
+ postFixup = ''
+ wrapQtApp $out/bin/texmacs
+ '';
inherit (common) postPatch;
meta = common.meta // {
- maintainers = [ stdenv.lib.maintainers.roconnor ];
- platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
+ maintainers = [ lib.maintainers.roconnor ];
+ platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
};
}