Files
nix-config/pkgs/ente-frontend/default.nix
2024-10-12 22:16:41 +02:00

24 lines
638 B
Nix

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