mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
e5fe6f4c58
Upstream has started passing the `-D` flag to install thankfully, so we no longer need to create the section subdirectories ahead of time.
46 lines
673 B
Nix
46 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;
|
|
};
|
|
}
|