mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
86388ba688
execline-man-pages: 2.9.0.0.1 -> 2.9.3.0.5 s6-man-pages: 2.11.2.0.1 -> 2.11.3.2.4 s6-networking-man-pages: 2.5.1.2.1 -> 2.5.1.3.3 s6-portable-utils-man-pages: 2.2.5.1.1 -> 2.3.0.2.2
46 lines
680 B
Nix
46 lines
680 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;
|
|
};
|
|
}
|