mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 02:53:55 +00:00
09465e0cd9
http://skarnet.org/lists/skaware/1815.html http://skarnet.org/lists/skaware/1816.html http://skarnet.org/lists/skaware/1801.html
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 = [
|
|
"MANPATH=${manDir}"
|
|
];
|
|
|
|
dontBuild = true;
|
|
|
|
meta = with lib; {
|
|
inherit description license maintainers;
|
|
inherit (src.meta) homepage;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|