mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-10 15:10:04 +00:00
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Treewide Checks / Validate flake (push) Has been cancelled
Treewide Checks / Check formatting (push) Has been cancelled
Treewide Checks / Check source tree for typos (push) Has been cancelled
Treewide Checks / Validate documentation builds (push) Has been cancelled
Treewide Checks / Validate documentation builds-1 (push) Has been cancelled
Treewide Checks / Validate documentation builds-2 (push) Has been cancelled
Treewide Checks / Validate documentation builds-3 (push) Has been cancelled
Treewide Checks / Validate hyperlinks in documentation sources (push) Has been cancelled
Treewide Checks / Validate Editorconfig conformance (push) Has been cancelled
Based on the full set of changes to the astro plugin, not just the basic fetcher update.
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
nodejs,
|
|
gitMinimal,
|
|
pnpm_9,
|
|
pnpmConfigHook,
|
|
zstd,
|
|
fetchPnpmDeps,
|
|
pins,
|
|
fetchFromGitHub,
|
|
writableTmpDirAsHomeHook,
|
|
}: let
|
|
pin = pins.prettier-plugin-pug;
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "prettier-plugin-pug";
|
|
version = pin.version or pin.revision;
|
|
|
|
patches = [
|
|
./0001-fix-don-t-touch-git-state-while-building.patch
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
inherit (pin.repository) owner repo;
|
|
rev = finalAttrs.version;
|
|
sha256 = pin.hash;
|
|
};
|
|
|
|
pnpmDeps = fetchPnpmDeps {
|
|
pnpm = pnpm_9;
|
|
inherit (finalAttrs) pname version src;
|
|
hash = "sha256-NBetqPzn99W0mvv2niL9bJ3iOexOB4VAIGA7CmUn00M=";
|
|
fetcherVersion = 3;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
nodejs
|
|
gitMinimal
|
|
writableTmpDirAsHomeHook
|
|
(pnpmConfigHook.override {
|
|
pnpm = pnpm_9;
|
|
})
|
|
pnpm_9
|
|
zstd
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
pnpm run build
|
|
runHook postBuild
|
|
'';
|
|
|
|
preInstall = ''
|
|
cp -r dist/ $out
|
|
cp -r node_modules $out
|
|
'';
|
|
})
|