32 lines
740 B
Nix
32 lines
740 B
Nix
{ pkgs, ... }:
|
|
# AUTO-UPDATE: nix-update --flake obsidian-plugin-custom-sort
|
|
pkgs.stdenv.mkDerivation rec {
|
|
pname = "obsidian-plugin-custom-sort";
|
|
version = "3.1.2";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "SebastianMC";
|
|
repo = "obsidian-custom-sort";
|
|
rev = version;
|
|
hash = "sha256-a6t0+mzzXQsgUwZ3m3UvF3N83ajGmxalsnD8beAVAr0=";
|
|
};
|
|
|
|
offlineCache = pkgs.fetchYarnDeps {
|
|
yarnLock = src + "/yarn.lock";
|
|
hash = "sha256-J/+LJWaco2QRwZx8Ry3G5DiJB6J21iOn5GBeY5EY4+g=";
|
|
};
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
nodejs
|
|
yarnConfigHook
|
|
yarnBuildHook
|
|
npmHooks.npmInstallHook
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp ./manifest.json $out/manifest.json
|
|
cp ./dist/main.js $out/main.js
|
|
'';
|
|
}
|