39 lines
881 B
Nix
39 lines
881 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
...
|
|
}:
|
|
pkgs.stdenv.mkDerivation rec {
|
|
pname = "obsidian.plugins.languagetool";
|
|
version = "0.3.7";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "karaolidis";
|
|
rev = "a7bb62f767decbd55b14702c35e24954459e77ca";
|
|
# owner = "Clemens-E";
|
|
repo = "obsidian-languagetool-plugin";
|
|
# rev = "${version}";
|
|
hash = "sha256-LeSK9ctdKW6P3AoOWHxHmGxIlOXDOVd1nhsWXdRSiZY=";
|
|
};
|
|
|
|
patches = [ ./settings-notification.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
|
|
'';
|
|
}
|