38 lines
842 B
Nix
38 lines
842 B
Nix
{ pkgs, ... }:
|
|
# AUTO-UPDATE: nix-update --flake obsidian-plugin-languagetool
|
|
pkgs.stdenv.mkDerivation rec {
|
|
pname = "languagetool";
|
|
version = "0.3.7";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "Clemens-E";
|
|
repo = "obsidian-languagetool-plugin";
|
|
rev = version;
|
|
hash = "sha256-OsdOOrXNoraKuFPqvgn6pj6ZagEbiFCJyQ529eyZXUU=";
|
|
};
|
|
|
|
patches = [
|
|
./settings-notification.patch
|
|
./variety-typo.patch
|
|
];
|
|
|
|
offlineCache = pkgs.fetchYarnDeps {
|
|
yarnLock = src + "/yarn.lock";
|
|
hash = "sha256-749RGQmg9Mte7TR6k3qP6xcb8+rj/C60LYLbF8j8gNc=";
|
|
};
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
nodejs
|
|
yarnConfigHook
|
|
yarnBuildHook
|
|
npmHooks.npmInstallHook
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp ./manifest.json $out/manifest.json
|
|
cp ./main.js $out/main.js
|
|
cp ./styles.css $out/styles.css
|
|
'';
|
|
}
|