forked from necauqua/obsidian-page-properties
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
25 lines (25 loc) · 825 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
in {
devShell = pkgs.mkShell {
buildInputs = [ pkgs.nodejs ];
};
packages.default = pkgs.buildNpmPackage {
name = "obsidian-page-properties";
src = ./.;
packageJson = ./package.json;
packageLockJson = ./package-lock.json;
npmDepsHash = "sha256-KsWVYJUrluSA7CBSYASlZAY9UpJzJTttv3SCPtdcssE=";
installPhase = ''
runHook preInstall
mkdir -p $out/share/obsidian/plugins/page-properties
mv main.js styles.css manifest.json $out/share/obsidian/plugins/page-properties
runHook postInstall
'';
};
}
);
}