nixpkgs/pkgs/by-name/om/om4/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

28 lines
653 B
Nix

{ 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 = [ ];
};
}