frontend/nix/package.nix
Robin Appelman e40bd6c13b
Some checks failed
CI / checks (push) Failing after 46s
don't need nightly anymore
2026-03-28 17:33:30 +01:00

33 lines
689 B
Nix

{
stdenv,
rustPlatform,
lib,
pkg-config,
openssl,
demostf-frontend-node-modules,
}: let
inherit (lib.sources) sourceByRegex;
in
rustPlatform.buildRustPackage rec {
pname = "demostf-frontend";
version = "0.1.0";
src = sourceByRegex ../. ["Cargo.*" "(src|build|images|script|style|.sqlx)(/.*)?"];
buildInputs = [openssl];
nativeBuildInputs = [pkg-config];
preBuild = ''
ln -s ${demostf-frontend-node-modules}/node_modules .
'';
doCheck = false;
cargoLock = {
lockFile = ../Cargo.lock;
outputHashes = {
"jsx-dom-expressions-0.1.0" = "sha256-8AErYTMCG47rEm5x8KZIPEkD4eGPp7/LuRPJUdnWtK0=";
};
};
}