https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
17 lines
525 B
Nix
17 lines
525 B
Nix
{ lib, mkDiscoursePlugin, fetchFromGitHub }:
|
|
|
|
mkDiscoursePlugin {
|
|
name = "discourse-docs";
|
|
src = fetchFromGitHub {
|
|
owner = "discourse";
|
|
repo = "discourse-docs";
|
|
rev = "72b2e87e84221588bc2ff08961a492044f1f8237";
|
|
sha256 = "sha256-moR4TJYffh6JwC7oxeS4+Cyngi88Ht2eTbSEJJ4JKdY=";
|
|
};
|
|
meta = with lib; {
|
|
homepage = "https://github.com/discourse/discourse-docs";
|
|
maintainers = with maintainers; [ dpausp ];
|
|
license = licenses.mit;
|
|
description = "Find and filter knowledge base topics";
|
|
};
|
|
}
|