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
566 B
Nix
17 lines
566 B
Nix
{ lib, mkDiscoursePlugin, fetchFromGitHub }:
|
|
|
|
mkDiscoursePlugin {
|
|
name = "discourse-spoiler-alert";
|
|
src = fetchFromGitHub {
|
|
owner = "discourse";
|
|
repo = "discourse-spoiler-alert";
|
|
rev = "4a07519cf9d7ac713f5e21ba770adb127524a22d";
|
|
sha256 = "sha256-pMTXdjqI4GrLNfZMbyPdeW+Jwieh6I4O/pT2Yyf4ltA=";
|
|
};
|
|
meta = with lib; {
|
|
homepage = "https://github.com/discourse/discourse-spoiler-alert";
|
|
maintainers = with maintainers; [ talyz ];
|
|
license = licenses.mit;
|
|
description = "Hide spoilers behind the spoiler-alert jQuery plugin";
|
|
};
|
|
}
|