Files
nixpkgs/pkgs/by-name/om/om4/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
809 B
Nix

{
stdenv,
fetchFromGitHub,
bison,
flex,
lib,
}:
stdenv.mkDerivation rec {
pname = "om4";
version = "6.7";
src = fetchFromGitHub {
owner = "ibara";
repo = "m4";
tag = "om4-${version}";
hash = "sha256-/b+Fcz6lg2hW541TzBhB9M86wUS7BT6pHzqXxTs0BxI=";
};
patches = [
# parser.y:51:25: error: implicit declaration of function 'exit' []
./include-exit.patch
];
strictDeps = true;
nativeBuildInputs = [
bison
flex
];
configureFlags = [ "--enable-m4" ];
meta = {
description = "Portable OpenBSD m4 macro processor";
homepage = "https://github.com/ibara/m4";
license = with lib.licenses; [
bsd2
bsd3
isc
publicDomain
];
mainProgram = "m4";
platforms = lib.platforms.unix;
maintainers = [ ];
};
}