Refactor flake patching/recursion
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
{ pkgs, ... }:
|
||||
# AUTO-UPDATE: nix-update --flake obsidian-plugin-better-word-count
|
||||
pkgs.buildNpmPackage rec {
|
||||
pkgs.buildNpmPackage (finalAttrs: {
|
||||
pname = "better-word-count";
|
||||
version = "0.10.1";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "lukeleppan";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
repo = "better-word-count";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-+z31nYnCrHjuV4ICVO+cKBM5q/zYA7Ju+J+6eU7t9Bo=";
|
||||
};
|
||||
|
||||
@@ -23,4 +23,4 @@ pkgs.buildNpmPackage rec {
|
||||
cp ./dist/main.js $out/main.js
|
||||
cp ./src/styles.css $out/styles.css
|
||||
'';
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user