Loading pkgs/by-name/ne/nezha-theme-user/package-lock.json 0 → 100644 +5969 −0 File added.Preview size limit exceeded, changes collapsed. Show changes pkgs/by-name/ne/nezha-theme-user/package.nix 0 → 100644 +51 −0 Original line number Diff line number Diff line { lib, buildNpmPackage, fetchFromGitHub, }: buildNpmPackage rec { pname = "nezha-theme-user"; version = "1.12.1"; src = fetchFromGitHub { owner = "hamster1963"; repo = "nezha-dash-v1"; tag = "v${version}"; hash = "sha256-vd242bYWT7AgpKDyYEb+Kc+8o1qtuTusmxqLnWGo5pE="; }; # TODO: Switch to the bun build function once available in nixpkgs postPatch = '' cp ${./package-lock.json} package-lock.json # We cannot directly get the git commit hash from the tarball substituteInPlace vite.config.ts \ --replace-fail 'git rev-parse --short HEAD' 'echo refs/tags/v${version}' substituteInPlace src/components/Footer.tsx \ --replace-fail '/commit/' '/tree/' ''; npmDepsHash = "sha256-jWCgeT3IvTZZTh/kKq+mRc0tAVoptl3rrlwcbUSs5uc="; npmPackFlags = [ "--ignore-scripts" ]; npmFlags = [ "--legacy-peer-deps" ]; dontNpmInstall = true; installPhase = '' runHook preInstall cp -r dist $out runHook postInstall ''; meta = { description = "Nezha monitoring user frontend based on next.js"; changelog = "https://github.com/hamster1963/nezha-dash-v1/releases/tag/v${version}"; homepage = "https://github.com/hamster1963/nezha-dash-v1"; license = lib.licenses.apsl20; maintainers = with lib.maintainers; [ moraxyc ]; }; } Loading
pkgs/by-name/ne/nezha-theme-user/package-lock.json 0 → 100644 +5969 −0 File added.Preview size limit exceeded, changes collapsed. Show changes
pkgs/by-name/ne/nezha-theme-user/package.nix 0 → 100644 +51 −0 Original line number Diff line number Diff line { lib, buildNpmPackage, fetchFromGitHub, }: buildNpmPackage rec { pname = "nezha-theme-user"; version = "1.12.1"; src = fetchFromGitHub { owner = "hamster1963"; repo = "nezha-dash-v1"; tag = "v${version}"; hash = "sha256-vd242bYWT7AgpKDyYEb+Kc+8o1qtuTusmxqLnWGo5pE="; }; # TODO: Switch to the bun build function once available in nixpkgs postPatch = '' cp ${./package-lock.json} package-lock.json # We cannot directly get the git commit hash from the tarball substituteInPlace vite.config.ts \ --replace-fail 'git rev-parse --short HEAD' 'echo refs/tags/v${version}' substituteInPlace src/components/Footer.tsx \ --replace-fail '/commit/' '/tree/' ''; npmDepsHash = "sha256-jWCgeT3IvTZZTh/kKq+mRc0tAVoptl3rrlwcbUSs5uc="; npmPackFlags = [ "--ignore-scripts" ]; npmFlags = [ "--legacy-peer-deps" ]; dontNpmInstall = true; installPhase = '' runHook preInstall cp -r dist $out runHook postInstall ''; meta = { description = "Nezha monitoring user frontend based on next.js"; changelog = "https://github.com/hamster1963/nezha-dash-v1/releases/tag/v${version}"; homepage = "https://github.com/hamster1963/nezha-dash-v1"; license = lib.licenses.apsl20; maintainers = with lib.maintainers; [ moraxyc ]; }; }