1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "ftp://ftp.thp.uni-duisburg.de/pub/source/${pname}-${version}.tar.gz";
9 sha256 = "1jww43pl9qvg6kwh4h8imp966fzd62dk99pb4s93786lmp3kgdjv";
12 hardeningDisable = [ "format" ];
14 unpackPhase = "tar xf $src";
15 installTargets = [ "install" "install.man" ];
16 installFlags = [ "BINDIR=$(out)/bin" "MANDIR=$(out)/share/man/man1" ];
18 sed -i '1i#include <stdlib.h>\n#include <string.h>' untex.c
19 mkdir -p $out/bin $out/share/man/man1
23 description = "Utility which removes LaTeX commands from input";
24 mainProgram = "untex";
25 homepage = "https://www.ctan.org/pkg/untex";
26 license = licenses.gpl1Only;
27 maintainers = with maintainers; [ joachifm ];
28 platforms = platforms.all;