dotfiles

My PC Dotfiles & Website

packages/xed-extra-plugins/default.nix (740B)


 1{
 2  lib,
 3  pkgs,
 4  ...
 5}: let
 6  metadata = import ./meta.nix;
 7in
 8  pkgs.stdenvNoCC.mkDerivation {
 9    pname = "xed-extra-plugins";
10    version = metadata.rev;
11
12    src = pkgs.fetchFromGitHub {
13      owner = "gabriellaraujocoding";
14      repo = "xed-extra-plugins";
15      inherit (metadata) rev sha256;
16    };
17
18    dontBuild = true;
19    installPhase = ''
20      runHook preInstall
21      mkdir -p "$out/share/xed/plugins"
22      cp -r xed-* "$out/share/xed/plugins/"
23      runHook postInstall
24    '';
25
26    meta = {
27      description = "Extra plugins for the Xed text editor";
28      homepage = metadata.repo;
29      license = with lib.licenses; [gpl2Plus bsd3];
30      platforms = lib.platforms.linux;
31      maintainers = ["maydayv7"];
32    };
33  }