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
558 B
Nix
17 lines
558 B
Nix
{ lib, mkDiscoursePlugin, fetchFromGitHub }:
|
|
|
|
mkDiscoursePlugin {
|
|
name = "discourse-checklist";
|
|
src = fetchFromGitHub {
|
|
owner = "discourse";
|
|
repo = "discourse-checklist";
|
|
rev = "68941e370e132c17fc2aa21ac40c033df72c9771";
|
|
sha256 = "sha256-jJM/01fKxc1RBcSPt9/KDxMkBMH2AOp9dINxSneNhAs=";
|
|
};
|
|
meta = with lib; {
|
|
homepage = "https://github.com/discourse/discourse-checklist";
|
|
maintainers = with maintainers; [ ryantm ];
|
|
license = licenses.gpl2Only;
|
|
description = "A simple checklist rendering plugin for discourse ";
|
|
};
|
|
}
|