{ lib, buildNpmPackage, fetchFromGitHub, nodejs, faketty, openssl, prisma, prisma-engines, }: buildNpmPackage rec { pname = "ghostfolio"; version = "2.185.0"; src = fetchFromGitHub { owner = "ghostfolio"; repo = "ghostfolio"; tag = version; hash = "sha256-jnC2u9ZZcOSux6UUzW9Ot02aFWeGYhrdCC9d4xM0efA="; # populate values that require us to use git. By doing this in postFetch we # can delete .git afterwards and maintain better reproducibility of the src. leaveDotGit = true; postFetch = '' date -u -d "@$(git -C $out log -1 --pretty=%ct)" +%s%3N > $out/SOURCE_DATE_EPOCH find "$out" -name .git -print0 | xargs -0 rm -rf ''; }; npmDepsHash = "sha256-FCH0v9jRviH33mfIVX8967X1u494qToHraYVn5pbSPw="; nativeBuildInputs = [ prisma faketty ]; # Disallow cypress from downloading binaries in sandbox env.CYPRESS_INSTALL_BINARY = "0"; buildPhase = '' runHook preBuild prisma generate substituteInPlace replace.build.mjs \ --replace-fail 'new Date()' "new Date(''$(