2023-06-03 11:09:27 +00:00
|
|
|
{ lib, stdenv, fetchFromSourcehut }:
|
2021-02-14 13:32:57 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
# : string
|
|
|
|
pname
|
|
|
|
# : string
|
|
|
|
, version
|
|
|
|
# : string
|
|
|
|
, sha256
|
|
|
|
# : string
|
|
|
|
, description
|
|
|
|
# : list Maintainer
|
|
|
|
, maintainers
|
|
|
|
# : license
|
|
|
|
, license ? lib.licenses.isc
|
|
|
|
# : string
|
2023-06-03 11:09:27 +00:00
|
|
|
, owner ? "~flexibeast"
|
2021-02-14 13:32:57 +00:00
|
|
|
# : string
|
|
|
|
, rev ? "v${version}"
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
manDir = "${placeholder "out"}/share/man";
|
|
|
|
|
2023-06-03 11:09:27 +00:00
|
|
|
src = fetchFromSourcehut {
|
2021-02-14 13:32:57 +00:00
|
|
|
inherit owner rev sha256;
|
|
|
|
repo = pname;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
makeFlags = [
|
2023-06-03 11:38:30 +00:00
|
|
|
"MAN_DIR=${manDir}"
|
2021-02-14 13:32:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
inherit description license maintainers;
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|