Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchurl 4, texinfo 5}: 6 7stdenv.mkDerivation rec { 8 pname = "marst"; 9 version = "2.7"; 10 11 src = fetchurl { 12 url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz"; 13 hash = "sha256-Pue50cvjzZ+19iJxfae7VQbxpto7MPgS4jhLh7zk2lA="; 14 }; 15 16 nativeBuildInputs = [ 17 texinfo 18 ]; 19 20 postBuild = '' 21 makeinfo doc/marst.texi -o doc/marst.info 22 ''; 23 24 postInstall = '' 25 install -m644 doc/marst.info -Dt $out/share/info/ 26 install -m644 doc/marst.pdf -Dt $out/share/doc/${pname}/ 27 ''; 28 29 meta = with lib; { 30 homepage = "https://www.gnu.org/software/marst/"; 31 description = "An Algol-60-to-C translator"; 32 longDescription = '' 33 MARST is an Algol-to-C translator. It automatically translates programs 34 written on the algorithmic language Algol 60 to the C programming 35 language. 36 37 The MARST package includes three main components: 38 39 - the translator, MARST, that translates Algol 60 programs to the C 40 programming language. 41 42 - the library, ALGLIB, that contains precompiled standard Algol 60 43 procedures and other necessary library routines. This library is to be 44 used at linking stage. (In the distribution the name libalgol.a is used 45 for this library.) 46 47 - the converter, MACVT, that allows to convert existing Algol 60 programs 48 from some other representations to MARST representation. 49 ''; 50 license = licenses.gpl3Plus; 51 maintainers = with maintainers; [ AndersonTorres ]; 52 platforms = platforms.unix; 53 }; 54}