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>
18 lines
605 B
Nix
18 lines
605 B
Nix
{ lib, mkDiscoursePlugin, fetchFromGitHub }:
|
|
|
|
mkDiscoursePlugin {
|
|
name = "discourse-calendar";
|
|
bundlerEnvArgs.gemdir = ./.;
|
|
src = fetchFromGitHub {
|
|
owner = "discourse";
|
|
repo = "discourse-calendar";
|
|
rev = "eb8bc3e864c6f735fa5a005e854f8c37411b6288";
|
|
sha256 = "sha256-fc3oQj2NqaTfmokJUryd2oBd/eVAcNOMMT0ZT45bU28=";
|
|
};
|
|
meta = with lib; {
|
|
homepage = "https://github.com/discourse/discourse-calendar";
|
|
maintainers = with maintainers; [ ryantm ];
|
|
license = licenses.mit;
|
|
description = "Adds the ability to create a dynamic calendar in the first post of a topic";
|
|
};
|
|
}
|