33 lines
754 B
Nix
33 lines
754 B
Nix
{ pkgs, ... }:
|
|
# AUTO-UPDATE: nix-update --flake obsidian-plugin-kanban
|
|
pkgs.stdenv.mkDerivation rec {
|
|
pname = "obsidian-plugin-kanban";
|
|
version = "2.0.51";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "mgmeyers";
|
|
repo = "obsidian-kanban";
|
|
rev = version;
|
|
hash = "sha256-NahypggwPrub2KxRBAn54ZpEInP1V+6l/xmUKUt6myA=";
|
|
};
|
|
|
|
offlineCache = pkgs.fetchYarnDeps {
|
|
yarnLock = src + "/yarn.lock";
|
|
hash = "sha256-eof2W9Ja4RlmjQ0SnaF/jadHX3GRkCRrMwZU2z0M/Jk=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
}
|