nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 fetchFromGitHub,
4 bison,
5 flex,
6 lib,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "om4";
11 version = "6.7";
12
13 src = fetchFromGitHub {
14 owner = "ibara";
15 repo = "m4";
16 tag = "om4-${version}";
17 hash = "sha256-/b+Fcz6lg2hW541TzBhB9M86wUS7BT6pHzqXxTs0BxI=";
18 };
19
20 patches = [
21 # parser.y:51:25: error: implicit declaration of function 'exit' []
22 ./include-exit.patch
23 ];
24
25 strictDeps = true;
26 nativeBuildInputs = [
27 bison
28 flex
29 ];
30
31 configureFlags = [ "--enable-m4" ];
32
33 meta = {
34 description = "Portable OpenBSD m4 macro processor";
35 homepage = "https://github.com/ibara/m4";
36 license = with lib.licenses; [
37 bsd2
38 bsd3
39 isc
40 publicDomain
41 ];
42 mainProgram = "m4";
43 platforms = lib.platforms.unix;
44 maintainers = [ ];
45 };
46}