Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 27 lines 653 B view raw
1{ stdenv, fetchFromGitHub, bison, flex, lib }: 2 3stdenv.mkDerivation rec { 4 pname = "om4"; 5 version = "6.7"; 6 7 src = fetchFromGitHub { 8 owner = "ibara"; 9 repo = "m4"; 10 rev = "${pname}-${version}"; 11 sha256 = "04h76hxwb5rs3ylkw1dv8k0kmkzl84ccqlwdwxb6i0x57rrqbgzx"; 12 }; 13 14 strictDeps = true; 15 nativeBuildInputs = [ bison flex ]; 16 17 configureFlags = [ "--enable-m4" ]; 18 19 meta = with lib; { 20 description = "Portable OpenBSD m4 macro processor"; 21 homepage = "https://github.com/ibara/m4"; 22 license = with licenses; [ bsd2 bsd3 isc publicDomain ]; 23 mainProgram = "m4"; 24 platforms = platforms.unix; 25 maintainers = [ ]; 26 }; 27}