mirror of
https://github.com/NotAShelf/nix-evaluator-stats.git
synced 2026-04-12 06:17:43 +00:00
➜ nix build
note: keeping build directory '/nix/var/nix/builds/nix-1018630-1566167475/build'
error: hash mismatch in fixed-output derivation '/nix/store/i68wsmgsrsbbyqvr4qw3cdrv8wdqha3z-nix-evaluator-stats-pnpm-deps.drv':
specified: sha256-CpfaUvQbvOXljCqNwyMUJNDisnlrWCHBwhmdIzjmv+c=
got: sha256-K6wk/OrH9eO/jYMcqkj4MhREg59qHu3Zvxd3JKFIOgM=
error: Cannot build '/nix/store/c4fg33nrz8xqw4nxv8a0fnz53kz11c17-nix-evaluator-stats-0.1.0.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/nrkpy8nck6kkkpv1a29x3w611cyv6936-nix-evaluator-stats-0.1.0
43 lines
941 B
Nix
43 lines
941 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchPnpmDeps,
|
|
nodejs-slim,
|
|
pnpm,
|
|
pnpmConfigHook,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "nix-evaluator-stats";
|
|
version = "0.1.0";
|
|
|
|
src = ../.;
|
|
|
|
nativeBuildInputs = [
|
|
nodejs-slim
|
|
pnpm
|
|
pnpmConfigHook # dependency resolution
|
|
];
|
|
|
|
pnpmDeps = fetchPnpmDeps {
|
|
inherit (finalAttrs) pname src;
|
|
hash = "sha256-K6wk/OrH9eO/jYMcqkj4MhREg59qHu3Zvxd3JKFIOgM=";
|
|
fetcherVersion = 3; # https://nixos.org/manual/nixpkgs/stable/#javascript-pnpm-fetcherVersion
|
|
};
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
mkdir -p $out/share/dist
|
|
pnpm run build --outDir $out/share/dist
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
meta = {
|
|
description = "Pretty visualiser for Nix evaluator stats";
|
|
homepage = "https://github.com/notashelf/nix-evaluator-stats";
|
|
platforms = ["x86_64-linux" "aarch64-linux"];
|
|
license = lib.licenses.mpl20;
|
|
maintainers = [lib.maintainers.NotAShelf];
|
|
};
|
|
})
|