nyazoom/package.nix

43 lines
640 B
Nix
Raw Normal View History

2024-12-26 23:33:24 -08:00
{ makeRustPlatform
, cargo
, rustc
# Runtime Deps
, sqlite
# Build Deps
, openssl
, pkg-config
}:
let rustPlatform = makeRustPlatform { inherit cargo rustc; };
in rustPlatform.buildRustPackage {
pname = "nyazoom";
version = "0.1.0";
src = ./.;
cargoHash = "sha256-lBMe1TvkTJgN+q/9o7KId6w3CSxGl94Zcz7nxDqu9N0=";
nativeBuildInputs = [
openssl
pkg-config
];
buildInputs = [
openssl
sqlite
];
2024-12-27 01:50:35 -08:00
2024-12-27 05:26:54 -08:00
postInstall = /* bash */ ''
mkdir $out/dist
cp -r $src/dist/* $out/dist
'';
2024-12-27 01:50:35 -08:00
meta = {
description = "nyazoom";
homepage = "https://nyazoom.zynh.me";
mainProgram = "nyazoom";
};
2024-12-26 23:33:24 -08:00
}