- Switch from 'rev' to 'tag' attribute in fetchFromGitHub/fetchgit calls - Update 'sha256' to 'hash' for consistency - Convert to finalAttrs pattern where applicable - Replace 'with lib' with explicit lib prefixes - Use 'replace-fail' variants for substitutions - Update python3.pkgs to python3Packages pattern - Switch propagatedBuildInputs to dependencies for Python packages - Fix .pc file meta attribute interpolation Affected packages: autotrash, banana-vera, cano, cista, coost, cppi, criterion, diagrams-as-code, filterpath, fzf-make, gbsplay, gfold, git-pr, git-standup, hexedit, hueadm, ksh, liboqs, libowlevelzs, libsv, mini-calc, nph, physac, ps_mem, ragnarwm, rasm, raygui, sxcs, toolong, tuifimanager, unipicker, ustr, viu, xml-tooling-c, yyjson
38 lines
955 B
Nix
38 lines
955 B
Nix
{
|
|
fetchurl,
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "cppi";
|
|
version = "1.18";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/cppi/cppi-${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-EqUFuYhj9sXPH3SfkIC+O0Kz6sWjW1ljDme+pyQTZMo=";
|
|
};
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
homepage = "https://savannah.gnu.org/projects/cppi/";
|
|
|
|
description = "C preprocessor directive indenter";
|
|
mainProgram = "cppi";
|
|
|
|
longDescription = ''
|
|
GNU cppi indents C preprocessor directives to reflect their nesting
|
|
and ensure that there is exactly one space character between each #if,
|
|
#elif, #define directive and the following token. The number of
|
|
spaces between the `#' and the following directive must correspond
|
|
to the level of nesting of that directive.
|
|
'';
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|