@@ -1,24 +1,20 @@
|
||||
{ pkgs, ... }:
|
||||
# AUTO-UPDATE: nix-update --flake obsidian-plugin-style-settings --src-attr unpatchedSrc
|
||||
# AUTO-UPDATE: nix-update --flake obsidian-plugin-style-settings
|
||||
pkgs.stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "style-settings";
|
||||
version = "1.0.9";
|
||||
|
||||
unpatchedSrc = pkgs.fetchFromGitHub {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "mgmeyers";
|
||||
repo = "obsidian-style-settings";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-eNbZQ/u3mufwVX+NRJpMSk5uGVkWfW0koXKq7wg9d+I=";
|
||||
};
|
||||
|
||||
# Wrap in applyPatches so that offlineCache below is built correctly
|
||||
src = pkgs.applyPatches {
|
||||
src = finalAttrs.unpatchedSrc;
|
||||
patches = [ ./package-lock.patch ];
|
||||
};
|
||||
patches = [ ./package-lock.patch ];
|
||||
|
||||
offlineCache = pkgs.fetchYarnDeps {
|
||||
yarnLock = "${finalAttrs.src}/yarn.lock";
|
||||
yarnLock = "${pkgs.applyPatches { inherit (finalAttrs) src patches; }}/yarn.lock";
|
||||
hash = "sha256-tqX09XWI3ZL9bXVdjgsAEuvfCAjnyWj5uSWGFbNApds=";
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user