Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "mcpp"; 9 version = "2.7.2.2"; 10 11 src = fetchFromGitHub { 12 owner = "museoa"; 13 repo = "mcpp"; 14 rev = finalAttrs.version; 15 hash = "sha256-wz225bhBF0lFerOAhl8Rwmw8ItHd9BXQceweD9BqvEQ="; 16 }; 17 18 env = lib.optionalAttrs stdenv.cc.isGNU { 19 NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types"; 20 }; 21 22 patches = [ 23 ./readlink.patch 24 ]; 25 26 configureFlags = [ "--enable-mcpplib" ]; 27 28 meta = with lib; { 29 homepage = "https://github.com/museoa/mcpp"; 30 description = "Matsui's C preprocessor"; 31 mainProgram = "mcpp"; 32 license = licenses.bsd2; 33 maintainers = with maintainers; [ ]; 34 platforms = platforms.unix; 35 }; 36})