nixpkgs/pkgs/development/compilers/mcpp/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

32 lines
633 B
Nix

{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mcpp";
version = "2.7.2.1";
src = fetchFromGitHub {
owner = "museoa";
repo = "mcpp";
rev = finalAttrs.version;
hash= "sha256-T4feegblOeG+NU+c+PAobf8HT8KDSfcINkRAa1hNpkY=";
};
patches = [
./readlink.patch
];
configureFlags = [ "--enable-mcpplib" ];
meta = with lib; {
homepage = "https://github.com/museoa/mcpp";
description = "Matsui's C preprocessor";
mainProgram = "mcpp";
license = licenses.bsd2;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix;
};
})