Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 makeWrapper, 6 gcc, 7 asciidoc, 8 autoreconfHook, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "colm"; 13 version = "0.13.0.7"; 14 15 src = fetchurl { 16 url = "https://www.colm.net/files/colm/${pname}-${version}.tar.gz"; 17 sha256 = "0f76iri173l2wja2v7qrwmf958cqwh5g9x4bhj2z8wknmlla6gz4"; 18 }; 19 20 patches = [ ./cross-compile.patch ]; 21 22 nativeBuildInputs = [ 23 makeWrapper 24 asciidoc 25 autoreconfHook 26 ]; 27 28 env = lib.optionalAttrs stdenv.cc.isGNU { 29 NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion"; 30 }; 31 32 doCheck = true; 33 34 postInstall = '' 35 wrapProgram $out/bin/colm \ 36 --prefix PATH ":" ${gcc}/bin 37 ''; 38 39 meta = with lib; { 40 description = "Programming language for the analysis and transformation of computer languages"; 41 mainProgram = "colm"; 42 homepage = "http://www.colm.net/open-source/colm"; 43 license = licenses.gpl2; 44 platforms = platforms.unix; 45 maintainers = with maintainers; [ pSub ]; 46 }; 47}