Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "untex"; 5 version = "1.3"; 6 7 src = fetchurl { 8 url = "ftp://ftp.thp.uni-duisburg.de/pub/source/${pname}-${version}.tar.gz"; 9 sha256 = "1jww43pl9qvg6kwh4h8imp966fzd62dk99pb4s93786lmp3kgdjv"; 10 }; 11 12 hardeningDisable = [ "format" ]; 13 14 unpackPhase = "tar xf $src"; 15 installTargets = [ "install" "install.man" ]; 16 installFlags = [ "BINDIR=$(out)/bin" "MANDIR=$(out)/share/man/man1" ]; 17 preBuild = '' 18 sed -i '1i#include <stdlib.h>\n#include <string.h>' untex.c 19 mkdir -p $out/bin $out/share/man/man1 20 ''; 21 22 meta = with lib; { 23 description = "A utility which removes LaTeX commands from input"; 24 homepage = "https://www.ctan.org/pkg/untex"; 25 license = licenses.gpl1Only; 26 maintainers = with maintainers; [ joachifm ]; 27 platforms = platforms.all; 28 }; 29}