Files
nix/hosts/common/user/configs/gui/obsidian/themes/minimal/default.nix
2024-07-17 14:15:53 +01:00

31 lines
633 B
Nix

{
pkgs ? import <nixpkgs> { },
...
}:
pkgs.buildNpmPackage rec {
pname = "obsidian.themes.minimal";
version = "7.7.7";
src = pkgs.fetchFromGitHub {
owner = "kepano";
repo = "obsidian-minimal";
rev = "${version}";
hash = "sha256-Atb9ZVou4EkfppV7VvTEMG/UruKlADctbXL1M8vvhxQ=";
};
npmDepsHash = "sha256-PzsZv/On8ci6EkF3WE4aez3/jQu5AqyJxFUzJk+Pn0c=";
npmPackFlags = [ "--ignore-scripts" ];
nativeBuildInputs = with pkgs; [ sass ];
buildPhase = ''
npx grunt cssmin
'';
installPhase = ''
mkdir -p $out
cp ./manifest.json $out/manifest.json
cp ./theme.css $out/theme.css
'';
}