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
557 B
Nix
17 lines
557 B
Nix
{ lib, mkDiscoursePlugin, fetchFromGitHub }:
|
|
|
|
mkDiscoursePlugin {
|
|
name = "discourse-yearly-review";
|
|
src = fetchFromGitHub {
|
|
owner = "discourse";
|
|
repo = "discourse-yearly-review";
|
|
rev = "ef4855f6afa16ef86013bba7da8e50a63e11b493";
|
|
sha256 = "sha256-IVKGysAKr+lKV1CO1JJIMLtzcvpK8joWjx8Bfy+dx8Y=";
|
|
};
|
|
meta = with lib; {
|
|
homepage = "https://github.com/discourse/discourse-yearly-review";
|
|
maintainers = with maintainers; [ talyz ];
|
|
license = licenses.mit;
|
|
description = "Publishes an automated Year in Review topic";
|
|
};
|
|
}
|