nixpkgs/pkgs/development/skaware-packages/build-skaware-man-pages.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

50 lines
695 B
Nix

{
lib,
stdenv,
fetchFromSourcehut,
}:
{
# : string
pname,
# : string
version,
# : string
sha256,
# : string
description,
# : list Maintainer
maintainers,
# : license
license ? lib.licenses.isc,
# : string
owner ? "~flexibeast",
# : string
rev ? "v${version}",
}:
let
manDir = "${placeholder "out"}/share/man";
src = fetchFromSourcehut {
inherit owner rev sha256;
repo = pname;
};
in
stdenv.mkDerivation {
inherit pname version src;
makeFlags = [
"MAN_DIR=${manDir}"
];
dontBuild = true;
meta = with lib; {
inherit description license maintainers;
inherit (src.meta) homepage;
platforms = platforms.all;
};
}