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
550 B
Nix
17 lines
550 B
Nix
{ lib, mkDiscoursePlugin, fetchFromGitHub }:
|
|
|
|
mkDiscoursePlugin {
|
|
name = "discourse-data-explorer";
|
|
src = fetchFromGitHub {
|
|
owner = "discourse";
|
|
repo = "discourse-data-explorer";
|
|
rev = "baaac7ce671e716559329ae756988cc395d7079e";
|
|
sha256 = "sha256-bUCRfbKXdNbiJnU3xPMhG3s8kH7wQQoS2kV7ScHGOMQ=";
|
|
};
|
|
meta = with lib; {
|
|
homepage = "https://github.com/discourse/discourse-data-explorer";
|
|
maintainers = with maintainers; [ ryantm ];
|
|
license = licenses.mit;
|
|
description = "SQL Queries for admins in Discourse";
|
|
};
|
|
}
|