Refactor packages
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
26
packages/obsidian/plugins/better-word-count/default.nix
Normal file
26
packages/obsidian/plugins/better-word-count/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ pkgs, ... }:
|
||||
# AUTO-UPDATE: nix-update --flake obsidian-plugin-better-word-count
|
||||
pkgs.buildNpmPackage rec {
|
||||
pname = "obsidian-plugin-better-word-count";
|
||||
version = "0.10.1";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "lukeleppan";
|
||||
repo = "better-word-count";
|
||||
rev = version;
|
||||
hash = "sha256-qyuZIcZHsUfyUMboE8GP26dIeo37fzhYuGccfQYffL4=";
|
||||
};
|
||||
|
||||
patches = [ ./package-lock.patch ];
|
||||
|
||||
makeCacheWritable = true;
|
||||
npmDepsHash = "sha256-2ZIgaMn6esSmB0lg4x42ueg+AFO+UmYbI1NCsxZQr+8=";
|
||||
npmPackFlags = [ "--ignore-scripts" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp ./manifest.json $out/manifest.json
|
||||
cp ./dist/main.js $out/main.js
|
||||
cp ./src/styles.css $out/styles.css
|
||||
'';
|
||||
}
|
1559
packages/obsidian/plugins/better-word-count/package-lock.patch
Normal file
1559
packages/obsidian/plugins/better-word-count/package-lock.patch
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user