depot/third_party/nixpkgs/pkgs/build-support/skaware/build-skaware-man-pages.nix
Default email 818c48e259 Project import generated by Copybara.
GitOrigin-RevId: 14aef06d9b3ad1d07626bdbb16083b83f92dc6c1
2021-10-04 09:37:57 -03:00

45 lines
673 B
Nix

{ lib, stdenv, fetchFromGitHub }:
{
# : 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 = fetchFromGitHub {
inherit owner rev sha256;
repo = pname;
};
in
stdenv.mkDerivation {
inherit pname version src;
makeFlags = [
"MANPATH=${manDir}"
];
dontBuild = true;
meta = with lib; {
inherit description license maintainers;
inherit (src.meta) homepage;
platforms = platforms.all;
};
}