~ninjin/nixpkgs

fcadb8a5dadd8e6dc067d64285a09ecaa5d70b47 — Pontus Stenetorp 4 months ago 5b54e94 om4
om4: init at 6.7
2 files changed, 29 insertions(+), 0 deletions(-)

A pkgs/development/tools/misc/om4/default.nix
M pkgs/top-level/all-packages.nix
A pkgs/development/tools/misc/om4/default.nix => pkgs/development/tools/misc/om4/default.nix +27 -0
@@ 0,0 1,27 @@
{ stdenv, fetchFromGitHub, bison, flex, lib }:

stdenv.mkDerivation rec {
  pname = "om4";
  version = "6.7";

  src = fetchFromGitHub {
    owner = "ibara";
    repo = "m4";
    rev = "${pname}-${version}";
    sha256 = "04h76hxwb5rs3ylkw1dv8k0kmkzl84ccqlwdwxb6i0x57rrqbgzx";
  };

  strictDeps = true;
  nativeBuildInputs = [ bison flex ];

  configureFlags = [ "--enable-m4" ];

  meta = with lib; {
    description = "Portable OpenBSD m4 macro processor";
    homepage = "https://github.com/ibara/m4";
    license = with licenses; [ bsd2 bsd3 isc publicDomain ];
    mainProgram = "m4";
    platforms = platforms.unix;
    maintainers = [ maintainers.ninjin ];
  };
}

M pkgs/top-level/all-packages.nix => pkgs/top-level/all-packages.nix +2 -0
@@ 16193,6 16193,8 @@ with pkgs;
  gnum4 = callPackage ../development/tools/misc/gnum4 { };
  m4 = gnum4;

  om4 = callPackage ../development/tools/misc/om4 { };

  gnumake = callPackage ../development/tools/build-managers/gnumake { };
  gnumake42 = callPackage ../development/tools/build-managers/gnumake/4.2 { };