Files
nix-config/pkgs/ente-frontend/default.nix
2024-05-04 20:52:44 +02:00

22 lines
580 B
Nix

{ lib, buildNpmPackage, fetchFromGitHub }:
buildNpmPackage rec {
pname = "ente-website";
version = "1.0.0";
src = "${(fetchGit {
url = "git@github.com:oberprofis/ente.git";
ref = "master";
rev = "9a3545396fded13006fe804b2e75020ad65b9eaf";
})}/website/tracker-site";
npmDepsHash = "sha256-pNU7Y/73iltMSzGbQwUZWdD7GbIToXMFR5y763Bi50o=";
# The prepack script runs the build script, which we'd rather do in the build phase.
npmPackFlags = [ "--ignore-scripts" ];
installPhase = ''
mkdir -p $out
ls .
cp -r ./dist/tracker-site/* $out
'';
}